cdb-crawlr 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/cdb-crawlr.rb +1 -1
- data/lib/cdb/series.rb +3 -3
- metadata +3 -3
data/lib/cdb-crawlr.rb
CHANGED
data/lib/cdb/series.rb
CHANGED
@@ -1,5 +1,5 @@
|
|
1
1
|
module CDB
|
2
|
-
class Series < Struct.new(:cdb_id, :name, :issues, :publisher, :imprint, :
|
2
|
+
class Series < Struct.new(:cdb_id, :name, :issues, :publisher, :imprint, :start_date, :end_date, :country, :language)
|
3
3
|
FORM_SEARCHTYPE = 'Title'
|
4
4
|
WEB_PATH = 'title.php'
|
5
5
|
|
@@ -21,7 +21,7 @@ module CDB
|
|
21
21
|
name = text.slice(0..-8)
|
22
22
|
year = text.slice(-5..-2)
|
23
23
|
pub = link.next_sibling.text.gsub(/^\s*\(|\)\s*$/, '')
|
24
|
-
new(:cdb_id => id, :name => name, :publisher => pub, :
|
24
|
+
new(:cdb_id => id, :name => name, :publisher => pub, :start_date => year)
|
25
25
|
end.sort_by(&:cdb_id)
|
26
26
|
end
|
27
27
|
|
@@ -34,7 +34,7 @@ module CDB
|
|
34
34
|
:name => page.css('.page_headline').first.text.strip,
|
35
35
|
:publisher => page.css('a[href^="publisher.php"]').first.text.strip,
|
36
36
|
:imprint => (page.css('a[href^="imprint.php"]').first.text.strip rescue nil),
|
37
|
-
:
|
37
|
+
:start_date => start_d,
|
38
38
|
:end_date => end_d,
|
39
39
|
:country => page.css('strong:contains("Country: ")').first.next_sibling.text.strip,
|
40
40
|
:language => page.css('strong:contains("Language: ")').first.next_sibling.text.strip
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cdb-crawlr
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -13,7 +13,7 @@ date: 2012-11-03 00:00:00.000000000Z
|
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: nokogiri
|
16
|
-
requirement: &
|
16
|
+
requirement: &16210350 !ruby/object:Gem::Requirement
|
17
17
|
none: false
|
18
18
|
requirements:
|
19
19
|
- - ! '>='
|
@@ -21,7 +21,7 @@ dependencies:
|
|
21
21
|
version: '0'
|
22
22
|
type: :runtime
|
23
23
|
prerelease: false
|
24
|
-
version_requirements: *
|
24
|
+
version_requirements: *16210350
|
25
25
|
description: cdb-crawlr is a Ruby gem and command-line tool for querying ComicBookDB.com
|
26
26
|
email:
|
27
27
|
- sgt.floydpepper@gmail.com
|