frenetic 0.0.10 → 0.0.11
Sign up to get free protection for your applications and to get access to all the features.
- data/frenetic.gemspec +1 -1
- data/lib/frenetic.rb +1 -2
- data/lib/frenetic/version.rb +1 -1
- data/spec/fixtures/vcr_cassettes/description_error_unauthorized.yml +1 -1
- data/spec/fixtures/vcr_cassettes/description_success.yml +1 -1
- data/spec/lib/frenetic_spec.rb +3 -3
- data/spec/spec_helper.rb +1 -0
- metadata +2 -2
data/frenetic.gemspec
CHANGED
@@ -20,8 +20,8 @@ Gem::Specification.new do |gem|
|
|
20
20
|
gem.add_dependency 'activesupport', '>= 2'
|
21
21
|
gem.add_dependency 'rack-cache', '~> 1.1'
|
22
22
|
gem.add_dependency 'addressable', '~> 2.2'
|
23
|
-
gem.add_dependency 'patron', '~> 0.4.18'
|
24
23
|
|
24
|
+
gem.add_development_dependency 'patron', '~> 0.4.18'
|
25
25
|
gem.add_development_dependency 'rspec', '~> 2.13.0'
|
26
26
|
gem.add_development_dependency 'webmock', '~> 1.11.0'
|
27
27
|
gem.add_development_dependency 'vcr', '~> 2.4.0'
|
data/lib/frenetic.rb
CHANGED
@@ -1,4 +1,3 @@
|
|
1
|
-
require 'patron'
|
2
1
|
require 'addressable/uri'
|
3
2
|
require 'faraday'
|
4
3
|
require 'faraday_middleware'
|
@@ -42,7 +41,7 @@ class Frenetic
|
|
42
41
|
builder.use FaradayMiddleware::RackCompatible, Rack::Cache::Context, config.cache
|
43
42
|
end
|
44
43
|
|
45
|
-
builder.adapter config.adapter || :
|
44
|
+
builder.adapter config.adapter || :net_http
|
46
45
|
end
|
47
46
|
end
|
48
47
|
|
data/lib/frenetic/version.rb
CHANGED
data/spec/lib/frenetic_spec.rb
CHANGED
@@ -72,17 +72,17 @@ describe Frenetic do
|
|
72
72
|
|
73
73
|
context 'by default' do
|
74
74
|
it 'should be :patron' do
|
75
|
-
subject.should include Faraday::Adapter::
|
75
|
+
subject.should include Faraday::Adapter::NetHttp
|
76
76
|
end
|
77
77
|
end
|
78
78
|
|
79
79
|
context 'when explicitly set' do
|
80
80
|
before do
|
81
|
-
config.merge! adapter: :
|
81
|
+
config.merge! adapter: :patron
|
82
82
|
end
|
83
83
|
|
84
84
|
it 'should use the specified adapter' do
|
85
|
-
subject.should include Faraday::Adapter::
|
85
|
+
subject.should include Faraday::Adapter::Patron
|
86
86
|
end
|
87
87
|
end
|
88
88
|
end
|
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: frenetic
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.11
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -99,7 +99,7 @@ dependencies:
|
|
99
99
|
- - ~>
|
100
100
|
- !ruby/object:Gem::Version
|
101
101
|
version: 0.4.18
|
102
|
-
type: :
|
102
|
+
type: :development
|
103
103
|
prerelease: false
|
104
104
|
version_requirements: !ruby/object:Gem::Requirement
|
105
105
|
none: false
|