frenetic 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
@@ -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'
@@ -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 || :patron
44
+ builder.adapter config.adapter || :net_http
46
45
  end
47
46
  end
48
47
 
@@ -1,3 +1,3 @@
1
1
  class Frenetic
2
- VERSION = '0.0.10'
2
+ VERSION = '0.0.11'
3
3
  end
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://example.org:5447/api
5
+ uri: http://1234567890:@example.org:5447/api
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -2,7 +2,7 @@
2
2
  http_interactions:
3
3
  - request:
4
4
  method: get
5
- uri: http://example.org:5447/api
5
+ uri: http://1234567890:@example.org:5447/api
6
6
  body:
7
7
  encoding: US-ASCII
8
8
  string: ''
@@ -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::Patron
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: :net_http
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::NetHttp
85
+ subject.should include Faraday::Adapter::Patron
86
86
  end
87
87
  end
88
88
  end
@@ -3,6 +3,7 @@ ENV['RAILS_ENV'] ||= 'test'
3
3
  require 'rspec'
4
4
  require 'awesome_print'
5
5
  require 'vcr'
6
+ require 'patron'
6
7
  require 'frenetic'
7
8
 
8
9
  RSpec.configure do |config|
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.10
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: :runtime
102
+ type: :development
103
103
  prerelease: false
104
104
  version_requirements: !ruby/object:Gem::Requirement
105
105
  none: false