conduit 0.5.0 → 0.5.1

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: 3152108f595eb0bd81712bbdc9dae55fe09d3771
4
- data.tar.gz: 75290c49ca35147c1f4a9dc35d753f51f60e2655
3
+ metadata.gz: 301fe394c81224d894f2fed09eee96cf39b4e036
4
+ data.tar.gz: 2b3b94a2f01a6910943e7f165354d08961b6e25f
5
5
  SHA512:
6
- metadata.gz: 65e9a1464fe147247106035fad8ac057551ddbb90f8e34af1a3b7923175fd8e468b75983769a7d879e9050bee744d42be2aec6890a019f8413de46c96edd40ca
7
- data.tar.gz: 5999fe406736a0d60b2f494677bd423115c15e6b91d9534185a7163b630d4290e0bb60b2c68210a3aee9afc3fec79b06964fb78dc0b3d3efe3f71ef3281b574b
6
+ metadata.gz: fcdfd5a3a29f3bf2af433cdd1ab97a48c827ad814fb9e3ca9c8b704fbb8928cf55e1f121935cb8887c92361ec458f6883d5372e5bf9f5f89ef1d094cf368e24e
7
+ data.tar.gz: d18046fdb9b77f32036eb04500e41952e01933650257a29d809f4f33babf3a3846c5b8abd189de03331ecb6185b3ffcc9bd2649bb7e3e74bf0ffac81acfa2ace
@@ -10,7 +10,7 @@ module Conduit
10
10
  #
11
11
  autoload :Storage, 'conduit/storage'
12
12
  autoload :Util, 'conduit/util'
13
- autoload :Response, 'conduit/response'
13
+ autoload :ApiResponse, 'conduit/api_response'
14
14
  autoload :TimeOut, 'conduit/time_out'
15
15
 
16
16
  module Core
@@ -1,5 +1,5 @@
1
1
  module Conduit
2
- class Response
2
+ class ApiResponse
3
3
  attr_reader :body, :parser, :raw_response
4
4
 
5
5
  def initialize(options = {})
@@ -128,7 +128,7 @@ module Conduit
128
128
  response = request(body: view, method: :post)
129
129
  parser = parser_class.new(response.body)
130
130
 
131
- Conduit::Response.new(raw_response: response,
131
+ Conduit::ApiResponse.new(raw_response: response,
132
132
  parser: parser)
133
133
  end
134
134
 
@@ -1,3 +1,3 @@
1
1
  module Conduit
2
- VERSION = '0.5.0'
2
+ VERSION = '0.5.1'
3
3
  end
@@ -44,7 +44,7 @@ shared_examples_for Conduit::Core::Action do
44
44
  before { Excon.stub({}, body: response, status: 200) }
45
45
 
46
46
  it 'returns a response wrapper' do
47
- subject.perform.should be_a_kind_of(Conduit::Response)
47
+ subject.perform.should be_a_kind_of(Conduit::ApiResponse)
48
48
  end
49
49
 
50
50
  it 'should return the raw_content' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: conduit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.5.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Kelley
@@ -129,6 +129,7 @@ executables: []
129
129
  extensions: []
130
130
  extra_rdoc_files: []
131
131
  files:
132
+ - lib/conduit/api_response.rb
132
133
  - lib/conduit/configuration.rb
133
134
  - lib/conduit/core/action.rb
134
135
  - lib/conduit/core/connection.rb
@@ -136,7 +137,6 @@ files:
136
137
  - lib/conduit/core/parser.rb
137
138
  - lib/conduit/core/render.rb
138
139
  - lib/conduit/drivers/keep
139
- - lib/conduit/response.rb
140
140
  - lib/conduit/storage/aws.rb
141
141
  - lib/conduit/storage/file.rb
142
142
  - lib/conduit/storage.rb