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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60008d77105b11f4fd17f4fe4e4128b85f4fe5b9
4
- data.tar.gz: abd919160174627857854e96d74e24def8534710
3
+ metadata.gz: 4d0d38c99771fa186d3172b1a4883773f7f19410
4
+ data.tar.gz: dc79245af9c02f906d7566a05b9b7dded057708f
5
5
  SHA512:
6
- metadata.gz: 876fa96672cb1e3c242d4e0631e66b4344a0d2f8ba4460f3f7231515aa0df1a85c875508f0bf562f85df774d0e6596b8bc279341277792b00899d118ea56e3fe
7
- data.tar.gz: 12993f73937af03d422f89c4c84f640061b1b700787477b9cf366ed4c3373c19ae6485f49aaa6fe477ba0813a430db041381481869c2586c34cd8d8d9eadfc9c
6
+ metadata.gz: 75ba876f69e307fc4a67d90cc8a1197a444406a413210d5dd5dd25135f3d29000ca64f46f9a71a12fb29b89423a8aa1104ec763d9ad660a6b21d751939c91015
7
+ data.tar.gz: 1dccf0ea25b9c5716bdea8aa5e4bf85f6279966a6bdebc85487dfc0d001d5a67013d1429a53ced7ef51cebb777993a3b9ba113de35ed578e2384eb1fde8d0810
Binary file
data.tar.gz.sig CHANGED
Binary file
data/.gitignore CHANGED
@@ -7,3 +7,4 @@
7
7
  /pkg/
8
8
  /spec/reports/
9
9
  /tmp/
10
+ /.env
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
@@ -1,21 +1,21 @@
1
1
  -----BEGIN CERTIFICATE-----
2
2
  MIIDgDCCAmigAwIBAgIBATANBgkqhkiG9w0BAQUFADBDMRUwEwYDVQQDDAxob2xk
3
3
  ZW4ub21hbnMxFTATBgoJkiaJk/IsZAEZFgVnbWFpbDETMBEGCgmSJomT8ixkARkW
4
- A2NvbTAeFw0xNjExMDkxNTU5MTdaFw0xNzExMDkxNTU5MTdaMEMxFTATBgNVBAMM
4
+ A2NvbTAeFw0xNzA0MDkyMTAwMTJaFw0xODA0MDkyMTAwMTJaMEMxFTATBgNVBAMM
5
5
  DGhvbGRlbi5vbWFuczEVMBMGCgmSJomT8ixkARkWBWdtYWlsMRMwEQYKCZImiZPy
6
- LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AMIIBCgKCAQEA2V7yrTuO
7
- 4FNzWlhQL2R8Vdx5LKX/oewZ7bKh/2GJcR5R7mowdqejlfzJb7abtmYsQfyvwNfy
8
- NrKneghJ/rLflQ1NrlehYSYLlBFTVuymPvejG+EH5C2/RJqhm2zyfjkisasqhWk8
9
- Bq6IUPX1l8C78Kkd6t3QR/n3zr1Ip25NicpJ2flBMHPg3IV9qaNXywkCzutkEMoW
10
- FuHdHMN2cDMUnhM9qGOK7nvRk7rkP/yJAp+sf2nv+C99s5CMNuvnGeSgnX7IMcRV
11
- Ks2FrSvqKDj24Xf5kHdlcpDrS1VcFsAkIT6bVBm19KO8pFvZkDJE76Yshy80FRpQ
12
- bijjrYQhYXiM4QIDAQABo38wfTAJBgNVHRMEAjAAMAsGA1UdDwQEAwIEsDAdBgNV
13
- HQ4EFgQUbbbHhJ0Z4S/c5FcDSqEVx7Yk1agwIQYDVR0RBBowGIEWaG9sZGVuLm9t
6
+ LGQBGRYDY29tMIIBIjANBgkqhkiG9w0BAQEFAAOCAQ8AM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f9O5hCZlHHG8aGfy+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
@@ -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/kalinon/ruby-comicvine-api'
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'
@@ -19,7 +19,7 @@ module ComicVine
19
19
  API_VERSION = '1.0'
20
20
 
21
21
  # Base ComicVine url
22
- API_URL = 'http://comicvine.gamespot.com/api'
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'
@@ -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
- (@offset / @limit) + 1
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
 
@@ -1,4 +1,4 @@
1
1
  module ComicVine
2
2
  # Current gem version number
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
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.3
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
- A2NvbTAeFw0xNjExMDkxNTU5MTdaFw0xNzExMDkxNTU5MTdaMEM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ICATE-----
33
- date: 2016-11-21 00:00:00.000000000 Z
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/kalinon/ruby-comicvine-api
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.5.1
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