kindai 2.1.2 → 2.2.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (7) hide show
  1. data/Gemfile +3 -3
  2. data/Gemfile.lock +10 -7
  3. data/Rakefile +1 -1
  4. data/VERSION +1 -1
  5. data/kindai.gemspec +22 -30
  6. data/lib/kindai/book.rb +6 -0
  7. metadata +67 -33
data/Gemfile CHANGED
@@ -1,14 +1,14 @@
1
1
  source 'http://rubygems.org'
2
2
 
3
3
  gem 'nokogiri'
4
- gem 'rmagick'
4
+ gem 'rmagick', '2.13.2'
5
5
  gem 'zipruby'
6
6
  gem 'json', '>= 1.4'
7
7
 
8
8
  group :development do
9
9
  gem "rspec", "~> 2.3.0"
10
- gem "bundler", "~> 1.0.0"
11
- gem "jeweler", "~> 1.5.2"
10
+ gem "bundler", "1.3.2"
11
+ gem "jeweler", "1.8.4"
12
12
  gem "rcov", ">= 0"
13
13
  end
14
14
 
data/Gemfile.lock CHANGED
@@ -3,15 +3,18 @@ GEM
3
3
  specs:
4
4
  diff-lcs (1.1.2)
5
5
  git (1.2.5)
6
- jeweler (1.5.2)
7
- bundler (~> 1.0.0)
6
+ jeweler (1.8.4)
7
+ bundler (~> 1.0)
8
8
  git (>= 1.2.5)
9
9
  rake
10
+ rdoc
10
11
  json (1.5.1)
11
12
  nokogiri (1.4.4)
12
- rake (0.8.7)
13
+ rake (10.0.3)
13
14
  rcov (0.9.9)
14
- rmagick (2.13.1)
15
+ rdoc (4.0.0)
16
+ json (~> 1.4)
17
+ rmagick (2.13.2)
15
18
  rspec (2.3.0)
16
19
  rspec-core (~> 2.3.0)
17
20
  rspec-expectations (~> 2.3.0)
@@ -26,11 +29,11 @@ PLATFORMS
26
29
  ruby
27
30
 
28
31
  DEPENDENCIES
29
- bundler (~> 1.0.0)
30
- jeweler (~> 1.5.2)
32
+ bundler (= 1.3.2)
33
+ jeweler (= 1.8.4)
31
34
  json (>= 1.4)
32
35
  nokogiri
33
36
  rcov
34
- rmagick
37
+ rmagick (= 2.13.2)
35
38
  rspec (~> 2.3.0)
36
39
  zipruby
data/Rakefile CHANGED
@@ -37,7 +37,7 @@ end
37
37
 
38
38
  task :default => :spec
39
39
 
40
- require 'rake/rdoctask'
40
+ require 'rdoc/task'
41
41
  Rake::RDocTask.new do |rdoc|
42
42
  version = File.exist?('VERSION') ? File.read('VERSION') : ""
43
43
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 2.1.2
1
+ 2.2.0
data/kindai.gemspec CHANGED
@@ -4,15 +4,15 @@
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
- s.name = %q{kindai}
8
- s.version = "2.1.2"
7
+ s.name = "kindai"
8
+ s.version = "2.2.0"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = [%q{hitode909}]
12
- s.date = %q{2012-09-14}
13
- s.description = %q{kindai.rb is kindai digital library downloader.}
14
- s.email = %q{hitode909@gmail.com}
15
- s.executables = [%q{kindai.rb}]
11
+ s.authors = ["hitode909"]
12
+ s.date = "2013-03-13"
13
+ s.description = "kindai.rb is kindai digital library downloader."
14
+ s.email = "hitode909@gmail.com"
15
+ s.executables = ["kindai.rb"]
16
16
  s.extra_rdoc_files = [
17
17
  "LICENSE.txt",
18
18
  "README.rdoc"
@@ -46,51 +46,43 @@ Gem::Specification.new do |s|
46
46
  "spec/spread_downloader_spec.rb",
47
47
  "spec/spread_spec.rb"
48
48
  ]
