reviewed 0.1.24 → 0.1.25

Sign up to get free protection for your applications and to get access to all the features.
@@ -15,6 +15,26 @@ module Reviewed
15
15
  self
16
16
  end
17
17
 
18
+ # Perform an HTTP GET request
19
+ def get(path, params={})
20
+ perform(:get, path, params)
21
+ end
22
+
23
+ # Perform an HTTP PUT request
24
+ def put(path, params={})
25
+ perform(:put, path, params)
26
+ end
27
+
28
+ # Perform an HTTP DELETE request
29
+ def post(path, params={})
30
+ perform(:post, path, params)
31
+ end
32
+
33
+ # Perform an HTTP DELETE request
34
+ def delete(path, params={})
35
+ perform(:delete, path, params)
36
+ end
37
+
18
38
  def resource(name)
19
39
  klass_string = "Reviewed::#{name.to_s.singularize.classify}"
20
40
  klass_string.constantize rescue name
@@ -32,5 +52,14 @@ module Reviewed
32
52
  faraday.adapter Faraday.default_adapter
33
53
  end
34
54
  end
55
+
56
+ private
57
+
58
+ def perform(method, path, params={})
59
+ self.connection.send(method.to_sym, path, params) do |request|
60
+ request.params.merge!(self.request_params)
61
+ request.headers['X-Reviewed-Authorization'] ||= self.api_key
62
+ end
63
+ end
35
64
  end
36
65
  end
@@ -14,26 +14,6 @@ module Reviewed
14
14
  @client = opts[:client] || Reviewed::Client.new
15
15
  end
16
16
 
17
- # Perform an HTTP GET request
18
- def get(path, params={})
19
- perform(:get, path, params)
20
- end
21
-
22
- # Perform an HTTP PUT request
23
- def put(path, params={})
24
- perform(:put, path, params)
25
- end
26
-
27
- # Perform an HTTP DELETE request
28
- def post(path, params={})
29
- perform(:post, path, params)
30
- end
31
-
32
- # Perform an HTTP DELETE request
33
- def delete(path, params={})
34
- perform(:delete, path, params)
35
- end
36
-
37
17
  # Get request on resource#show
38
18
  def find(id, params={})
39
19
  object_from_response(:get, "#{path}/#{id}", params)
@@ -50,22 +30,13 @@ module Reviewed
50
30
  end
51
31
 
52
32
  def object_from_response(method, url, params={})
53
- response = self.send(method, url, params)
33
+ response = client.send(method, url, params)
54
34
  resource.new(response.body)
55
35
  end
56
36
 
57
37
  def collection_from_response(method, url, params={})
58
- response = self.send(method, url, params)
38
+ response = client.send(method, url, params)
59
39
  Reviewed::Collection.new(client, resource, response, params)
60
40
  end
61
-
62
- private
63
-
64
- def perform(method, path, params={})
65
- client.connection.send(method.to_sym, path, params) do |request|
66
- request.params.merge!(client.request_params)
67
- request.headers['X-Reviewed-Authorization'] ||= client.api_key
68
- end
69
- end
70
41
  end
71
42
  end
@@ -1,4 +1,4 @@
1
1
  module Reviewed
2
- VERSION = "0.1.24"
2
+ VERSION = "0.1.25"
3
3
  API_VERSION = 'v1'
4
4
  end
data/spec/client_spec.rb CHANGED
@@ -65,6 +65,39 @@ describe Reviewed::Client do
65
65
  end
66
66
  end
67
67
 
68
+ describe '#get' do
69
+
70
+ it 'delegates to perform' do
71
+ client.should_receive(:perform).with(:get, "path", kind_of(Hash))
72
+ client.get("path", {})
73
+ end
74
+ end
75
+
76
+ describe '#put' do
77
+
78
+ it 'delegates to client' do
79
+ client.should_receive(:perform).with(:put, "path", kind_of(Hash))
80
+ client.put("path", {})
81
+ end
82
+ end
83
+
84
+ describe '#post' do
85
+
86
+ it 'delegates to client' do
87
+ client.should_receive(:perform).with(:post, "path", kind_of(Hash))
88
+ client.post("path", {})
89
+ end
90
+ end
91
+
92
+ describe '#delete' do
93
+
94
+ it 'delegates to request' do
95
+ client.should_receive(:perform).with(:delete, "path", kind_of(Hash))
96
+ client.delete("path", {})
97
+ end
98
+ end
99
+
100
+
68
101
  describe '#connnection' do
