marvel_explorer 0.2.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (48) hide show
  1. checksums.yaml +7 -0
  2. data/.gitignore +16 -0
  3. data/.rspec +3 -0
  4. data/.travis.yml +7 -0
  5. data/Gemfile +4 -0
  6. data/Guardfile +38 -0
  7. data/LICENSE.md +22 -0
  8. data/LICENSE.txt +22 -0
  9. data/README.md +48 -0
  10. data/Rakefile +7 -0
  11. data/bin/marvel_explorer +4 -0
  12. data/config/defaults.yml +2 -0
  13. data/config.yml +3 -0
  14. data/lib/marvel_explorer/characters.rb +39 -0
  15. data/lib/marvel_explorer/cli.rb +62 -0
  16. data/lib/marvel_explorer/comic.rb +19 -0
  17. data/lib/marvel_explorer/explorer.rb +23 -0
  18. data/lib/marvel_explorer/git.rb +19 -0
  19. data/lib/marvel_explorer/helpers.rb +17 -0
  20. data/lib/marvel_explorer/rankings.rb +29 -0
  21. data/lib/marvel_explorer/twitter.rb +29 -0
  22. data/lib/marvel_explorer/version.rb +3 -0
  23. data/lib/marvel_explorer/yamlise.rb +76 -0
  24. data/lib/marvel_explorer.rb +19 -0
  25. data/marvel_explorer.gemspec +35 -0
  26. data/spec/cassettes/MarvelExplorer_Explorer/should_extract_the_year_correctly.yml +136 -0
  27. data/spec/cassettes/MarvelExplorer_Explorer/should_generate_a_commit_message.yml +255 -0
  28. data/spec/cassettes/MarvelExplorer_Explorer/should_generate_a_tweet_message.yml +255 -0
  29. data/spec/cassettes/MarvelExplorer_Explorer/should_generate_correct_yaml.yml +255 -0
  30. data/spec/cassettes/MarvelExplorer_Explorer/should_get_the_default_start_character.yml +255 -0
  31. data/spec/cassettes/MarvelExplorer_Explorer/should_get_the_end_character_from_the_comic.yml +255 -0
  32. data/spec/cassettes/MarvelExplorer_Explorer/should_load_the_stored_character.yml +255 -0
  33. data/spec/cassettes/MarvelExplorer_Explorer/should_save_the_end_character.yml +255 -0
  34. data/spec/cassettes/MarvelExplorer_Explorer/should_select_a_comic_for_the_start_character.yml +255 -0
  35. data/spec/characters_spec.rb +52 -0
  36. data/spec/explorer_spec.rb +20 -0
  37. data/spec/fixtures/double-shot-characters.json +2278 -0
  38. data/spec/fixtures/hulk_comics.json +1 -0
  39. data/spec/fixtures/last.character +7 -0
  40. data/spec/fixtures/spider-man.json +1 -0
  41. data/spec/fixtures/viper.json +1 -0
  42. data/spec/git_spec.rb +24 -0
  43. data/spec/rankings_spec.rb +59 -0
  44. data/spec/spec_helper.rb +98 -0
  45. data/spec/support/vcr_setup.rb +18 -0
  46. data/spec/tweet_spec.rb +24 -0
  47. data/spec/yaml_spec.rb +38 -0
  48. metadata +295 -0
