tbg_social 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/CHANGELOG.md +6 -0
- data/Gemfile +4 -0
- data/LICENSE.txt +22 -0
- data/README.md +41 -0
- data/Rakefile +36 -0
- data/app/assets/images/social/.keep +0 -0
- data/app/assets/javascripts/social/application.js +13 -0
- data/app/assets/stylesheets/social/application.css +13 -0
- data/app/controllers/social/application_controller.rb +4 -0
- data/app/helpers/social/application_helper.rb +4 -0
- data/app/views/layouts/social/application.html.erb +14 -0
- data/bin/rails +12 -0
- data/config/routes.rb +2 -0
- data/fixtures/vcr_cassettes/facebook_engagement_bad_response.yml +48 -0
- data/fixtures/vcr_cassettes/facebook_engagement_count.yml +48 -0
- data/fixtures/vcr_cassettes/single_offer.yml +90 -0
- data/fixtures/vcr_cassettes/twitter_engagement_bad_response.yml +56 -0
- data/fixtures/vcr_cassettes/twitter_engagement_count.yml +56 -0
- data/lib/generators/social/install_generator.rb +18 -0
- data/lib/social.rb +11 -0
- data/lib/social/engageable.rb +5 -0
- data/lib/social/engagement.rb +38 -0
- data/lib/social/engine.rb +5 -0
- data/lib/social/facebook.rb +30 -0
- data/lib/social/google_plus.rb +34 -0
- data/lib/social/invalidation_policy.rb +7 -0
- data/lib/social/model.rb +26 -0
- data/lib/social/twitter.rb +30 -0
- data/lib/social/url.rb +10 -0
- data/lib/social/version.rb +3 -0
- data/lib/tasks/social_tasks.rake +4 -0
- data/social.gemspec +39 -0
- data/spec/dummy/README.rdoc +28 -0
- data/spec/dummy/Rakefile +6 -0
- data/spec/dummy/app/assets/images/.keep +0 -0
- data/spec/dummy/app/assets/javascripts/application.js +13 -0
- data/spec/dummy/app/assets/stylesheets/application.css +13 -0
- data/spec/dummy/app/controllers/application_controller.rb +5 -0
- data/spec/dummy/app/controllers/concerns/.keep +0 -0
- data/spec/dummy/app/helpers/application_helper.rb +2 -0
- data/spec/dummy/app/mailers/.keep +0 -0
- data/spec/dummy/app/models/.keep +0 -0
- data/spec/dummy/app/models/concerns/.keep +0 -0
- data/spec/dummy/app/models/offer.rb +2 -0
- data/spec/dummy/app/models/social_engagement.rb +3 -0
- data/spec/dummy/app/views/layouts/application.html.erb +14 -0
- data/spec/dummy/bin/bundle +3 -0
- data/spec/dummy/bin/rails +4 -0
- data/spec/dummy/bin/rake +4 -0
- data/spec/dummy/config.ru +4 -0
- data/spec/dummy/config/application.rb +23 -0
- data/spec/dummy/config/boot.rb +5 -0
- data/spec/dummy/config/database.yml +25 -0
- data/spec/dummy/config/environment.rb +5 -0
- data/spec/dummy/config/environments/development.rb +29 -0
- data/spec/dummy/config/environments/production.rb +80 -0
- data/spec/dummy/config/environments/test.rb +36 -0
- data/spec/dummy/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/dummy/config/initializers/filter_parameter_logging.rb +4 -0
- data/spec/dummy/config/initializers/inflections.rb +16 -0
- data/spec/dummy/config/initializers/mime_types.rb +5 -0
- data/spec/dummy/config/initializers/secret_token.rb +12 -0
- data/spec/dummy/config/initializers/session_store.rb +3 -0
- data/spec/dummy/config/initializers/wrap_parameters.rb +14 -0
- data/spec/dummy/config/locales/en.yml +23 -0
- data/spec/dummy/config/routes.rb +6 -0
- data/spec/dummy/db/development.sqlite3 +0 -0
- data/spec/dummy/db/migrate/20140602112503_create_social_engagements.rb +14 -0
- data/spec/dummy/db/migrate/20140602131702_create_offers.rb +6 -0
- data/spec/dummy/db/schema.rb +29 -0
- data/spec/dummy/db/test.sqlite3 +0 -0
- data/spec/dummy/lib/assets/.keep +0 -0
- data/spec/dummy/log/.keep +0 -0
- data/spec/dummy/public/404.html +58 -0
- data/spec/dummy/public/422.html +58 -0
- data/spec/dummy/public/500.html +57 -0
- data/spec/dummy/public/favicon.ico +0 -0
- data/spec/engageable_spec.rb +15 -0
- data/spec/engagement_spec.rb +70 -0
- data/spec/facebook_spec.rb +24 -0
- data/spec/invalidation_policy_spec.rb +11 -0
- data/spec/social_engagement_spec.rb +31 -0
- data/spec/spec_helper.rb +49 -0
- data/spec/twitter_spec.rb +24 -0
- data/spec/url_spec.rb +12 -0
- metadata +368 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 50480162ee6236be7b32708cf1ae25c7fdd16b30
|
4
|
+
data.tar.gz: 0c949c22046678a87791825e8aa69a06f06bf18b
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d92a827a25bc3e544b321d6f42abba8b45a2b2c55d03791eec4074af187b800da129ae669d18201a6dde3b9d6fd6355c074d23b39e916c553b8c895a0c40f218
|
7
|
+
data.tar.gz: eec8d6788c14f37b9689ad73c9849309a487d188558bde29a08edb1e9bfea59012e54232a342244cb0829e1677dfb56a9af7ed68bfe48534c935097e9d133a9c
|
data/.gitignore
ADDED
data/CHANGELOG.md
ADDED
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,22 @@
|
|
1
|
+
Copyright (c) 2014 zduci
|
2
|
+
|
3
|
+
MIT License
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
6
|
+
a copy of this software and associated documentation files (the
|
7
|
+
"Software"), to deal in the Software without restriction, including
|
8
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
9
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
10
|
+
permit persons to whom the Software is furnished to do so, subject to
|
11
|
+
the following conditions:
|
12
|
+
|
13
|
+
The above copyright notice and this permission notice shall be
|
14
|
+
included in all copies or substantial portions of the Software.
|
15
|
+
|
16
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
17
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
18
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
19
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
20
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
21
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
22
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,41 @@
|
|
1
|
+
# Social
|
2
|
+
|
3
|
+
TODO: Write a gem description
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
gem 'social'
|
10
|
+
|
11
|
+
And then execute:
|
12
|
+
|
13
|
+
$ bundle
|
14
|
+
|
15
|
+
Or install it yourself as:
|
16
|
+
|
17
|
+
$ gem install social
|
18
|
+
|
19
|
+
## Usage
|
20
|
+
|
21
|
+
$ bundle exec rails social:install
|
22
|
+
|
23
|
+
Then go to your generated model (SocialEngagement) and add this line:
|
24
|
+
|
25
|
+
$ include Social::Model
|
26
|
+
|
27
|
+
You can now `include Social::Engageable` in any model you want to track (Note: these models need to have routes for show).
|
28
|
+
|
29
|
+
If you want to use this in a rails engine you don't need to run the generator, just include Social::Engageable in the models you want to track.
|
30
|
+
|
31
|
+
## Missing host
|
32
|
+
|
33
|
+
In order to generate urls for models, the server needs to know the host. Rails will know the host when serving web requests. If you need to get the social engagement outside of a web request (e.g. cron job) you need to specify the server host in the rails config.
|
34
|
+
|
35
|
+
## Contributing
|
36
|
+
|
37
|
+
1. Fork it ( http://github.com/<my-github-username>/social/fork )
|
38
|
+
2. Create your feature branch (`git checkout -b my-new-feature`)
|
39
|
+
3. Commit your changes (`git commit -am 'Add some feature'`)
|
40
|
+
4. Push to the branch (`git push origin my-new-feature`)
|
41
|
+
5. Create new Pull Request
|
data/Rakefile
ADDED
@@ -0,0 +1,36 @@
|
|
1
|
+
begin
|
2
|
+
require 'bundler/setup'
|
3
|
+
rescue LoadError
|
4
|
+
puts 'You must `gem install bundler` and `bundle install` to run rake tasks'
|
5
|
+
end
|
6
|
+
|
7
|
+
require 'rdoc/task'
|
8
|
+
|
9
|
+
RDoc::Task.new(:rdoc) do |rdoc|
|
10
|
+
rdoc.rdoc_dir = 'rdoc'
|
11
|
+
rdoc.title = 'Social'
|
12
|
+
rdoc.options << '--line-numbers'
|
13
|
+
rdoc.rdoc_files.include('README.rdoc')
|
14
|
+
rdoc.rdoc_files.include('lib/**/*.rb')
|
15
|
+
end
|
16
|
+
|
17
|
+
APP_RAKEFILE = File.expand_path("../spec/dummy/Rakefile", __FILE__)
|
18
|
+
load 'rails/tasks/engine.rake'
|
19
|
+
|
20
|
+
|
21
|
+
|
22
|
+
Bundler::GemHelper.install_tasks
|
23
|
+
|
24
|
+
require 'rake/testtask'
|
25
|
+
|
26
|
+
Rake::TestTask.new(:spec) do |t|
|
27
|
+
t.libs << 'lib'
|
28
|
+
t.libs << 'spec'
|
29
|
+
t.pattern = 'spec/**/*_spec.rb'
|
30
|
+
t.verbose = false
|
31
|
+
end
|
32
|
+
|
33
|
+
|
34
|
+
task default: :spec
|
35
|
+
|
36
|
+
load 'lib/tasks/social_tasks.rake'
|
File without changes
|
@@ -0,0 +1,13 @@
|
|
1
|
+
// This is a manifest file that'll be compiled into application.js, which will include all the files
|
2
|
+
// listed below.
|
3
|
+
//
|
4
|
+
// Any JavaScript/Coffee file within this directory, lib/assets/javascripts, vendor/assets/javascripts,
|
5
|
+
// or vendor/assets/javascripts of plugins, if any, can be referenced here using a relative path.
|
6
|
+
//
|
7
|
+
// It's not advisable to add code directly here, but if you do, it'll appear at the bottom of the
|
8
|
+
// compiled file.
|
9
|
+
//
|
10
|
+
// Read Sprockets README (https://github.com/sstephenson/sprockets#sprockets-directives) for details
|
11
|
+
// about supported directives.
|
12
|
+
//
|
13
|
+
//= require_tree .
|
@@ -0,0 +1,13 @@
|
|
1
|
+
/*
|
2
|
+
* This is a manifest file that'll be compiled into application.css, which will include all the files
|
3
|
+
* listed below.
|
4
|
+
*
|
5
|
+
* Any CSS and SCSS file within this directory, lib/assets/stylesheets, vendor/assets/stylesheets,
|
6
|
+
* or vendor/assets/stylesheets of plugins, if any, can be referenced here using a relative path.
|
7
|
+
*
|
8
|
+
* You're free to add application-wide styles to this file and they'll appear at the top of the
|
9
|
+
* compiled file, but it's generally better to create a new file per style scope.
|
10
|
+
*
|
11
|
+
*= require_self
|
12
|
+
*= require_tree .
|
13
|
+
*/
|
@@ -0,0 +1,14 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html>
|
3
|
+
<head>
|
4
|
+
<title>Social</title>
|
5
|
+
<%= stylesheet_link_tag "social/application", media: "all" %>
|
6
|
+
<%= javascript_include_tag "social/application" %>
|
7
|
+
<%= csrf_meta_tags %>
|
8
|
+
</head>
|
9
|
+
<body>
|
10
|
+
|
11
|
+
<%= yield %>
|
12
|
+
|
13
|
+
</body>
|
14
|
+
</html>
|
data/bin/rails
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
# This command will automatically be run when you run "rails" with Rails 4 gems installed from the root of your application.
|
3
|
+
|
4
|
+
ENGINE_ROOT = File.expand_path('../..', __FILE__)
|
5
|
+
ENGINE_PATH = File.expand_path('../../lib/social/engine', __FILE__)
|
6
|
+
|
7
|
+
# Set up gems listed in the Gemfile.
|
8
|
+
ENV['BUNDLE_GEMFILE'] ||= File.expand_path('../../Gemfile', __FILE__)
|
9
|
+
require 'bundler/setup' if File.exist?(ENV['BUNDLE_GEMFILE'])
|
10
|
+
|
11
|
+
require 'rails/all'
|
12
|
+
require 'rails/engine/commands'
|
data/config/routes.rb
ADDED
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://graph.facebook.com/?id=http://www.studentbeans.com/student101/a/relationships/university-sex-league-6793.html
|
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
|
+
Etag:
|
22
|
+
- '"6573879b464357c0756fb299362741692bb780c7"'
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=UTF-8
|
25
|
+
Pragma:
|
26
|
+
- no-cache
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
X-Fb-Rev:
|
30
|
+
- '1269187'
|
31
|
+
Cache-Control:
|
32
|
+
- private, no-cache, no-store, must-revalidate
|
33
|
+
Expires:
|
34
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
35
|
+
X-Fb-Debug:
|
36
|
+
- QZGyXorENEOLf0UeRqa5W2V0QeAL4Nv1tt7LLVTefwI=
|
37
|
+
Date:
|
38
|
+
- Fri, 30 May 2014 09:06:06 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Length:
|
42
|
+
- '129'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Fri, 30 May 2014 09:06:06 GMT
|
48
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,48 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://graph.facebook.com/?id=http://www.studentbeans.com/student101/a/relationships/university-sex-league-6793.html
|
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
|
+
Etag:
|
22
|
+
- '"bc616e0c2361b6bd40a68d393309489e7a5e845d"'
|
23
|
+
Content-Type:
|
24
|
+
- application/json; charset=UTF-8
|
25
|
+
Pragma:
|
26
|
+
- no-cache
|
27
|
+
Access-Control-Allow-Origin:
|
28
|
+
- "*"
|
29
|
+
X-Fb-Rev:
|
30
|
+
- '1265312'
|
31
|
+
Cache-Control:
|
32
|
+
- private, no-cache, no-store, must-revalidate
|
33
|
+
Expires:
|
34
|
+
- Sat, 01 Jan 2000 00:00:00 GMT
|
35
|
+
X-Fb-Debug:
|
36
|
+
- 7/ohUjcNaCYQRqRktn4Rr0XDFrYyyHEqO95PwrBwCO4=
|
37
|
+
Date:
|
38
|
+
- Wed, 28 May 2014 15:35:02 GMT
|
39
|
+
Connection:
|
40
|
+
- keep-alive
|
41
|
+
Content-Length:
|
42
|
+
- '129'
|
43
|
+
body:
|
44
|
+
encoding: UTF-8
|
45
|
+
string: '{"id":"http:\/\/www.studentbeans.com\/student101\/a\/relationships\/university-sex-league-6793.html","shares":7656,"comments":19}'
|
46
|
+
http_version:
|
47
|
+
recorded_at: Wed, 28 May 2014 15:35:02 GMT
|
48
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,90 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://offer-service.dev/offers/api/v1/offers/1.json?channels%5B0%5D=student-beans&client_id=0&client_secret=secret
|
6
|
+
body:
|
7
|
+
encoding: US-ASCII
|
8
|
+
string: ''
|
9
|
+
headers:
|
10
|
+
Accept:
|
11
|
+
- application/json
|
12
|
+
Accept-Encoding:
|
13
|
+
- gzip;q=1.0,deflate;q=0.6,identity;q=0.3
|
14
|
+
User-Agent:
|
15
|
+
- Ruby
|
16
|
+
response:
|
17
|
+
status:
|
18
|
+
code: 200
|
19
|
+
message: OK
|
20
|
+
headers:
|
21
|
+
Server:
|
22
|
+
- nginx/1.2.7
|
23
|
+
Date:
|
24
|
+
- Thu, 29 May 2014 12:15:24 GMT
|
25
|
+
Content-Type:
|
26
|
+
- application/json
|
27
|
+
Content-Length:
|
28
|
+
- '1709'
|
29
|
+
Connection:
|
30
|
+
- keep-alive
|
31
|
+
Status:
|
32
|
+
- 200 OK
|
33
|
+
X-Robots-Tag:
|
34
|
+
- noindex
|
35
|
+
Access-Control-Allow-Origin:
|
36
|
+
- "*"
|
37
|
+
Access-Control-Request-Method:
|
38
|
+
- "*"
|
39
|
+
Etag:
|
40
|
+
- '"d5c731f14bc8508964e3a89c3116f756"'
|
41
|
+
Cache-Control:
|
42
|
+
- max-age=0, private, must-revalidate
|
43
|
+
X-Request-Id:
|
44
|
+
- c1540eee-2f09-43dd-a40c-5765bf27be15
|
45
|
+
X-Runtime:
|
46
|
+
- '0.053369'
|
47
|
+
body:
|
48
|
+
encoding: ASCII-8BIT
|
49
|
+
string: !binary |-
|
50
|
+
eyJtZXRhIjp7ImNvZGUiOjIwMH0sImRhdGEiOnsiaWQiOjEsInNsdWciOiJ3
|
51
|
+
aW4tYS10cmlwLXRvLXRoYWlsYW5kIiwidGl0bGUiOiJXaW4gYSB0cmlwIHRv
|
52
|
+
IFRoYWlsYW5kIiwiZGVzY3JpcHRpb24iOiJZb3VyIHRyaXAgaW5jbHVkZXM6
|
53
|
+
XG43IG5pZ2h0cyBpbiB0aGUgbHV4dXJpb3VzIFBhdG9uZyBNZXJsaW4gSG90
|
54
|
+
ZWxcblJldHVybiBmbGlnaHRzIGZyb20gTG9uZG9uIGluY2x1ZGluZyB0YXhl
|
55
|
+
cyBhbmQgZmVlc1xuwqMzMDAgc3BlbmRpbmcgbW9uZXlcbkVudGVyIHRvZGF5
|
56
|
+
IGZvciB5b3VyIGNoYW5jZSB0byB2aXNpdCBwYXJhZGlzZSB0aGlzIHllYXIh
|
57
|
+
XG5cbkFtYXppbmcuIiwidGFjIjoiTm9uZSIsInN0YXR1cyI6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
+
recorded_at: Thu, 29 May 2014 12:15:24 GMT
|
90
|
+
recorded_with: VCR 2.9.0
|
@@ -0,0 +1,56 @@
|
|
1
|
+
---
|
2
|
+
http_interactions:
|
3
|
+
- request:
|
4
|
+
method: get
|
5
|
+
uri: http://urls.api.twitter.com/1/urls/count.json?url=http://www.studentbeans.com/student101/a/relationships/university-sex-league-6793.html
|
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
|
+
Cache-Control:
|
22
|
+
- must-revalidate, max-age=900
|
23
|
+
Content-Type:
|
24
|
+
- application/json;charset=utf-8
|
25
|
+
Expires:
|
26
|
+
- Fri, 30 May 2014 10:33:47 GMT
|
27
|
+
Last-Modified:
|
28
|
+
- Fri, 30 May 2014 10:18:47 GMT
|
29
|
+
Server:
|
30
|
+
- tfe
|
31
|
+
Content-Length:
|
32
|
+
- '126'
|
33
|
+
Accept-Ranges:
|
34
|
+
- bytes
|
35
|
+
Date:
|
36
|
+
- Fri, 30 May 2014 10:18:47 GMT
|
37
|
+
Via:
|
38
|
+
- 1.1 varnish
|
39
|
+
Age:
|
40
|
+
- '0'
|
41
|
+
Connection:
|
42
|
+
- keep-alive
|
43
|
+
X-Served-By:
|
44
|
+
- cache-tw-lon2-cr1-4-TWLON2
|
45
|
+
X-Cache:
|
46
|
+
- MISS
|
47
|
+
X-Cache-Hits:
|
48
|
+
- '0'
|
49
|
+
Vary:
|
50
|
+
- Accept-Encoding
|
51
|
+
body:
|
52
|
+
encoding: UTF-8
|
53
|
+
string: '{}'
|
54
|
+
http_version:
|
55
|
+
recorded_at: Fri, 30 May 2014 10:18:47 GMT
|
56
|
+
recorded_with: VCR 2.9.0
|