69
102
 
70
103
  let(:conn) { client.send(:connection) }
@@ -93,4 +126,29 @@ describe Reviewed::Client do
93
126
  conn.url_prefix.to_s.should eql('http://localhost:3000/api/v1')
94
127
  end
95
128
  end
129
+
130
+ describe '#perform' do
131
+
132
+ describe 'request_params' do
133
+
134
+ context 'set' do
135
+ use_vcr_cassette 'client/perform/params'
136
+
137
+ it 'merges quest params' do
138
+ client.request_params = { per_page: 1 }
139
+ collection = client.articles.where({})
140
+ collection.count.should eql(1)
141
+ end
142
+ end
143
+
144
+ context 'not set' do
145
+ use_vcr_cassette 'client/perform/no_params'
146
+
147
+ it 'has nil query params' do
148
+ collection = client.articles.where({})
149
+ collection.count.should eql(20)
150
+ end
151
+ end
152
+ end
153
+ end
96
154
  end
@@ -0,0 +1,290 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v1/articles
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Reviewed-Authorization:
11
+ - '1234567890'
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - ! '*/*'
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: !binary |-
22
+ T0s=
23
+ headers:
24
+ !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
25
+ - !binary |-
26
+ Kg==
27
+ !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctTWV0aG9kcw==":
28
+ - !binary |-
29
+ T1BUSU9OUywgR0VULCBQT1NULCBQVVQsIERFTEVURQ==
30
+ !binary "QWNjZXNzLUNvbnRyb2wtTWF4LUFnZQ==":
31
+ - !binary |-
32
+ MTAwMA==
33
+ !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctQ3JlZGVudGlhbHM=":
34
+ - !binary |-
35
+ dHJ1ZQ==
36
+ !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctSGVhZGVycw==":
37
+ - !binary |-
38
+ eC1wYWdpbmF0aW9uLCB4LXJlcXVlc3RlZC13aXRoLCB4LXJlcXVlc3RlZC1i
39
+ eSwgeC1yZXZpZXdlZC1hdXRob3JpemF0aW9uLCBDb250ZW50LVR5cGU=
40
+ !binary "Q2FjaGUtQ29udHJvbA==":
41
+ - !binary |-
42
+ bm8tY2FjaGUsIG5vLXN0b3Jl
43
+ !binary "WC1SYXRlLUxpbWl0":
44
+ - !binary |-
45
+ OTk5OTk=
46
+ !binary "Q29udGVudC1UeXBl":
47
+ - !binary |-
48
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
49
+ !binary "VmFyeQ==":
50
+ - !binary |-
51
+ QWNjZXB0LUVuY29kaW5n
52
+ !binary "Q29udGVudC1FbmNvZGluZw==":
53
+ - !binary |-
54
+ Z3ppcA==
55
+ !binary "WC1VYS1Db21wYXRpYmxl":
56
+ - !binary |-
57
+ SUU9RWRnZQ==
58
+ !binary "RXRhZw==":
59
+ - !binary |-
60
+ ImRhYWM3MDc5MDhlY2E4M2RjN2YzMTY4MmZkN2FkYWUzIg==
61
+ !binary "WC1SZXF1ZXN0LUlk":
62
+ - !binary |-
63
+ N2Q2ODc3OTI3NjAyYmU0MWY5YzU2MDM3NDdjODY4YmQ=
64
+ !binary "WC1SdW50aW1l":
65
+ - !binary |-
66
+ Mi44NDQxMzM=
67
+ !binary "Q29ubmVjdGlvbg==":
68
+ - !binary |-
69
+ Y2xvc2U=
70
+ !binary "U2VydmVy":
71
+ - !binary |-
72
+ dGhpbiAxLjUuMCBjb2RlbmFtZSBLbmlmZQ==
73
+ body:
74
+ encoding: ASCII-8BIT
75
+ string: !binary |-
76
+ H4sIAEMYvVAAA+yd6ZPbRnbA/xXWfEhtKibc98EvKV32pmJnHWmy8mbLpcIp
77
+ cc0ZTkiORlqX//d0AwSJJhqN7uYhaSyva8tDAnivT/b74R2/Xd2lb+e36Wa+
78
+ vL2a/Xa1WW7SxdWMM86+af54oy4o11czLMg3V9V8td7Un1zNNqv78purRbr7
79
+ oEoXa/XJ3ap8P1/er7ef3t4vFt9c3ZYf2svQN1fL+82bZfUmW97fFuvdjcuq
80
+ Wpebqxn45iq/X63K2/YOqB5artrb1dfqq9W8XL9Z3u4+/P2bqyLdpFezv/92
81
+ NS+uZlcUyIIwmDFQlLzIJM9BRsqyvFJPX5XppizepErYFQIQTSGcAnGNwAzA
82
+ GUD/q665vyv61yB4DcmMsBkh+prb9EbJvvox/bhJ305+fHEtOK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WKgG164MkCvz0M+VAY4MorstJ3RfIHWuG3cIyh5XEO5wX5CGj0JBy537
281
+ AjMzXJbVLv+FbZV4ui/wKQb1++5PU5KxFH9494VcVIb7QkmGffpqlkDBDA2v
282
+ joNrDlbHtLM6Lum4gCjOM4R4WaIMw1w1lwodv12AUjBOMtV2ikuyc1wY1zeG
283
+ Pfhr0bIHDz0iCIS/Hi2B8NAjgkP469FyCA89ImhEyOxoaISHHhFMwl+Plkl4
284
+ 6BFBJvz1aMmEpx6BfCJMD+w3TyMoRZgemlKM6xHDKrz1GBN/EWJxMm0P3A6I
285
+ fuX62bkdcJ0vMTQKJTjbZXCFxZ5SDrcDElpbAh/jdQAColCIZxQKiXY6UPbw
286
+ cG0JUn8ZXmKR2LobD+e7xIf2vL0L65477CvY8znAj8nn4Jff/18AAAAA//8D
287
+ AKcPfBh4TgEA
288
+ http_version:
289
+ recorded_at: Mon, 03 Dec 2012 21:23:15 GMT
290
+ recorded_with: VCR 2.3.0
@@ -0,0 +1,112 @@
1
+ ---
2
+ http_interactions:
3
+ - request:
4
+ method: get
5
+ uri: http://localhost:3000/api/v1/articles?per_page=1
6
+ body:
7
+ encoding: US-ASCII
8
+ string: ''
9
+ headers:
10
+ X-Reviewed-Authorization:
11
+ - '1234567890'
12
+ Accept-Encoding:
13
+ - gzip;q=1.0,deflate;q=0.6,identity;q=0.3
14
+ Accept:
15
+ - ! '*/*'
16
+ User-Agent:
17
+ - Ruby
18
+ response:
19
+ status:
20
+ code: 200
21
+ message: !binary |-
22
+ T0s=
23
+ headers:
24
+ !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctT3JpZ2lu":
25
+ - !binary |-
26
+ Kg==
27
+ !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctTWV0aG9kcw==":
28
+ - !binary |-
29
+ T1BUSU9OUywgR0VULCBQT1NULCBQVVQsIERFTEVURQ==
30
+ !binary "QWNjZXNzLUNvbnRyb2wtTWF4LUFnZQ==":
31
+ - !binary |-
32
+ MTAwMA==
33
+ !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctQ3JlZGVudGlhbHM=":
34
+ - !binary |-
35
+ dHJ1ZQ==
36
+ !binary "QWNjZXNzLUNvbnRyb2wtQWxsb3ctSGVhZGVycw==":
37
+ - !binary |-
38
+ eC1wYWdpbmF0aW9uLCB4LXJlcXVlc3RlZC13aXRoLCB4LXJlcXVlc3RlZC1i
39
+ eSwgeC1yZXZpZXdlZC1hdXRob3JpemF0aW9uLCBDb250ZW50LVR5cGU=
40
+ !binary "Q2FjaGUtQ29udHJvbA==":
41
+ - !binary |-
42
+ bm8tY2FjaGUsIG5vLXN0b3Jl
43
+ !binary "WC1SYXRlLUxpbWl0":
44
+ - !binary |-
45
+ MTAwMDAw
46
+ !binary "Q29udGVudC1UeXBl":
47
+ - !binary |-
48
+ YXBwbGljYXRpb24vanNvbjsgY2hhcnNldD11dGYtOA==
49
+ !binary "VmFyeQ==":
50
+ - !binary |-
51
+ QWNjZXB0LUVuY29kaW5n
52
+ !binary "Q29udGVudC1FbmNvZGluZw==":
53
+ - !binary |-
54
+ Z3ppcA==
55
+ !binary "WC1VYS1Db21wYXRpYmxl":
56
+ - !binary |-
57
+ SUU9RWRnZQ==
58
+ !binary "RXRhZw==":
59
+ - !binary |-
60
+ ImUxYzBlOTkyYmFkZmE0NzU0OGE4MjM4OTlhNTlhOTI0Ig==
61
+ !binary "WC1SZXF1ZXN0LUlk":
62
+ - !binary |-
63
+ N2NlY2VhMDEyNDA3ZTI3YzYzNzRhMzQ1Y2E2YzY5OTU=
64
+ !binary "WC1SdW50aW1l":
65
+ - !binary |-
66
+ MC4zNzc3Nzc=
67
+ !binary "Q29ubmVjdGlvbg==":
68
+ - !binary |-
69
+ Y2xvc2U=
70
+ !binary "U2VydmVy":
71
+ - !binary |-
72
+ dGhpbiAxLjUuMCBjb2RlbmFtZSBLbmlmZQ==
73
+ body:
74
+ encoding: ASCII-8BIT
75
+ string: !binary |-
76
+ H4sIABUYvVAAA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
+ eZybHej151r652q1ebeNaPOd/+7dLL/8FgAAAP//AwBV3U5yJBYAAA==
110
+ http_version:
111
+ recorded_at: Mon, 03 Dec 2012 21:22:29 GMT
112
+ recorded_with: VCR 2.3.0
data/spec/request_spec.rb CHANGED
@@ -37,38 +37,6 @@ describe Reviewed::Request do
37
37
  end
