Module: WebpageArchivist
- Defined in:
- lib/webpage-archivist/models.rb,
lib/webpage-archivist/version.rb,
lib/webpage-archivist/extracter.rb,
lib/webpage-archivist/migrations.rb,
lib/webpage-archivist/snapshoter.rb,
lib/webpage-archivist/html_document.rb,
lib/webpage-archivist/webpage-archivist.rb,
lib/webpage-archivist/stylesheet_document.rb
Defined Under Namespace
Modules: ElementWithContent, Extracter, Fetcher, WebpageElement
Classes: HtmlDocument, Image, Instance, Migrations, Script, Snapshoter, Stylesheet, StylesheetDocument, Webpage, WebpageArchivist
Constant Summary
collapse
- VERSION =
'0.0.3'
- DATABASE =
::Sequel.connect(ENV['DATABASE_URL'] || "sqlite://#{Dir.pwd}/webpage-archivist.sqlite3", :encoding => 'utf-8')
- @@log =
false
- @@logger =
::Logger.new(STDOUT)
Class Method Summary
collapse
Class Method Details
.debug(str) ⇒ Object
70
71
72
|
# File 'lib/webpage-archivist/webpage-archivist.rb', line 70
def self.debug(str)
@@logger.debug { str }
end
|
.error(str) ⇒ Object
74
75
76
|
# File 'lib/webpage-archivist/webpage-archivist.rb', line 74
def self.error(str)
@@logger.error { str }
end
|
.log ⇒ Object
62
63
64
|
# File 'lib/webpage-archivist/webpage-archivist.rb', line 62
def self.log
@@log
end
|
.log=(value) ⇒ Object
66
67
68
|
# File 'lib/webpage-archivist/webpage-archivist.rb', line 66
def self.log= value
@@log = value
end
|