comicvine 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/.gitignore +1 -0
- data/Rakefile +10 -0
- data/certs/homans.pem +15 -15
- data/checksum/comicvine-0.1.3.gem.sha256 +1 -0
- data/comicvine.gemspec +3 -1
- data/lib/comicvine.rb +3 -3
- data/lib/comicvine/list.rb +3 -3
- data/lib/comicvine/version.rb +1 -1
- metadata +48 -19
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d0d38c99771fa186d3172b1a4883773f7f19410
|
4
|
+
data.tar.gz: dc79245af9c02f906d7566a05b9b7dded057708f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 75ba876f69e307fc4a67d90cc8a1197a444406a413210d5dd5dd25135f3d29000ca64f46f9a71a12fb29b89423a8aa1104ec763d9ad660a6b21d751939c91015
|
7
|
+
data.tar.gz: 1dccf0ea25b9c5716bdea8aa5e4bf85f6279966a6bdebc85487dfc0d001d5a67013d1429a53ced7ef51cebb777993a3b9ba113de35ed578e2384eb1fde8d0810
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/.gitignore
CHANGED
data/Rakefile
CHANGED
@@ -1,6 +1,7 @@
|
|
1
1
|
require 'bundler/gem_tasks'
|
2
2
|
require 'rake/testtask'
|
3
3
|
require 'yard'
|
4
|
+
require 'dotenv/load'
|
4
5
|
|
5
6
|
# Test tasks
|
6
7
|
Rake::TestTask.new(:test) do |t|
|
@@ -25,4 +26,13 @@ Rake::Task['build'].enhance do
|
|
25
26
|
checksum = Digest::SHA256.new.hexdigest(File.read(built_gem_path))
|
26
27
|
checksum_path = 'checksum/comicvine-'+ComicVine::VERSION+'.gem.sha256'
|
27
28
|
File.open(checksum_path, 'w' ) {|f| f.write(checksum) }
|
29
|
+
end
|
30
|
+
|
31
|
+
task :console do
|
32
|
+
require 'irb'
|
33
|
+
require 'irb/completion'
|
34
|
+
require 'comicvine'
|
35
|
+
|
36
|
+
ARGV.clear
|
37
|
+
IRB.start
|
28
38
|
end
|
data/certs/homans.pem
CHANGED
@@ -1,21 +1,21 @@
|
|
1
1
|
-----BEGIN CERTIFICATE-----
|
2
2
|
MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRUwEwYDVQQDDAxob2xk
|
3
3
|
ZW4ub21hbnMxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
|
4
|
-
|
4
|
+
A2NvbTAeFw0xNzA0MDkyMTAwMTJaFw0xODA0MDkyMTAwMTJaMEMxFTATBgNVBAMM
|
5
5
|
DGhvbGRlbi5vbWFuczEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
6
|
+
LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyNPYv6sC
|
7
|
+
h/gLJ4XG0QdPJUEtvg8AwPLHz/BHLHKJPvq6Nyh2UDiWy+ZyP+uioBAxieHrMA4m
|
8
|
+
2v60BLIYWQyl2jPK2Rc2kchrciskFNy7wQMvi59a6+FFBMwdrl55stgJQOGorKSA
|
9
|
+
B/w/WYOnTWLzA6NuoRoA0JU1mWzKPCYn8HZLX88y5LzKZ6011K2zeh19MJDngaGU
|
10
|
+
EjOavcgNsNVGdlTToyz4P0v8kyXbRdKsBM4On7bN59ujHSOVdUr//Ze1IJj3dtew
|
11
|
+
bcefgVhmX+TtxjtKo1+V5Nt1YzQ3omiEbVt6I8yIuY87CDk8KJiXjzCR1iiNu8YF
|
12
|
+
zBm0vYm6tuRCKQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
|
13
|
+
HQ4EFgQUKuIxpvKKtDKrTwoV2OTimRBnu1YwIQYDVR0RBBowGIEWaG9sZGVuLm9t
|
14
14
|
YW5zQGdtYWlsLmNvbTAhBgNVHRIEGjAYgRZob2xkZW4ub21hbnNAZ21haWwuY29t
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
15
|
+
MA0GCSqGSIb3DQEBBQUAA4IBAQADMSGgLnyWg3FkyFsf0p5Y/yeN3giPIMjc4pK8
|
16
|
+
im1nsfZRotJvkWgobP17tkSK4YPYSlIqf9O5hCZlHHG8aGfy+L4ax9w23QOa9oJm
|
17
|
+
90OnzyR7G7CCXBOhjYXX5YsQbxBSbNwQQxLjjuOXe1HvgAKNCwMEI2Gj+5ByMMn3
|
18
|
+
uq/WPwQKccVm0Ado75I+1IiIpdJjWfOMt5KBxS/JCpE8hRxc3viXdTvN3vSUZ7q7
|
19
|
+
yFGnn1/BkVPEZOvDj9bIANBVtWP0hebPDM/v7B7Lz+SSfqSaWGAwi+XoDe2kN0Ii
|
20
|
+
LHXORkT9cmA6WykguTkGcDw9YiV/I7VMHzYyurD2x+nOXmla
|
21
21
|
-----END CERTIFICATE-----
|
@@ -0,0 +1 @@
|
|
1
|
+
068ab31624b787fa4e8d264f57681c4495493879ed6426c02285d800a1ccf184
|
data/comicvine.gemspec
CHANGED
@@ -11,7 +11,7 @@ Gem::Specification.new do |spec|
|
|
11
11
|
|
12
12
|
spec.summary = %q{Api interface to ComicVine. Allows for searches and returning specific information on resources.}
|
13
13
|
spec.description = %q{Interface to ComicVine API}
|
14
|
-
spec.homepage = 'https://github.com/
|
14
|
+
spec.homepage = 'https://github.com/spoved/ruby-comicvine-api'
|
15
15
|
spec.license = 'MIT'
|
16
16
|
|
17
17
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
@@ -31,6 +31,8 @@ Gem::Specification.new do |spec|
|
|
31
31
|
spec.add_development_dependency 'minitest-reporters', '~> 1.1', '>= 1.1.12'
|
32
32
|
spec.add_development_dependency 'rdoc', '~> 4.2', '>= 4.2.1'
|
33
33
|
spec.add_development_dependency 'yard', '~> 0.9', '>= 0.9.5'
|
34
|
+
spec.add_development_dependency 'minitest-vcr', '~> 1.4'
|
35
|
+
spec.add_development_dependency 'dotenv-rails'
|
34
36
|
|
35
37
|
# Dependencies
|
36
38
|
spec.add_dependency 'rest-client', '~> 2.0'
|
data/lib/comicvine.rb
CHANGED
@@ -19,7 +19,7 @@ module ComicVine
|
|
19
19
|
API_VERSION = '1.0'
|
20
20
|
|
21
21
|
# Base ComicVine url
|
22
|
-
API_URL = '
|
22
|
+
API_URL = 'https://comicvine.gamespot.com/api'
|
23
23
|
|
24
24
|
# ComicVine format (json)
|
25
25
|
API_FORMAT = 'json'
|
@@ -239,9 +239,9 @@ module ComicVine
|
|
239
239
|
def _build_base_url(resource, id = nil)
|
240
240
|
if ComicVine::API_RESOURCES.include? resource
|
241
241
|
if !id.nil?
|
242
|
-
API_URL + '/' + resource.to_s + '/' + "#{self.find_detail(resource)['id']}-#{id.to_s}"
|
242
|
+
API_URL + '/' + resource.to_s + '/' + "#{self.find_detail(resource)['id']}-#{id.to_s}/"
|
243
243
|
else
|
244
|
-
API_URL + '/' + resource.to_s
|
244
|
+
API_URL + '/' + resource.to_s + '/'
|
245
245
|
end
|
246
246
|
else
|
247
247
|
raise ResourceNotSupportedError, resource.to_s + ' is not a supported resource'
|
data/lib/comicvine/list.rb
CHANGED
@@ -30,7 +30,7 @@ module ComicVine
|
|
30
30
|
# Returns the current page the object is on
|
31
31
|
# @return [Integer]
|
32
32
|
def page
|
33
|
-
(
|
33
|
+
(self.offset / self.limit) + 1
|
34
34
|
end
|
35
35
|
|
36
36
|
# Returns the total number of pages available
|
@@ -51,8 +51,8 @@ module ComicVine
|
|
51
51
|
|
52
52
|
def update_ivals(new_cvol)
|
53
53
|
@total_count = new_cvol.total_count
|
54
|
-
@offset = new_cvol.offset
|
55
|
-
@limit = new_cvol.limit
|
54
|
+
@offset = new_cvol.offset || 0
|
55
|
+
@limit = new_cvol.limit || 0
|
56
56
|
@cvos = new_cvol.cvos
|
57
57
|
end
|
58
58
|
|
data/lib/comicvine/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: comicvine
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Holden Omans
|
@@ -12,25 +12,25 @@ cert_chain:
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
13
13
|
MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRUwEwYDVQQDDAxob2xk
|
14
14
|
ZW4ub21hbnMxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
|
15
|
-
|
15
|
+
A2NvbTAeFw0xNzA0MDkyMTAwMTJaFw0xODA0MDkyMTAwMTJaMEMxFTATBgNVBAMM
|
16
16
|
DGhvbGRlbi5vbWFuczEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
17
|
+
LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEAyNPYv6sC
|
18
|
+
h/gLJ4XG0QdPJUEtvg8AwPLHz/BHLHKJPvq6Nyh2UDiWy+ZyP+uioBAxieHrMA4m
|
19
|
+
2v60BLIYWQyl2jPK2Rc2kchrciskFNy7wQMvi59a6+FFBMwdrl55stgJQOGorKSA
|
20
|
+
B/w/WYOnTWLzA6NuoRoA0JU1mWzKPCYn8HZLX88y5LzKZ6011K2zeh19MJDngaGU
|
21
|
+
EjOavcgNsNVGdlTToyz4P0v8kyXbRdKsBM4On7bN59ujHSOVdUr//Ze1IJj3dtew
|
22
|
+
bcefgVhmX+TtxjtKo1+V5Nt1YzQ3omiEbVt6I8yIuY87CDk8KJiXjzCR1iiNu8YF
|
23
|
+
zBm0vYm6tuRCKQIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
|
24
|
+
HQ4EFgQUKuIxpvKKtDKrTwoV2OTimRBnu1YwIQYDVR0RBBowGIEWaG9sZGVuLm9t
|
25
25
|
YW5zQGdtYWlsLmNvbTAhBgNVHRIEGjAYgRZob2xkZW4ub21hbnNAZ21haWwuY29t
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
26
|
+
MA0GCSqGSIb3DQEBBQUAA4IBAQADMSGgLnyWg3FkyFsf0p5Y/yeN3giPIMjc4pK8
|
27
|
+
im1nsfZRotJvkWgobP17tkSK4YPYSlIqf9O5hCZlHHG8aGfy+L4ax9w23QOa9oJm
|
28
|
+
90OnzyR7G7CCXBOhjYXX5YsQbxBSbNwQQxLjjuOXe1HvgAKNCwMEI2Gj+5ByMMn3
|
29
|
+
uq/WPwQKccVm0Ado75I+1IiIpdJjWfOMt5KBxS/JCpE8hRxc3viXdTvN3vSUZ7q7
|
30
|
+
yFGnn1/BkVPEZOvDj9bIANBVtWP0hebPDM/v7B7Lz+SSfqSaWGAwi+XoDe2kN0Ii
|
31
|
+
LHXORkT9cmA6WykguTkGcDw9YiV/I7VMHzYyurD2x+nOXmla
|
32
32
|
-----END CERTIFICATE-----
|
33
|
-
date:
|
33
|
+
date: 2017-05-10 00:00:00.000000000 Z
|
34
34
|
dependencies:
|
35
35
|
- !ruby/object:Gem::Dependency
|
36
36
|
name: bundler
|
@@ -140,6 +140,34 @@ dependencies:
|
|
140
140
|
- - ">="
|
141
141
|
- !ruby/object:Gem::Version
|
142
142
|
version: 0.9.5
|
143
|
+
- !ruby/object:Gem::Dependency
|
144
|
+
name: minitest-vcr
|
145
|
+
requirement: !ruby/object:Gem::Requirement
|
146
|
+
requirements:
|
147
|
+
- - "~>"
|
148
|
+
- !ruby/object:Gem::Version
|
149
|
+
version: '1.4'
|
150
|
+
type: :development
|
151
|
+
prerelease: false
|
152
|
+
version_requirements: !ruby/object:Gem::Requirement
|
153
|
+
requirements:
|
154
|
+
- - "~>"
|
155
|
+
- !ruby/object:Gem::Version
|
156
|
+
version: '1.4'
|
157
|
+
- !ruby/object:Gem::Dependency
|
158
|
+
name: dotenv-rails
|
159
|
+
requirement: !ruby/object:Gem::Requirement
|
160
|
+
requirements:
|
161
|
+
- - ">="
|
162
|
+
- !ruby/object:Gem::Version
|
163
|
+
version: '0'
|
164
|
+
type: :development
|
165
|
+
prerelease: false
|
166
|
+
version_requirements: !ruby/object:Gem::Requirement
|
167
|
+
requirements:
|
168
|
+
- - ">="
|
169
|
+
- !ruby/object:Gem::Version
|
170
|
+
version: '0'
|
143
171
|
- !ruby/object:Gem::Dependency
|
144
172
|
name: rest-client
|
145
173
|
requirement: !ruby/object:Gem::Requirement
|
@@ -174,13 +202,14 @@ files:
|
|
174
202
|
- checksum/comicvine-0.1.0.gem.sha256
|
175
203
|
- checksum/comicvine-0.1.1.gem.sha256
|
176
204
|
- checksum/comicvine-0.1.2.gem.sha256
|
205
|
+
- checksum/comicvine-0.1.3.gem.sha256
|
177
206
|
- comicvine.gemspec
|
178
207
|
- lib/comicvine.rb
|
179
208
|
- lib/comicvine/list.rb
|
180
209
|
- lib/comicvine/resource.rb
|
181
210
|
- lib/comicvine/resource/resources.rb
|
182
211
|
- lib/comicvine/version.rb
|
183
|
-
homepage: https://github.com/
|
212
|
+
homepage: https://github.com/spoved/ruby-comicvine-api
|
184
213
|
licenses:
|
185
214
|
- MIT
|
186
215
|
metadata: {}
|
@@ -200,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
200
229
|
version: '0'
|
201
230
|
requirements: []
|
202
231
|
rubyforge_project:
|
203
|
-
rubygems_version: 2.
|
232
|
+
rubygems_version: 2.6.10
|
204
233
|
signing_key:
|
205
234
|
specification_version: 4
|
206
235
|
summary: Api interface to ComicVine. Allows for searches and returning specific information
|
metadata.gz.sig
CHANGED
Binary file
|