38
38
  end
39
39
 
40
- describe '#get' do
41
-
42
- it 'delegates to perform' do
43
- request.should_receive(:perform).with(:get, "path", kind_of(Hash))
44
- request.get("path", {})
45
- end
46
- end
47
-
48
- describe '#put' do
49
-
50
- it 'delegates to request' do
51
- request.should_receive(:perform).with(:put, "path", kind_of(Hash))
52
- request.put("path", {})
53
- end
54
- end
55
-
56
- describe '#post' do
57
-
58
- it 'delegates to request' do
59
- request.should_receive(:perform).with(:post, "path", kind_of(Hash))
60
- request.post("path", {})
61
- end
62
- end
63
-
64
- describe '#delete' do
65
-
66
- it 'delegates to request' do
67
- request.should_receive(:perform).with(:delete, "path", kind_of(Hash))
68
- request.delete("path", {})
69
- end
70
- end
71
-
72
40
  describe '#find' do
73
41
 
74
42
  it 'delegates to object_from_response' do
@@ -144,29 +112,4 @@ describe Reviewed::Request do
144
112
  end
145
113
  end
146
114
  end
147
-
148
- describe '#perform' do
149
-
150
- describe 'request_params' do
151
-
152
- context 'set' do
153
- use_vcr_cassette 'request/perform/params'
154
-
155
- it 'merges quest params' do
156
- request.client.request_params = { per_page: 1 }
157
- collection = request.collection_from_response(:get, "articles")
158
- collection.count.should eql(1)
159
- end
160
- end
161
-
162
- context 'not set' do
163
- use_vcr_cassette 'request/perform/no_params'
164
-
165
- it 'has nil query params' do
166
- collection = request.collection_from_response(:get, "articles")
167
- collection.count.should eql(20)
168
- end
169
- end
170
- end
171
- end
172
115
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: reviewed
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.24
4
+ version: 0.1.25
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -230,6 +230,8 @@ files:
230
230
  - spec/fixtures/vcr/article/find_page.yml
231
231
  - spec/fixtures/vcr/article/grill.yml
232
232
  - spec/fixtures/vcr/article/products.yml
233
+ - spec/fixtures/vcr/client/perform/no_params.yml
234
+ - spec/fixtures/vcr/client/perform/params.yml
233
235
  - spec/fixtures/vcr/collection/products.yml
234
236
  - spec/fixtures/vcr/product/attachments.yml
235
237
  - spec/fixtures/vcr/product/manufacturer_specs.yml
@@ -280,6 +282,8 @@ test_files:
280
282
  - spec/fixtures/vcr/article/find_page.yml
281
283
  - spec/fixtures/vcr/article/grill.yml
282
284
  - spec/fixtures/vcr/article/products.yml
285
+ - spec/fixtures/vcr/client/perform/no_params.yml
286
+ - spec/fixtures/vcr/client/perform/params.yml
283
287
  - spec/fixtures/vcr/collection/products.yml
284
288
  - spec/fixtures/vcr/product/attachments.yml
285
289
  - spec/fixtures/vcr/product/manufacturer_specs.yml