@@ -0,0 +1,255 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://gateway.marvel.com/v1/public/characters/1009351?apikey=<PUBLIC_KEY>&hash=8ceb7173d9cf81c0ff23b04f4bb74458&ts=1417633260
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ User-Agent:
13
+ - 'Ultron v0.2.1: https://rubygems.org/gems/ultron'
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Etag:
20
+ - 64dfb9d94fef62cd429c65e0113837fc38f9a293
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Content-Length:
24
+ - '9975'
25
+ Date:
26
+ - Wed, 10 Dec 2014 09:54:11 GMT
27
+ Connection:
28
+ - keep-alive
29
+ body:
30
+ encoding: ASCII-8BIT
31
+ string: !binary |-
32
+ eyJjb2RlIjoyMDAsInN0YXR1cyI6Ik9rIiwiY29weXJpZ2h0IjoiwqkgMjAx
33
+ NCBNQVJWRUwiLCJhdHRyaWJ1dGlvblRleHQiOiJEYXRhIHByb3ZpZGVkIGJ5
34
+ IE1hcnZlbC4gwqkgMjAxNCBNQVJWRUwiLCJhdHRyaWJ1dGlvbkhUTUwiOiI8
35
+ YSBocmVmPVwiaHR0cDovL21hcnZlbC5jb21cIj5EYXRhIHByb3Zp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jYW1wYWlnbj1hcGlSZWYmdXRtX3NvdXJjZT08UFVCTElDX0tFWT4ifSx7
247
+ InR5cGUiOiJ3aWtpIiwidXJsIjoiaHR0cDovL21hcnZlbC5jb20vdW5pdmVy
248
+ c2UvSHVsa18oQnJ1Y2VfQmFubmVyKT91dG1fY2FtcGFpZ249YXBpUmVmJnV0
249
+ bV9zb3VyY2U9PFBVQkxJQ19LRVk+In0seyJ0eXBlIjoiY29taWNsaW5rIiwi
250
+ dXJsIjoiaHR0cDovL21hcnZlbC5jb20vY29taWNzL2NoYXJhY3RlcnMvMTAw
251
+ OTM1MS9odWxrP3V0bV9jYW1wYWlnbj1hcGlSZWYmdXRtX3NvdXJjZT08UFVC
252
+ TElDX0tFWT4ifV19XX19
253
+ http_version:
254
+ recorded_at: Wed, 03 Dec 2014 19:01:00 GMT
255
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,255 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://gateway.marvel.com/v1/public/characters/1009351?apikey=<PUBLIC_KEY>&hash=8ceb7173d9cf81c0ff23b04f4bb74458&ts=1417633260
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ Accept:
11
+ - application/json
12
+ User-Agent:
13
+ - 'Ultron v0.2.1: https://rubygems.org/gems/ultron'
14
+ response:
15
+ status:
16
+ code: 200
17
+ message: OK
18
+ headers:
19
+ Etag:
20
+ - 64dfb9d94fef62cd429c65e0113837fc38f9a293
21
+ Content-Type:
22
+ - application/json; charset=utf-8
23
+ Content-Length:
24
+ - '9975'
25
+ Date:
26
+ - Wed, 10 Dec 2014 16:46:31 GMT
27
+ Connection:
28
+ - keep-alive
29
+ body:
30
+ encoding: ASCII-8BIT
31
+ string: !binary |-
32
+ eyJjb2RlIjoyMDAsInN0YXR1cyI6Ik9rIiwiY29weXJpZ2h0IjoiwqkgMjAx
33
+ NCBNQVJWRUwiLCJhdHRyaWJ1dGlvblRleHQiOiJEYXRhI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
244
+ In1dLCJyZXR1cm5lZCI6MjB9LCJ1cmxzIjpbeyJ0eXBlIjoiZGV0YWlsIiwi
245
+ dXJsIjoiaHR0cDovL21hcnZlbC5jb20vY2hhcmFjdGVycy8yNS9odWxrP3V0
246
+ bV9jYW1wYWlnbj1hcGlSZWYmdXRtX3NvdXJjZT08UFVCTElDX0tFWT4ifSx7
247
+ InR5cGUiOiJ3aWtpIiwidXJsIjoiaHR0cDovL21hcnZlbC5jb20vdW5pdmVy
248
+ c2UvSHVsa18oQnJ1Y2VfQmFubmVyKT91dG1fY2FtcGFpZ249YXBpUmVmJnV0
249
+ bV9zb3VyY2U9PFBVQkxJQ19LRVk+In0seyJ0eXBlIjoiY29taWNsaW5rIiwi
250
+ dXJsIjoiaHR0cDovL21hcnZlbC5jb20vY29taWNzL2NoYXJhY3RlcnMvMTAw
251
+ OTM1MS9odWxrP3V0bV9jYW1wYWlnbj1hcGlSZWYmdXRtX3NvdXJjZT08UFVC
252
+ TElDX0tFWT4ifV19XX19
253
+ http_version:
254
+ recorded_at: Wed, 03 Dec 2014 19:01:00 GMT
255
+ recorded_with: VCR 2.9.3
@@ -0,0 +1,52 @@
1
+ require 'spec_helper'
2
+
3
+ module MarvelExplorer
4
+ describe Explorer do
5
+ before :each do
6
+ Timecop.freeze '2014-12-03T19:01:00+00:00'
7
+ FileUtils.rm_rf 'tmp/*'
8
+ @me = Explorer.new 'config.yml'
9
+ end
10
+
11
+ after :each do
12
+ Timecop.return
13
+ end
14
+
15
+ it 'should get the default start character', :vcr do
16
+ @me.config['marshal_file'] = '/dev/null'
17
+ expect(@me.start_character.name).to eq 'Hulk'
18
+ end
19
+
20
+ it 'should load the stored character', :vcr do
21
+ expect(@me.start_character.name).to eq 'Avengers'
22
+ end
23
+
24
+ it 'should select a comic for the start character', :vcr do
25
+ @me.config['marshal_file'] = '/dev/null'
26
+ stub_request(:get, /gateway.marvel.com\/v1\/public\/characters\/1009351\/comics/)
27
+ .to_return(status: 200, body: File.read('spec/fixtures/hulk_comics.json'))
28
+ expect(@me.comic.title).to eq 'Marvel Double Shot (2003) #2'
29
+ end
30
+
31
+ it 'should get the end character from the comic', :vcr do
32
+ @me.config['marshal_file'] = '/dev/null'
33
+ stub_request(:get, /gateway.marvel.com\/v1\/public\/characters\/1009351\/comics/)
34
+ .to_return(status: 200, body: File.read('spec/fixtures/hulk_comics.json'))
35
+ stub_request(:get, /gateway.marvel.com\/v1\/public\/comics\/19843\/characters/)
36
+ .to_return(status: 200, body: File.read('spec/fixtures/double-shot-characters.json'))
37
+ expect(@me.end_character.name).to eq 'Avengers'
38
+ end
39
+
40
+ it 'should save the end character', :vcr do
41
+ stub_request(:get, /gateway.marvel.com\/v1\/public\/characters\/1009351\/comics/)
42
+ .to_return(status: 200, body: File.read('spec/fixtures/hulk_comics.json'))
43
+ stub_request(:get, /gateway.marvel.com\/v1\/public\/comics\/19843\/characters/)
44
+ .to_return(status: 200, body: File.read('spec/fixtures/double-shot-characters.json'))
45
+ @me.save
46
+ f = Marshal.load File.read @me.config['marshal_file']
47
+ expect(f.name).to eq 'Avengers'
48
+
49
+ expect(File).to exist 'tmp/cached_characters/1009165'
50
+ end
51
+ end
52
+ end
@@ -0,0 +1,20 @@
1
+ require 'spec_helper'
2
+
3
+ module MarvelExplorer
4
+ describe Explorer do
5
+ before :each do
6
+ Timecop.freeze '2014-12-03T19:01:00+00:00'
7
+ FileUtils.rm_rf 'tmp/'
8
+ @me = Explorer.new 'config.yml'
9
+ end
10
+
11
+ after :each do
12
+ Timecop.return
13
+ end
14
+
15
+ it 'should extract the year correctly', :vcr do
16
+ c = Ultron::Comics.find '50372'
17
+ expect(MarvelExplorer.get_year c).to eq 2014
18
+ end
19
+ end
20
+ end