jarvis-cli 0.0.5 → 0.0.6
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.
- checksums.yaml +4 -4
- data/Guardfile +47 -0
- data/Rakefile +9 -0
- data/features/giphy_service.feature +3 -0
- data/features/i_heart_quotes_service.feature +21 -0
- data/features/step_definitions/giphy_steps.rb +3 -0
- data/features/step_definitions/server_steps.rb +1 -1
- data/features/step_definitions/weather_steps.rb +3 -0
- data/features/support/env.rb +1 -2
- data/features/support/vcr_cassettes/Giphy_Service/Bacon.yml +2 -2
- data/features/support/vcr_cassettes/Giphy_Service/Cat_GIF_-_Cat_Wording.yml +2 -2
- data/features/support/vcr_cassettes/Giphy_Service/Cat_GIF_-_Kitty_Wording.yml +2 -2
- data/features/support/vcr_cassettes/Giphy_Service/Cat_GIF_-_Kitty_Wording_-_Case_Insensitive.yml +2 -2
- data/features/support/vcr_cassettes/Giphy_Service/Plain_old_GIF.yml +2 -2
- data/features/support/vcr_cassettes/Giphy_Service/Sloth.yml +2 -2
- data/features/support/vcr_cassettes/Giphy_Service/Trippy.yml +2 -2
- data/features/support/vcr_cassettes/I_Heart_Quotes/A_Random_Quote.yml +44 -0
- data/features/support/vcr_cassettes/I_Heart_Quotes/A_Simpsons_Quote.yml +44 -0
- data/features/support/vcr_cassettes/I_Heart_Quotes/A_Star_Wars_Quote.yml +44 -0
- data/features/support/vcr_cassettes/Weather_Service/Use_a_specified_location.yml +86 -0
- data/features/support/vcr_cassettes/Weather_Service/Use_default_location.yml +86 -0
- data/features/weather_service.feature +21 -0
- data/jarvis-cli.gemspec +4 -0
- data/lib/jarvis.rb +8 -0
- data/lib/jarvis/api/response.rb +11 -1
- data/lib/jarvis/refinements.rb +1 -0
- data/lib/jarvis/refinements/zip_refinement.rb +11 -0
- data/lib/jarvis/server.rb +1 -1
- data/lib/jarvis/service.rb +2 -2
- data/lib/jarvis/services.rb +2 -0
- data/lib/jarvis/services/fact.rb +1 -1
- data/lib/jarvis/services/i_heart_quotes.rb +29 -0
- data/lib/jarvis/services/weather.rb +42 -0
- data/lib/jarvis/test_support/cucumber.rb +1 -0
- data/lib/jarvis/test_support/test_support.rb +7 -0
- data/lib/jarvis/version.rb +1 -1
- data/spec/jarvis/jarvis_spec.rb +6 -0
- data/spec/services/giphy_spec.rb +1 -0
- data/spec/services/i_heart_quotes_spec.rb +50 -0
- data/spec/services/weather_spec.rb +17 -0
- data/spec/spec_helper.rb +0 -6
- data/spec/support/fixtures/vcr_cassettes/giphy.yml +240 -5
- data/spec/support/fixtures/vcr_cassettes/i_heart_quotes.yml +222 -0
- data/spec/support/fixtures/vcr_cassettes/weather.yml +346 -0
- data/templates/project/bot/server.rb +1 -1
- metadata +90 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 3a0491b5074988bd5f10c5d0c8f5b6951a50eddf
|
4
|
+
data.tar.gz: 7b506196dab846f5b1cee49211711f62ef4654fd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bad91d85486874fef415cdd5b69dfa2b0a58362da2bb8edc63a8e34cbd7a395bac083a47cc36b8584234ad4ddbb75004f3acad9cf2ca6338a4500ff6220b1d65
|
7
|
+
data.tar.gz: de63f91f3c3a72744c6391f05a1298450eedc6d12b0e6188510663a93cb74297e10b0a6107019f802acd8bde59d3fcf642f02cf175267f92d3225eb50aef5d1e
|
data/Guardfile
ADDED
@@ -0,0 +1,47 @@
|
|
1
|
+
# A sample Guardfile
|
2
|
+
# More info at https://github.com/guard/guard#readme
|
3
|
+
|
4
|
+
## Uncomment and set this to only include directories you want to watch
|
5
|
+
# directories %w(app lib config test spec features)
|
6
|
+
|
7
|
+
## Uncomment to clear the screen before every task
|
8
|
+
# clearing :on
|
9
|
+
|
10
|
+
## Guard internally checks for changes in the Guardfile and exits.
|
11
|
+
## If you want Guard to automatically start up again, run guard in a
|
12
|
+
## shell loop, e.g.:
|
13
|
+
##
|
14
|
+
## $ while bundle exec guard; do echo "Restarting Guard..."; done
|
15
|
+
##
|
16
|
+
## Note: if you are using the `directories` clause above and you are not
|
17
|
+
## watching the project directory ('.'), then you will want to move
|
18
|
+
## the Guardfile to a watched dir and symlink it back, e.g.
|
19
|
+
#
|
20
|
+
# $ mkdir config
|
21
|
+
# $ mv Guardfile config/
|
22
|
+
# $ ln -s config/Guardfile .
|
23
|
+
#
|
24
|
+
# and, you'll have to watch "config/Guardfile" instead of "Guardfile"
|
25
|
+
|
26
|
+
# Note: The cmd option is now required due to the increasing number of ways
|
27
|
+
# rspec may be run, below are examples of the most common uses.
|
28
|
+
# * bundler: 'bundle exec rspec'
|
29
|
+
# * bundler binstubs: 'bin/rspec'
|
30
|
+
# * spring: 'bin/rspec' (This will use spring if running and you have
|
31
|
+
# installed the spring binstubs per the docs)
|
32
|
+
# * zeus: 'zeus rspec' (requires the server to be started separately)
|
33
|
+
# * 'just' rspec: 'rspec'
|
34
|
+
|
35
|
+
guard :rspec, cmd: 'rspec' do
|
36
|
+
watch(%r{^spec/.+_spec\.rb$})
|
37
|
+
watch(%r{^lib/(.+)\.rb$}) { |m| "spec/lib/#{m[1]}_spec.rb" }
|
38
|
+
watch('spec/spec_helper.rb') { "spec" }
|
39
|
+
end
|
40
|
+
|
41
|
+
guard "cucumber" do
|
42
|
+
watch(%r{^features/.+\.feature$})
|
43
|
+
watch(%r{^features/support/.+$}) { "features" }
|
44
|
+
watch(%r{^features/step_definitions/(.+)_steps\.rb$}) do |m|
|
45
|
+
Dir[File.join("**/#{m[1]}.feature")][0] || "features"
|
46
|
+
end
|
47
|
+
end
|
data/Rakefile
CHANGED
@@ -4,6 +4,9 @@ Feature: Giphy Service
|
|
4
4
|
As a lover of GIFs
|
5
5
|
I want Jarvis to return random GIFs from a variety of categories
|
6
6
|
|
7
|
+
Background:
|
8
|
+
Given the environment is configured for Giphy
|
9
|
+
|
7
10
|
Scenario: Plain old GIF
|
8
11
|
Given a server is running with the giphy service enabled
|
9
12
|
When Jarvis recieves the message "Jarvis a gif please"
|
@@ -0,0 +1,21 @@
|
|
1
|
+
@vcr
|
2
|
+
Feature: I Heart Quotes
|
3
|
+
|
4
|
+
Because quotes are awesome
|
5
|
+
As a consumer of popular culture
|
6
|
+
I want Jarvis to return random quotes
|
7
|
+
|
8
|
+
Scenario: A Random Quote
|
9
|
+
Given a server is running with the i heart quotes service enabled
|
10
|
+
When Jarvis recieves the message "Jarvis know any good quotes?"
|
11
|
+
Then Jarvis will respond with "A random quote goes here"
|
12
|
+
|
13
|
+
Scenario: A Simpsons Quote
|
14
|
+
Given a server is running with the i heart quotes service enabled
|
15
|
+
When Jarvis recieves the message "Jarvis know any good simpsons quotes?"
|
16
|
+
Then Jarvis will respond with "Marge: I would love you if you weighed 1,000 pounds but ..."
|
17
|
+
|
18
|
+
Scenario: A Star Wars Quote
|
19
|
+
Given a server is running with the i heart quotes service enabled
|
20
|
+
When Jarvis recieves the message "Jarvis know any good star wars quotes?"
|
21
|
+
Then Jarvis will respond with "Emperor Palpatine Strike me down with all of your hatred and your journey towards the dark side will be complete!"
|
data/features/support/env.rb
CHANGED
@@ -7,6 +7,7 @@ require 'capybara/cucumber'
|
|
7
7
|
require 'vcr'
|
8
8
|
require 'webmock'
|
9
9
|
require 'jarvis/test_support/test_support'
|
10
|
+
require 'jarvis/test_support/cucumber'
|
10
11
|
|
11
12
|
|
12
13
|
include Rack::Test::Methods
|
@@ -31,8 +32,6 @@ VCR.cucumber_tags do |t|
|
|
31
32
|
t.tag '@vcr', :use_scenario_name => true
|
32
33
|
end
|
33
34
|
|
34
|
-
|
35
|
-
|
36
35
|
def app
|
37
36
|
Server
|
38
37
|
end
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://api.giphy.com/v1/gifs/random?api_key=
|
5
|
+
uri: http://api.giphy.com/v1/gifs/random?api_key=key&tag=bacon
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -53,6 +53,6 @@ http_interactions:
|
|
53
53
|
string: |2-
|
54
54
|
|
55
55
|
{"data":{"type":"gif","id":"PJ3wMa5ImiVY4","url":"http:\/\/giphy.com\/gifs\/bacon-PJ3wMa5ImiVY4","image_original_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/PJ3wMa5ImiVY4\/giphy.gif","image_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/PJ3wMa5ImiVY4\/giphy.gif","image_mp4_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/PJ3wMa5ImiVY4\/giphy.mp4","image_frames":"92","image_width":"360","image_height":"480","fixed_height_downsampled_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/PJ3wMa5ImiVY4\/200_d.gif","fixed_height_downsampled_width":"150","fixed_height_downsampled_height":"200","fixed_width_downsampled_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/PJ3wMa5ImiVY4\/200w_d.gif","fixed_width_downsampled_width":"200","fixed_width_downsampled_height":"267","fixed_height_small_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/PJ3wMa5ImiVY4\/100.gif","fixed_height_small_still_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/PJ3wMa5ImiVY4\/100_s.gif","fixed_height_small_width":"75","fixed_height_small_height":"100","fixed_width_small_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/PJ3wMa5ImiVY4\/100w.gif","fixed_width_small_still_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/PJ3wMa5ImiVY4\/100w_s.gif","fixed_width_small_width":"100","fixed_width_small_height":"133","rating":"g","username":"","caption":"","tags":["bacon"]},"meta":{"status":200,"msg":"OK"}}
|
56
|
-
http_version:
|
56
|
+
http_version:
|
57
57
|
recorded_at: Fri, 20 Feb 2015 20:44:27 GMT
|
58
58
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://api.giphy.com/v1/gifs/random?api_key=
|
5
|
+
uri: http://api.giphy.com/v1/gifs/random?api_key=key&tag=cat
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -53,6 +53,6 @@ http_interactions:
|
|
53
53
|
string: |2-
|
54
54
|
|
55
55
|
{"data":{"type":"gif","id":"ucEr1xRMsj6Fi","url":"http:\/\/giphy.com\/gifs\/cat-talking-ucEr1xRMsj6Fi","image_original_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/ucEr1xRMsj6Fi\/giphy.gif","image_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/ucEr1xRMsj6Fi\/giphy.gif","image_mp4_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/ucEr1xRMsj6Fi\/giphy.mp4","image_frames":"8","image_width":"500","image_height":"255","fixed_height_downsampled_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/ucEr1xRMsj6Fi\/200_d.gif","fixed_height_downsampled_width":"392","fixed_height_downsampled_height":"200","fixed_width_downsampled_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/ucEr1xRMsj6Fi\/200w_d.gif","fixed_width_downsampled_width":"200","fixed_width_downsampled_height":"102","fixed_height_small_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/ucEr1xRMsj6Fi\/100.gif","fixed_height_small_still_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/ucEr1xRMsj6Fi\/100_s.gif","fixed_height_small_width":"196","fixed_height_small_height":"100","fixed_width_small_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/ucEr1xRMsj6Fi\/100w.gif","fixed_width_small_still_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/ucEr1xRMsj6Fi\/100w_s.gif","fixed_width_small_width":"100","fixed_width_small_height":"51","rating":"g","username":"","caption":"","tags":["cat","animals","talking","meow"]},"meta":{"status":200,"msg":"OK"}}
|
56
|
-
http_version:
|
56
|
+
http_version:
|
57
57
|
recorded_at: Fri, 20 Feb 2015 20:44:26 GMT
|
58
58
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://api.giphy.com/v1/gifs/random?api_key=
|
5
|
+
uri: http://api.giphy.com/v1/gifs/random?api_key=key&tag=cat
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -53,6 +53,6 @@ http_interactions:
|
|
53
53
|
string: |2-
|
54
54
|
|
55
55
|
{"data":{"type":"gif","id":"xA88mlhRVZ3lm","url":"http:\/\/giphy.com\/gifs\/cat-oops-xA88mlhRVZ3lm","image_original_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/xA88mlhRVZ3lm\/giphy.gif","image_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/xA88mlhRVZ3lm\/giphy.gif","image_mp4_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/xA88mlhRVZ3lm\/giphy.mp4","image_frames":"74","image_width":"385","image_height":"355","fixed_height_downsampled_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/xA88mlhRVZ3lm\/200_d.gif","fixed_height_downsampled_width":"217","fixed_height_downsampled_height":"200","fixed_width_downsampled_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/xA88mlhRVZ3lm\/200w_d.gif","fixed_width_downsampled_width":"200","fixed_width_downsampled_height":"184","fixed_height_small_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/xA88mlhRVZ3lm\/100.gif","fixed_height_small_still_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/xA88mlhRVZ3lm\/100_s.gif","fixed_height_small_width":"108","fixed_height_small_height":"100","fixed_width_small_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/xA88mlhRVZ3lm\/100w.gif","fixed_width_small_still_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/xA88mlhRVZ3lm\/100w_s.gif","fixed_width_small_width":"100","fixed_width_small_height":"92","rating":"g","username":"","caption":"","tags":["cat","cat","buzzfeed","shit","oops"]},"meta":{"status":200,"msg":"OK"}}
|
56
|
-
http_version:
|
56
|
+
http_version:
|
57
57
|
recorded_at: Fri, 20 Feb 2015 20:44:26 GMT
|
58
58
|
recorded_with: VCR 2.9.3
|
data/features/support/vcr_cassettes/Giphy_Service/Cat_GIF_-_Kitty_Wording_-_Case_Insensitive.yml
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://api.giphy.com/v1/gifs/random?api_key=
|
5
|
+
uri: http://api.giphy.com/v1/gifs/random?api_key=key&tag=cat
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -53,6 +53,6 @@ http_interactions:
|
|
53
53
|
string: |2-
|
54
54
|
|
55
55
|
{"data":{"type":"gif","id":"paYyHCsUUXQPK","url":"http:\/\/giphy.com\/gifs\/cat-robot-playing-paYyHCsUUXQPK","image_original_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/paYyHCsUUXQPK\/giphy.gif","image_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/paYyHCsUUXQPK\/giphy.gif","image_mp4_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/paYyHCsUUXQPK\/giphy.mp4","image_frames":"50","image_width":"500","image_height":"281","fixed_height_downsampled_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/paYyHCsUUXQPK\/200_d.gif","fixed_height_downsampled_width":"356","fixed_height_downsampled_height":"200","fixed_width_downsampled_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/paYyHCsUUXQPK\/200w_d.gif","fixed_width_downsampled_width":"200","fixed_width_downsampled_height":"112","fixed_height_small_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/paYyHCsUUXQPK\/100.gif","fixed_height_small_still_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/paYyHCsUUXQPK\/100_s.gif","fixed_height_small_width":"178","fixed_height_small_height":"100","fixed_width_small_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/paYyHCsUUXQPK\/100w.gif","fixed_width_small_still_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/paYyHCsUUXQPK\/100w_s.gif","fixed_width_small_width":"100","fixed_width_small_height":"56","rating":"g","username":"","caption":"video","tags":["cat","robot","playing","toy"]},"meta":{"status":200,"msg":"OK"}}
|
56
|
-
http_version:
|
56
|
+
http_version:
|
57
57
|
recorded_at: Fri, 20 Feb 2015 20:44:26 GMT
|
58
58
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://api.giphy.com/v1/gifs/random?api_key=
|
5
|
+
uri: http://api.giphy.com/v1/gifs/random?api_key=key
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -53,6 +53,6 @@ http_interactions:
|
|
53
53
|
string: |2-
|
54
54
|
|
55
55
|
{"data":{"type":"gif","id":"10eqhIldgc59za","url":"http:\/\/giphy.com\/gifs\/horror-clown-fatboy-10eqhIldgc59za","image_original_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/10eqhIldgc59za\/giphy.gif","image_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/10eqhIldgc59za\/giphy.gif","image_mp4_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/10eqhIldgc59za\/giphy.mp4","image_frames":"11","image_width":"482","image_height":"267","fixed_height_downsampled_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/10eqhIldgc59za\/200_d.gif","fixed_height_downsampled_width":"361","fixed_height_downsampled_height":"200","fixed_width_downsampled_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/10eqhIldgc59za\/200w_d.gif","fixed_width_downsampled_width":"200","fixed_width_downsampled_height":"111","fixed_height_small_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/10eqhIldgc59za\/100.gif","fixed_height_small_still_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/10eqhIldgc59za\/100_s.gif","fixed_height_small_width":"181","fixed_height_small_height":"100","fixed_width_small_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/10eqhIldgc59za\/100w.gif","fixed_width_small_still_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/10eqhIldgc59za\/100w_s.gif","fixed_width_small_width":"100","fixed_width_small_height":"55","rating":"pg","username":"","caption":"","tags":["horror","clown","fatboy"]},"meta":{"status":200,"msg":"OK"}}
|
56
|
-
http_version:
|
56
|
+
http_version:
|
57
57
|
recorded_at: Fri, 20 Feb 2015 20:42:10 GMT
|
58
58
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://api.giphy.com/v1/gifs/random?api_key=
|
5
|
+
uri: http://api.giphy.com/v1/gifs/random?api_key=key&tag=sloth
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -53,6 +53,6 @@ http_interactions:
|
|
53
53
|
string: |2-
|
54
54
|
|
55
55
|
{"data":{"type":"gif","id":"QoxeDUyerqIrC","url":"http:\/\/giphy.com\/gifs\/tired-morning-sloth-QoxeDUyerqIrC","image_original_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/QoxeDUyerqIrC\/giphy.gif","image_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/QoxeDUyerqIrC\/giphy.gif","image_mp4_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/QoxeDUyerqIrC\/giphy.mp4","image_frames":"25","image_width":"250","image_height":"125","fixed_height_downsampled_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/QoxeDUyerqIrC\/200_d.gif","fixed_height_downsampled_width":"400","fixed_height_downsampled_height":"200","fixed_width_downsampled_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/QoxeDUyerqIrC\/200w_d.gif","fixed_width_downsampled_width":"200","fixed_width_downsampled_height":"100","fixed_height_small_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/QoxeDUyerqIrC\/100.gif","fixed_height_small_still_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/QoxeDUyerqIrC\/100_s.gif","fixed_height_small_width":"200","fixed_height_small_height":"100","fixed_width_small_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/QoxeDUyerqIrC\/100w.gif","fixed_width_small_still_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/QoxeDUyerqIrC\/100w_s.gif","fixed_width_small_width":"100","fixed_width_small_height":"50","rating":"pg-13","username":"","caption":"","tags":["animals","tired","morning","sloth","monday"]},"meta":{"status":200,"msg":"OK"}}
|
56
|
-
http_version:
|
56
|
+
http_version:
|
57
57
|
recorded_at: Fri, 20 Feb 2015 20:44:27 GMT
|
58
58
|
recorded_with: VCR 2.9.3
|
@@ -2,7 +2,7 @@
|
|
2
2
|
http_interactions:
|
3
3
|
- request:
|
4
4
|
method: get
|
5
|
-
uri: http://api.giphy.com/v1/gifs/random?api_key=
|
5
|
+
uri: http://api.giphy.com/v1/gifs/random?api_key=key&tag=sloth
|
6
6
|
body:
|
7
7
|
encoding: US-ASCII
|
8
8
|
string: ''
|
@@ -53,6 +53,6 @@ http_interactions:
|
|
53
53
|
string: |2-
|
54
54
|
|
55
55
|
{"data":{"type":"gif","id":"upNoNLqei1FVS","url":"http:\/\/giphy.com\/gifs\/sloth-eating-upNoNLqei1FVS","image_original_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/upNoNLqei1FVS\/giphy.gif","image_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/upNoNLqei1FVS\/giphy.gif","image_mp4_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/upNoNLqei1FVS\/giphy.mp4","image_frames":"53","image_width":"245","image_height":"184","fixed_height_downsampled_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/upNoNLqei1FVS\/200_d.gif","fixed_height_downsampled_width":"266","fixed_height_downsampled_height":"200","fixed_width_downsampled_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/upNoNLqei1FVS\/200w_d.gif","fixed_width_downsampled_width":"200","fixed_width_downsampled_height":"150","fixed_height_small_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/upNoNLqei1FVS\/100.gif","fixed_height_small_still_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/upNoNLqei1FVS\/100_s.gif","fixed_height_small_width":"133","fixed_height_small_height":"100","fixed_width_small_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/upNoNLqei1FVS\/100w.gif","fixed_width_small_still_url":"http:\/\/s3.amazonaws.com\/giphymedia\/media\/upNoNLqei1FVS\/100w_s.gif","fixed_width_small_width":"100","fixed_width_small_height":"75","rating":"g","username":"","caption":"warholing beyonces me myself and i playing","tags":["animals","eating","sloth","lazy","relaxed"]},"meta":{"status":200,"msg":"OK"}}
|
56
|
-
http_version:
|
56
|
+
http_version:
|
57
57
|
recorded_at: Fri, 20 Feb 2015 20:44:27 GMT
|
58
58
|
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://iheartquotes.com/api/v1/random?format=json
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Connection:
|
22
|
+
- close
|
23
|
+
Etag:
|
24
|
+
- '"1246206a1dbc0940dace67e61cdbb2d8"'
|
25
|
+
X-Ua-Compatible:
|
26
|
+
- IE=Edge,chrome=1
|
27
|
+
Date:
|
28
|
+
- Sat, 21 Feb 2015 03:10:33 GMT
|
29
|
+
X-Runtime:
|
30
|
+
- '0.082495'
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
Server:
|
36
|
+
- thin 1.2.6 codename Crazy Delicious
|
37
|
+
Via:
|
38
|
+
- 1.1 vegur
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"json_class":"Fortune","tags":["vulgar","dictionary","1811_dictionary_of_the_vulgar_tongue","captain_grose"],"quote":"A random quote goes here"}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Sat, 21 Feb 2015 03:10:33 GMT
|
44
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://iheartquotes.com/api/v1/random?format=json&source=simpsons_homer
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Connection:
|
22
|
+
- close
|
23
|
+
Etag:
|
24
|
+
- '"50e4925f21434704b52f82b716001c78"'
|
25
|
+
X-Ua-Compatible:
|
26
|
+
- IE=Edge,chrome=1
|
27
|
+
Date:
|
28
|
+
- Sat, 21 Feb 2015 03:11:17 GMT
|
29
|
+
X-Runtime:
|
30
|
+
- '0.014774'
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
Server:
|
36
|
+
- thin 1.2.6 codename Crazy Delicious
|
37
|
+
Via:
|
38
|
+
- 1.1 vegur
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"json_class":"Fortune","tags":["simpsons_homer"],"quote":"Marge: I would love you if you weighed 1,000 pounds but ...","link":"http://iheartquotes.com/fortune/show/5682","source":"simpsons_homer"}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Sat, 21 Feb 2015 03:11:17 GMT
|
44
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,44 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://iheartquotes.com/api/v1/random?format=json&source=starwars
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Connection:
|
22
|
+
- close
|
23
|
+
Etag:
|
24
|
+
- '"e385abda7959a63f3705f95ab9caf46d"'
|
25
|
+
X-Ua-Compatible:
|
26
|
+
- IE=Edge,chrome=1
|
27
|
+
Date:
|
28
|
+
- Sat, 21 Feb 2015 03:12:35 GMT
|
29
|
+
X-Runtime:
|
30
|
+
- '0.010135'
|
31
|
+
Content-Type:
|
32
|
+
- application/json; charset=utf-8
|
33
|
+
Cache-Control:
|
34
|
+
- max-age=0, private, must-revalidate
|
35
|
+
Server:
|
36
|
+
- thin 1.2.6 codename Crazy Delicious
|
37
|
+
Via:
|
38
|
+
- 1.1 vegur
|
39
|
+
body:
|
40
|
+
encoding: UTF-8
|
41
|
+
string: '{"json_class":"Fortune","tags":["starwars"],"quote":"Emperor Palpatine Strike me down with all of your hatred and your journey towards the dark side will be complete!","link":"http://iheartquotes.com/fortune/show/1308","source":"starwars"}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Sat, 21 Feb 2015 03:12:35 GMT
|
44
|
+
recorded_with: VCR 2.9.3
|
@@ -0,0 +1,86 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://api.zippopotam.us/us/90210
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept-Encoding:
|
11
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
12
|
+
Accept:
|
13
|
+
- "*/*"
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Date:
|
22
|
+
- Sun, 22 Feb 2015 01:42:27 GMT
|
23
|
+
Server:
|
24
|
+
- Apache/2.4.7
|
25
|
+
Content-Length:
|
26
|
+
- '225'
|
27
|
+
X-Cache:
|
28
|
+
- hit
|
29
|
+
Charset:
|
30
|
+
- UTF-8
|
31
|
+
Vary:
|
32
|
+
- Accept-Encoding
|
33
|
+
Access-Control-Allow-Origin:
|
34
|
+
- "*"
|
35
|
+
Content-Type:
|
36
|
+
- application/json
|
37
|
+
body:
|
38
|
+
encoding: UTF-8
|
39
|
+
string: '{"post code": "90210", "country": "United States", "country abbreviation":
|
40
|
+
"US", "places": [{"place name": "Beverly Hills", "longitude": "-118.4065",
|
41
|
+
"state": "California", "state abbreviation": "CA", "latitude": "34.0901"}]}'
|
42
|
+
http_version:
|
43
|
+
recorded_at: Sun, 22 Feb 2015 01:42:27 GMT
|
44
|
+
- request:
|
45
|
+
method: get
|
46
|
+
uri: http://api.openweathermap.org/data/2.5/weather?q=Beverly%20Hills,%20CA
|
47
|
+
body:
|
48
|
+
encoding: US-ASCII
|
49
|
+
string: ''
|
50
|
+
headers:
|
51
|
+
Accept-Encoding:
|
52
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
53
|
+
Accept:
|
54
|
+
- "*/*"
|
55
|
+
User-Agent:
|
56
|
+
- Ruby
|
57
|
+
response:
|
58
|
+
status:
|
59
|
+
code: 200
|
60
|
+
message: OK
|
61
|
+
headers:
|
62
|
+
Server:
|
63
|
+
- nginx
|
64
|
+
Date:
|
65
|
+
- Sun, 22 Feb 2015 01:42:27 GMT
|
66
|
+
Content-Type:
|
67
|
+
- application/json; charset=utf-8
|
68
|
+
Transfer-Encoding:
|
69
|
+
- chunked
|
70
|
+
Connection:
|
71
|
+
- keep-alive
|
72
|
+
X-Source:
|
73
|
+
- back
|
74
|
+
Access-Control-Allow-Origin:
|
75
|
+
- "*"
|
76
|
+
Access-Control-Allow-Credentials:
|
77
|
+
- 'true'
|
78
|
+
Access-Control-Allow-Methods:
|
79
|
+
- GET, POST
|
80
|
+
body:
|
81
|
+
encoding: UTF-8
|
82
|
+
string: |
|
83
|
+
{"coord":{"lon":-118.4,"lat":34.07},"sys":{"message":0.0043,"country":"United States of America","sunrise":1424615395,"sunset":1424655844},"weather":[{"id":803,"main":"Clouds","description":"broken clouds","icon":"04n"}],"base":"cmc stations","main":{"temp":284.384,"temp_min":284.384,"temp_max":284.384,"pressure":954.59,"sea_level":1024.84,"grnd_level":954.59,"humidity":86},"wind":{"speed":1.11,"deg":193.001},"clouds":{"all":56},"dt":1424568754,"id":5328041,"name":"Beverly Hills","cod":200}
|
84
|
+
http_version:
|
85
|
+
recorded_at: Sun, 22 Feb 2015 01:42:27 GMT
|
86
|
+
recorded_with: VCR 2.9.3
|