feed_burner 0.0.2 → 0.0.3

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: 2a9a43d1e37f01b9a298909a4afe4a9739ef7b9c
4
- data.tar.gz: ff2cdabaae991195865bb6e2f06395986aeca6d2
3
+ metadata.gz: b2bf08dfab038d6e1b5ecffc1296f0451b63f7f2
4
+ data.tar.gz: 036647aca1ae19cec594f5d6e86f7685d6d7c5f5
5
5
  SHA512:
6
- metadata.gz: af43bf60e8c6105b78ee717c9336fea099cad62c7619abedf048da47e34237a59f4913013060da5a64f6fc8eebdf8523976eb2cded6c2b0fa77e5e13e22dd78e
7
- data.tar.gz: 15e784f546ee9f1867d89ed2468e9cb05f53cbbfa7b2f7dd5241437071d601885d1abe0b5aaf221afd4b736db6ad7837792d03e138a08d9ddb2678bd8163ff0a
6
+ metadata.gz: 0930de4299af9d15ea1376d57d693b5c2b1afa9696663c35526a0281cc335c2efc87b87241042f15c7fac1f509a3118277f2401b479b08392aaed9c7e04f3e3d
7
+ data.tar.gz: 1c5dd9906c1900b81ea128e3b3367e3c8b1f3df72bcfa97d84d100b6a92df4b32ef1563ca13addef8630368fed822f6c9f6602fe81152d5a6a6ca6aab039acf7
@@ -9,10 +9,12 @@ module FeedBurner
9
9
  class << self
10
10
  include Configurable
11
11
 
12
- def feed(params)
12
+ def feed(params, timeout = 10)
13
13
  validate_params!(params)
14
- response = ::Faraday.get(request_uri(params))
15
- response.body
14
+ response = Timeout::timeout(timeout) do
15
+ ::Faraday.get(request_uri(params))
16
+ end
17
+ JSON.parse(response.body)
16
18
  end
17
19
 
18
20
  private
@@ -1,3 +1,3 @@
1
1
  module FeedBurner
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
@@ -67,8 +67,6 @@ describe FeedBurner do
67
67
 
68
68
  context 'to a public trip' do
69
69
  it 'returns the feed' do
70
- {:username => 'ebdrummond', :trip_id => '1', :text_only => true}
71
- end
72
70
  end
73
71
 
74
72
  context 'to a private trip I have access to' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: feed_burner
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Raphael Weiner, Erin Drummond, Kyle Suss, Phil Battos