bookscan 0.2.1 → 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.1
1
+ 0.2.2
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{bookscan}
8
- s.version = "0.2.1"
8
+ s.version = "0.2.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Yoshihiro TAKAHARA"]
12
- s.date = %q{2011-01-18}
12
+ s.date = %q{2011-01-19}
13
13
  s.default_executable = %q{bookscan}
14
14
  s.description = %q{This is a scraper of Bookscan (http://www.bookscan.co.jp) Service.This is *NOT* a official software of Bookscan.}
15
15
  s.email = %q{y.takahara@gmail.com}
@@ -40,7 +40,7 @@ Gem::Specification.new do |s|
40
40
  s.homepage = %q{http://github.com/tumf/bookscan}
41
41
  s.licenses = ["MIT"]
42
42
  s.require_paths = ["lib"]
43
- s.rubygems_version = %q{1.4.2}
43
+ s.rubygems_version = %q{1.3.7}
44
44
  s.summary = %q{BookScan Scraper}
45
45
  s.test_files = [
46
46
  "test/helper.rb",
@@ -48,6 +48,7 @@ Gem::Specification.new do |s|
48
48
  ]
49
49
 
50
50
  if s.respond_to? :specification_version then
51
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
51
52
  s.specification_version = 3
52
53
 
53
54
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
@@ -195,6 +195,7 @@ module Bookscan
195
195
  bs = @cache.books
196
196
  end
197
197
  bs.each { |book|
198
+ next unless book.tune_type == type
198
199
  if Dir.glob(directory + "/**/*" + book.book_id + "*.pdf").length == 0
199
200
  path = directory + "/" +book.filename
200
201
  puts "download: " + path
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bookscan
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
5
- prerelease:
4
+ hash: 19
5
+ prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 1
10
- version: 0.2.1
9
+ - 2
10
+ version: 0.2.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Yoshihiro TAKAHARA
@@ -15,11 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-18 00:00:00 +09:00
18
+ date: 2011-01-19 00:00:00 +09:00
19
19
  default_executable: bookscan
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- type: :development
22
+ prerelease: false
23
23
  version_requirements: &id001 !ruby/object:Gem::Requirement
24
24
  none: false
25
25
  requirements:
@@ -30,10 +30,10 @@ dependencies:
30
30
  - 0
31
31
  version: "0"
32
32
  requirement: *id001
33
- prerelease: false
34
33
  name: shoulda
35
- - !ruby/object:Gem::Dependency
36
34
  type: :development
35
+ - !ruby/object:Gem::Dependency
36
+ prerelease: false
37
37
  version_requirements: &id002 !ruby/object:Gem::Requirement
38
38
  none: false
39
39
  requirements:
@@ -46,10 +46,10 @@ dependencies:
46
46
  - 0
47
47
  version: 1.0.0
48
48
  requirement: *id002
49
- prerelease: false
50
49
  name: bundler
51
- - !ruby/object:Gem::Dependency
52
50
  type: :development
51
+ - !ruby/object:Gem::Dependency
52
+ prerelease: false
53
53
  version_requirements: &id003 !ruby/object:Gem::Requirement
54
54
  none: false
55
55
  requirements:
@@ -62,10 +62,10 @@ dependencies:
62
62
  - 2
63
63
  version: 1.5.2
64
64
  requirement: *id003
65
- prerelease: false
66
65
  name: jeweler
67
- - !ruby/object:Gem::Dependency
68
66
  type: :development
67
+ - !ruby/object:Gem::Dependency
68
+ prerelease: false
69
69
  version_requirements: &id004 !ruby/object:Gem::Requirement
70
70
  none: false
71
71
  requirements:
@@ -76,10 +76,10 @@ dependencies:
76
76
  - 0
77
77
  version: "0"
78
78
  requirement: *id004
79
- prerelease: false
80
79
  name: rcov
80
+ type: :development
81
81
  - !ruby/object:Gem::Dependency
82
- type: :runtime
82
+ prerelease: false
83
83
  version_requirements: &id005 !ruby/object:Gem::Requirement
84
84
  none: false
85
85
  requirements:
@@ -90,10 +90,10 @@ dependencies:
90
90
  - 0
91
91
  version: "0"
92
92
  requirement: *id005
93
- prerelease: false
94
93
  name: mutter
95
- - !ruby/object:Gem::Dependency
96
94
  type: :runtime
95
+ - !ruby/object:Gem::Dependency
96
+ prerelease: false
97
97
  version_requirements: &id006 !ruby/object:Gem::Requirement
98
98
  none: false
99
99
  requirements:
@@ -105,10 +105,10 @@ dependencies:
105
105
  - 1
106
106
  version: "0.1"
107
107
  requirement: *id006
108
- prerelease: false
109
108
  name: keystorage
110
- - !ruby/object:Gem::Dependency
111
109
  type: :runtime
110
+ - !ruby/object:Gem::Dependency
111
+ prerelease: false
112
112
  version_requirements: &id007 !ruby/object:Gem::Requirement
113
113
  none: false
114
114
  requirements:
@@ -121,10 +121,10 @@ dependencies:
121
121
  - 0
122
122
  version: 1.0.0
123
123
  requirement: *id007
124
- prerelease: false
125
124
  name: mechanize
126
- - !ruby/object:Gem::Dependency
127
125
  type: :runtime
126
+ - !ruby/object:Gem::Dependency
127
+ prerelease: false
128
128
  version_requirements: &id008 !ruby/object:Gem::Requirement
129
129
  none: false
130
130
  requirements:
@@ -136,8 +136,8 @@ dependencies:
136
136
  - 6
137
137
  version: "1.6"
138
138
  requirement: *id008
139
- prerelease: false
140
139
  name: highline
140
+ type: :runtime
141
141
  description: This is a scraper of Bookscan (http://www.bookscan.co.jp) Service.This is *NOT* a official software of Bookscan.
142
142
  email: y.takahara@gmail.com
143
143
  executables:
@@ -195,7 +195,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
195
195
  requirements: []
196
196
 
197
197
  rubyforge_project:
198
- rubygems_version: 1.4.2
198
+ rubygems_version: 1.3.7
199
199
  signing_key:
200
200
  specification_version: 3
201
201
  summary: BookScan Scraper