ultron 0.1.6 → 0.1.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://gateway.marvel.com/v1/public/characters/1009472/comics?apikey=<PUBLIC_KEY>&hash=ae206f7c9c5077950fc4618af8ec254b&ts=-3600
5
+ uri: http://gateway.marvel.com/v1/public/characters/1009472/comics?apikey=<PUBLIC_KEY>&hash=76b231f57308d9513618e64ac6dedc7e&ts=0
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -10,7 +10,7 @@ http_interactions:
10
10
  Accept:
11
11
  - application/json
12
12
  User-Agent:
13
- - 'Ultron v0.1.5: https://rubygems.org/gems/ultron'
13
+ - 'Ultron v0.1.6: https://rubygems.org/gems/ultron'
14
14
  response:
15
15
  status:
16
16
  code: 200
@@ -23,7 +23,7 @@ http_interactions:
23
23
  Content-Length:
24
24
  - '134301'
25
25
  Date:
26
- - Sun, 16 Feb 2014 21:17:29 GMT
26
+ - Sun, 16 Feb 2014 22:24:12 GMT
27
27
  Connection:
28
28
  - keep-alive
29
29
  body:
@@ -2994,10 +2994,10 @@ http_interactions:
2994
2994
  Lm1hcnZlbC5jb20vdjEvcHVibGljL2NvbWljcy8yMDkxMy9ldmVudHMiLCJp
2995
2995
  dGVtcyI6W10sInJldHVybmVkIjowfX1dfX0=
2996
2996
  http_version:
2997
- recorded_at: Wed, 31 Dec 1969 23:00:00 GMT
2997
+ recorded_at: Thu, 01 Jan 1970 00:00:00 GMT
2998
2998
  - request:
2999
2999
  method: get
3000
- uri: http://gateway.marvel.com/v1/public/characters/1009472/comics?apikey=<PUBLIC_KEY>&hash=414e33c708fee1c40d0d08122293d869&ts=140482800
3000
+ uri: http://gateway.marvel.com/v1/public/characters/1009472/comics?apikey=<PUBLIC_KEY>&hash=2547ff3989e35e8f0cac4470f0af647d&ts=140486400
3001
3001
  body:
3002
3002
  encoding: US-ASCII
3003
3003
  string: ''
@@ -3005,7 +3005,7 @@ http_interactions:
3005
3005
  Accept:
3006
3006
  - application/json
3007
3007
  User-Agent:
3008
- - 'Ultron v0.1.5: https://rubygems.org/gems/ultron'
3008
+ - 'Ultron v0.1.6: https://rubygems.org/gems/ultron'
3009
3009
  response:
3010
3010
  status:
3011
3011
  code: 200
@@ -3018,7 +3018,7 @@ http_interactions:
3018
3018
  Content-Length:
3019
3019
  - '134301'
3020
3020
  Date:
3021
- - Sun, 16 Feb 2014 21:17:30 GMT
3021
+ - Sun, 16 Feb 2014 22:24:13 GMT
3022
3022
  Connection:
3023
3023
  - keep-alive
3024
3024
  body:
@@ -5989,5 +5989,5 @@ http_interactions:
5989
5989
  Lm1hcnZlbC5jb20vdjEvcHVibGljL2NvbWljcy8yMDkxMy9ldmVudHMiLCJp
5990
5990
  dGVtcyI6W10sInJldHVybmVkIjowfX1dfX0=
5991
5991
  http_version:
5992
- recorded_at: Fri, 14 Jun 1974 23:00:00 GMT
5992
+ recorded_at: Sat, 15 Jun 1974 00:00:00 GMT
5993
5993
  recorded_with: VCR 2.8.0
@@ -3,14 +3,15 @@ require 'spec_helper'
3
3
  module Ultron
4
4
  describe 'equality' do
5
5
  it 'should be equal if its URL (minus the auth bit) is equal', :vcr do
6
- pending 'Because this throws Travis into a flat spin'
7
- Timecop.freeze '1970-01-01'
6
+ # pending 'Because this throws Travis into a flat spin'
7
+ Timecop.freeze '1970-01-01T00:00:00+00:00'
8
8
  a = Comics.by_character 1009472 # Nightcrawler
9
9
 
10
- Timecop.freeze '1974-06-15'
10
+ Timecop.freeze '1974-06-15T00:00:00+00:00'
11
11
  b = Comics.by_character 1009472
12
12
 
13
13
  a.should == b
14
+ Timecop.return
14
15
  end
15
16
  end
16
17
  end
@@ -11,6 +11,19 @@ module Ultron
11
11
  series.count.should == 20
12
12
  end
13
13
 
14
+ it 'should give us a larger set of series', :vcr do
15
+ series = Series.get_and_with limit: 50
16
+ series.count.should == 50
17
+ end
18
+
19
+ it 'should not accept any old method', :vcr do
20
+ begin
21
+ series = Series.derp
22
+ rescue Exception => e
23
+ e.class.should == NoMethodError
24
+ end
25
+ end
26
+
14
27
  after :each do
15
28
  Timecop.return
16
29
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ultron
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - pikesley
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-02-16 00:00:00.000000000 Z
11
+ date: 2014-02-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: curb
@@ -286,6 +286,7 @@ files:
286
286
  - spec/cassettes/Ultron_Creators/should_find_a_list_of_series_by_the_creator.yml
287
287
  - spec/cassettes/Ultron_Events/should_find_a_list_of_stories_for_the_event.yml
288
288
  - spec/cassettes/Ultron_Series/should_give_a_default_set_of_series.yml
289
+ - spec/cassettes/Ultron_Series/should_give_us_a_larger_set_of_series.yml
289
290
  - spec/cassettes/equality/should_be_equal_if_its_URL_minus_the_auth_bit_is_equal.yml
290
291
  - spec/cassettes/exceptions/should_throw_a_404_wrapped_in_a_Marvel_exception_on_a_404.yml
291
292
  - spec/cassettes/exceptions/should_throw_a_No_Idea_What_This_Param_Is_exception.yml
@@ -349,6 +350,7 @@ test_files:
349
350
  - spec/cassettes/Ultron_Creators/should_find_a_list_of_series_by_the_creator.yml
350
351
  - spec/cassettes/Ultron_Events/should_find_a_list_of_stories_for_the_event.yml
351
352
  - spec/cassettes/Ultron_Series/should_give_a_default_set_of_series.yml
353
+ - spec/cassettes/Ultron_Series/should_give_us_a_larger_set_of_series.yml
352
354
  - spec/cassettes/equality/should_be_equal_if_its_URL_minus_the_auth_bit_is_equal.yml
353
355
  - spec/cassettes/exceptions/should_throw_a_404_wrapped_in_a_Marvel_exception_on_a_404.yml
354
356
  - spec/cassettes/exceptions/should_throw_a_No_Idea_What_This_Param_Is_exception.yml