49
- s.homepage = %q{http://github.com/hitode909/kindairb}
50
- s.licenses = [%q{MIT}]
51
- s.rdoc_options = [%q{--main}, %q{README.rdoc}, %q{--exclude}, %q{spec}]
52
- s.require_paths = [%q{lib}]
53
- s.rubygems_version = %q{1.8.6}
54
- s.summary = %q{kindai digital library downloader}
55
- s.test_files = [
56
- "spec/book_downloader_spec.rb",
57
- "spec/book_spec.rb",
58
- "spec/searcher_spec.rb",
59
- "spec/spec_helper.rb",
60
- "spec/spread_downloader_spec.rb",
61
- "spec/spread_spec.rb"
62
- ]
49
+ s.homepage = "http://github.com/hitode909/kindairb"
50
+ s.licenses = ["MIT"]
51
+ s.rdoc_options = ["--main", "README.rdoc", "--exclude", "spec"]
52
+ s.require_paths = ["lib"]
53
+ s.rubygems_version = "1.8.25"
54
+ s.summary = "kindai digital library downloader"
63
55
 
64
56
  if s.respond_to? :specification_version then
65
57
  s.specification_version = 3
66
58
 
67
59
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
68
60
  s.add_runtime_dependency(%q<nokogiri>, [">= 0"])
69
- s.add_runtime_dependency(%q<rmagick>, [">= 0"])
61
+ s.add_runtime_dependency(%q<rmagick>, ["= 2.13.2"])
70
62
  s.add_runtime_dependency(%q<zipruby>, [">= 0"])
71
63
  s.add_runtime_dependency(%q<json>, [">= 1.4"])
72
64
  s.add_development_dependency(%q<rspec>, ["~> 2.3.0"])
73
- s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
74
- s.add_development_dependency(%q<jeweler>, ["~> 1.5.2"])
65
+ s.add_development_dependency(%q<bundler>, ["= 1.3.2"])
66
+ s.add_development_dependency(%q<jeweler>, ["= 1.8.4"])
75
67
  s.add_development_dependency(%q<rcov>, [">= 0"])
76
68
  else
77
69
  s.add_dependency(%q<nokogiri>, [">= 0"])
78
- s.add_dependency(%q<rmagick>, [">= 0"])
70
+ s.add_dependency(%q<rmagick>, ["= 2.13.2"])
79
71
  s.add_dependency(%q<zipruby>, [">= 0"])
80
72
  s.add_dependency(%q<json>, [">= 1.4"])
81
73
  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
82
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
83
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
74
+ s.add_dependency(%q<bundler>, ["= 1.3.2"])
75
+ s.add_dependency(%q<jeweler>, ["= 1.8.4"])
84
76
  s.add_dependency(%q<rcov>, [">= 0"])
85
77
  end
86
78
  else
87
79
  s.add_dependency(%q<nokogiri>, [">= 0"])
88
- s.add_dependency(%q<rmagick>, [">= 0"])
80
+ s.add_dependency(%q<rmagick>, ["= 2.13.2"])
89
81
  s.add_dependency(%q<zipruby>, [">= 0"])
90
82
  s.add_dependency(%q<json>, [">= 1.4"])
91
83
  s.add_dependency(%q<rspec>, ["~> 2.3.0"])
92
- s.add_dependency(%q<bundler>, ["~> 1.0.0"])
93
- s.add_dependency(%q<jeweler>, ["~> 1.5.2"])
84
+ s.add_dependency(%q<bundler>, ["= 1.3.2"])
85
+ s.add_dependency(%q<jeweler>, ["= 1.8.4"])
94
86
  s.add_dependency(%q<rcov>, [">= 0"])
95
87
  end
96
88
  end
data/lib/kindai/book.rb CHANGED
@@ -50,7 +50,13 @@ module Kindai
50
50
  def author
51
51
  metadata_like 'creator:NDLNH'
52
52
  rescue
53
+ alt_author
54
+ end
55
+
56
+ def alt_author
53
57
  metadata_like 'creator'
58
+ rescue
59
+ metadata_like 'publisher'
54
60
  end
55
61
 
56
62
  def total_spread
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kindai
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.2
4
+ version: 2.2.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-09-14 00:00:00.000000000Z
12
+ date: 2013-03-13 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: nokogiri
16
- requirement: &70208513812460 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,21 +21,31 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70208513812460
25
- - !ruby/object:Gem::Dependency
26
- name: rmagick
27
- requirement: &70208513811760 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
28
25
  none: false
29
26
  requirements:
30
27
  - - ! '>='
31
28
  - !ruby/object:Gem::Version
32
29
  version: '0'
30
+ - !ruby/object:Gem::Dependency
31
+ name: rmagick
32
+ requirement: !ruby/object:Gem::Requirement
33
+ none: false
34
+ requirements:
35
+ - - '='
36
+ - !ruby/object:Gem::Version
37
+ version: 2.13.2
33
38
  type: :runtime
34
39
  prerelease: false
35
- version_requirements: *70208513811760
40
+ version_requirements: !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - '='
44
+ - !ruby/object:Gem::Version
45
+ version: 2.13.2
36
46
  - !ruby/object:Gem::Dependency
37
47
  name: zipruby
38
- requirement: &70208513811180 !ruby/object:Gem::Requirement
48
+ requirement: !ruby/object:Gem::Requirement
39
49
  none: false
40
50
  requirements:
41
51
  - - ! '>='
@@ -43,10 +53,15 @@ dependencies:
43
53
  version: '0'
44
54
  type: :runtime
45
55
  prerelease: false
46
- version_requirements: *70208513811180
56
+ version_requirements: !ruby/object:Gem::Requirement
57
+ none: false
58
+ requirements:
59
+ - - ! '>='
60
+ - !ruby/object:Gem::Version
61
+ version: '0'
47
62
  - !ruby/object:Gem::Dependency
48
63
  name: json
49
- requirement: &70208513810680 !ruby/object:Gem::Requirement
64
+ requirement: !ruby/object:Gem::Requirement
50
65
  none: false
51
66
  requirements:
52
67
  - - ! '>='
@@ -54,10 +69,15 @@ dependencies:
54
69
  version: '1.4'
55
70
  type: :runtime
56
71
  prerelease: false
57
- version_requirements: *70208513810680
72
+ version_requirements: !ruby/object:Gem::Requirement
73
+ none: false
74
+ requirements:
75
+ - - ! '>='
76
+ - !ruby/object:Gem::Version
77
+ version: '1.4'
58
78
  - !ruby/object:Gem::Dependency
59
79
  name: rspec
60
- requirement: &70208513810080 !ruby/object:Gem::Requirement
80
+ requirement: !ruby/object:Gem::Requirement
61
81
  none: false
62
82
  requirements:
63
83
  - - ~>
@@ -65,32 +85,47 @@ dependencies:
65
85
  version: 2.3.0
66
86
  type: :development
67
87
  prerelease: false
68
- version_requirements: *70208513810080
88
+ version_requirements: !ruby/object:Gem::Requirement
89
+ none: false
90
+ requirements:
91
+ - - ~>
92
+ - !ruby/object:Gem::Version
93
+ version: 2.3.0
69
94
  - !ruby/object:Gem::Dependency
70
95
  name: bundler
71
- requirement: &70208513809520 !ruby/object:Gem::Requirement
96
+ requirement: !ruby/object:Gem::Requirement
72
97
  none: false
73
98
  requirements:
74
- - - ~>
99
+ - - '='
75
100
  - !ruby/object:Gem::Version
76
- version: 1.0.0
101
+ version: 1.3.2
77
102
  type: :development
78
103
  prerelease: false
79
- version_requirements: *70208513809520
104
+ version_requirements: !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - '='
108
+ - !ruby/object:Gem::Version
109
+ version: 1.3.2
80
110
  - !ruby/object:Gem::Dependency
81
111
  name: jeweler
82
- requirement: &70208513809040 !ruby/object:Gem::Requirement
112
+ requirement: !ruby/object:Gem::Requirement
83
113
  none: false
84
114
  requirements:
85
- - - ~>
115
+ - - '='
86
116
  - !ruby/object:Gem::Version
87
- version: 1.5.2
117
+ version: 1.8.4
88
118
  type: :development
89
119
  prerelease: false
90
- version_requirements: *70208513809040
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ none: false
122
+ requirements:
123
+ - - '='
124
+ - !ruby/object:Gem::Version
125
+ version: 1.8.4
91
126
  - !ruby/object:Gem::Dependency
92
127
  name: rcov
93
- requirement: &70208513808380 !ruby/object:Gem::Requirement
128
+ requirement: !ruby/object:Gem::Requirement
94
129
  none: false
95
130
  requirements:
96
131
  - - ! '>='
@@ -98,7 +133,12 @@ dependencies:
98
133
  version: '0'
99
134
  type: :development
100
135
  prerelease: false
101
- version_requirements: *70208513808380
136
+ version_requirements: !ruby/object:Gem::Requirement
137
+ none: false
138
+ requirements:
139
+ - - ! '>='
140
+ - !ruby/object:Gem::Version
141
+ version: '0'
102
142
  description: kindai.rb is kindai digital library downloader.
103
143
  email: hitode909@gmail.com
104
144
  executables:
@@ -154,7 +194,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
154
194
  version: '0'
155
195
  segments:
156
196
  - 0
157
- hash: 4318367053501299521
197
+ hash: -2456548861564892327
158
198
  required_rubygems_version: !ruby/object:Gem::Requirement
159
199
  none: false
160
200
  requirements:
@@ -163,14 +203,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
163
203
  version: '0'
164
204
  requirements: []
165
205
  rubyforge_project:
166
- rubygems_version: 1.8.6
206
+ rubygems_version: 1.8.25
167
207
  signing_key:
168
208
  specification_version: 3
169
209
  summary: kindai digital library downloader
170
- test_files:
171
- - spec/book_downloader_spec.rb
172
- - spec/book_spec.rb
173
- - spec/searcher_spec.rb
174
- - spec/spec_helper.rb
175
- - spec/spread_downloader_spec.rb
176
- - spec/spread_spec.rb
210
+ test_files: []