desk_api 0.6.0 → 0.6.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (57) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.txt +27 -0
  3. data/README.md +97 -61
  4. data/lib/desk.rb +29 -1
  5. data/lib/desk_api.rb +57 -5
  6. data/lib/desk_api/client.rb +104 -47
  7. data/lib/desk_api/configuration.rb +201 -108
  8. data/lib/desk_api/default.rb +109 -52
  9. data/lib/desk_api/error.rb +90 -40
  10. data/lib/desk_api/error/bad_gateway.rb +29 -1
  11. data/lib/desk_api/error/bad_request.rb +29 -1
  12. data/lib/desk_api/error/client_error.rb +31 -2
  13. data/lib/desk_api/error/configuration_error.rb +29 -1
  14. data/lib/desk_api/error/conflict.rb +29 -1
  15. data/lib/desk_api/error/follow_redirect_error.rb +42 -0
  16. data/lib/desk_api/error/forbidden.rb +29 -1
  17. data/lib/desk_api/error/gateway_timeout.rb +29 -1
  18. data/lib/desk_api/error/internal_server_error.rb +29 -1
  19. data/lib/desk_api/error/method_not_allowed.rb +29 -1
  20. data/lib/desk_api/error/not_acceptable.rb +29 -1
  21. data/lib/desk_api/error/not_found.rb +29 -1
  22. data/lib/desk_api/error/parser_error.rb +29 -1
  23. data/lib/desk_api/error/server_error.rb +29 -1
  24. data/lib/desk_api/error/service_unavailable.rb +29 -1
  25. data/lib/desk_api/error/too_many_requests.rb +29 -1
  26. data/lib/desk_api/error/unauthorized.rb +29 -1
  27. data/lib/desk_api/error/unprocessable_entity.rb +29 -1
  28. data/lib/desk_api/error/unsupported_media_type.rb +29 -1
  29. data/lib/desk_api/rate_limit.rb +63 -21
  30. data/lib/desk_api/request/encode_json.rb +49 -7
  31. data/lib/desk_api/request/oauth.rb +62 -14
  32. data/lib/desk_api/request/retry.rb +108 -34
  33. data/lib/desk_api/resource.rb +402 -192
  34. data/lib/desk_api/response/follow_redirects.rb +99 -0
  35. data/lib/desk_api/response/parse_dates.rb +63 -21
  36. data/lib/desk_api/response/parse_json.rb +47 -5
  37. data/lib/desk_api/response/raise_error.rb +51 -10
  38. data/lib/desk_api/version.rb +30 -2
  39. data/spec/cassettes/DeskApi_Resource/_update/can_handle_action_params.yml +110 -104
  40. data/spec/cassettes/DeskApi_Resource/_update/can_handle_links.yml +426 -0
  41. data/spec/desk_api/client_spec.rb +28 -0
  42. data/spec/desk_api/configuration_spec.rb +28 -0
  43. data/spec/desk_api/default_spec.rb +28 -0
  44. data/spec/desk_api/error_spec.rb +29 -1
  45. data/spec/desk_api/rate_limit_spec.rb +28 -0
  46. data/spec/desk_api/request/encode_json_spec.rb +28 -0
  47. data/spec/desk_api/request/oauth_spec.rb +28 -0
  48. data/spec/desk_api/request/retry_spec.rb +29 -1
  49. data/spec/desk_api/resource_spec.rb +49 -12
  50. data/spec/desk_api/response/follow_redirects_spec.rb +95 -0
  51. data/spec/desk_api/response/parse_dates_spec.rb +28 -0
  52. data/spec/desk_api/response/parse_json_spec.rb +56 -9
  53. data/spec/desk_api/response/raise_error_spec.rb +28 -0
  54. data/spec/desk_api_spec.rb +28 -0
  55. data/spec/spec_helper.rb +28 -0
  56. metadata +84 -24
  57. data/LICENSE +0 -7
@@ -1,3 +1,31 @@
1
+ # Copyright (c) 2013-2014, Salesforce.com, Inc.
2
+ # All rights reserved.
3
+ #
4
+ # Redistribution and use in source and binary forms, with or without modification,
5
+ # are permitted provided that the following conditions are met:
6
+ #
7
+ # * Redistributions of source code must retain the above copyright notice, this
8
+ # list of conditions and the following disclaimer.
9
+ #
10
+ # * Redistributions in binary form must reproduce the above copyright notice,
11
+ # this list of conditions and the following disclaimer in the documentation
12
+ # and/or other materials provided with the distribution.
13
+ #
14
+ # * Neither the name of Salesforce.com nor the names of its contributors may be
15
+ # used to endorse or promote products derived from this software without
16
+ # specific prior written permission.
17
+ #
18
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
22
+ # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25
+ # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+
1
29
  require 'spec_helper'
2
30
  require 'desk_api/response/parse_json'
3
31
 
@@ -5,14 +33,21 @@ describe DeskApi::Response::ParseJson do
5
33
  before do
6
34
  VCR.turn_off!
7
35
 
36
+ @xml = <<-eos
37
+ <?xml version="1.0" encoding="UTF-8"?>
38
+ <note>
39
+ <to>Tove</to>
40
+ <from>Jani</from>
41
+ <heading>Reminder</heading>
42
+ <body>Don't forget me this weekend!</body>
43
+ </note>
44
+ eos
45
+ @json = File.open(File.join(RSpec.configuration.root_path, 'stubs', 'article.json')).read
46
+
8
47
  stubs = Faraday::Adapter::Test::Stubs.new do |stub|
9
- stub.get('/echo') do
10
- [
11
- 200,
12
- { 'content-type' => 'application/json' },
13
- File.open(File.join(RSpec.configuration.root_path, 'stubs', 'article.json')).read
14
- ]
15
- end
48
+ stub.get('/json') { [200, { 'content-type' => 'application/json' }, @json] }
49
+ stub.get('/xml') { [200, { 'content-type' => 'application/xml' }, @xml] }
50
+ stub.get('/utf8') { [200, { 'content-type' => 'application/json; charset=utf-8' }, @json] }
16
51
  end
17
52
 
18
53
  @conn = Faraday.new do |builder|
@@ -26,8 +61,20 @@ describe DeskApi::Response::ParseJson do
26
61
  end
27
62
 
28
63
  it 'parses the response body into a hash' do
29
- body = @conn.get('http://localhost/echo').body
30
- compare = JSON.parse File.open(File.join(RSpec.configuration.root_path, 'stubs', 'article.json')).read
64
+ body = @conn.get('http://localhost/json').body
65
+ compare = JSON.parse @json
66
+ expect(body).to be_instance_of(Hash)
67
+ expect(body).to eql(compare)
68
+ end
69
+
70
+ it 'looks at the content type header before parsing' do
71
+ body = @conn.get('http://localhost/xml').body
72
+ expect(body).to eql(@xml)
73
+ end
74
+
75
+ it 'deals with specified charsets in the content-type header' do
76
+ body = @conn.get('http://localhost/utf8').body
77
+ compare = JSON.parse @json
31
78
  expect(body).to be_instance_of(Hash)
32
79
  expect(body).to eql(compare)
33
80
  end
@@ -1,3 +1,31 @@
1
+ # Copyright (c) 2013-2014, Salesforce.com, Inc.
2
+ # All rights reserved.
3
+ #
4
+ # Redistribution and use in source and binary forms, with or without modification,
5
+ # are permitted provided that the following conditions are met:
6
+ #
7
+ # * Redistributions of source code must retain the above copyright notice, this
8
+ # list of conditions and the following disclaimer.
9
+ #
10
+ # * Redistributions in binary form must reproduce the above copyright notice,
11
+ # this list of conditions and the following disclaimer in the documentation
12
+ # and/or other materials provided with the distribution.
13
+ #
14
+ # * Neither the name of Salesforce.com nor the names of its contributors may be
15
+ # used to endorse or promote products derived from this software without
16
+ # specific prior written permission.
17
+ #
18
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
22
+ # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25
+ # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+
1
29
  require 'spec_helper'
2
30
  require 'desk_api/response/raise_error'
3
31
 
@@ -1,3 +1,31 @@
1
+ # Copyright (c) 2013-2014, Salesforce.com, Inc.
2
+ # All rights reserved.
3
+ #
4
+ # Redistribution and use in source and binary forms, with or without modification,
5
+ # are permitted provided that the following conditions are met:
6
+ #
7
+ # * Redistributions of source code must retain the above copyright notice, this
8
+ # list of conditions and the following disclaimer.
9
+ #
10
+ # * Redistributions in binary form must reproduce the above copyright notice,
11
+ # this list of conditions and the following disclaimer in the documentation
12
+ # and/or other materials provided with the distribution.
13
+ #
14
+ # * Neither the name of Salesforce.com nor the names of its contributors may be
15
+ # used to endorse or promote products derived from this software without
16
+ # specific prior written permission.
17
+ #
18
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
22
+ # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25
+ # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+
1
29
  require 'spec_helper'
2
30
 
3
31
  describe DeskApi do
data/spec/spec_helper.rb CHANGED
@@ -1,3 +1,31 @@
1
+ # Copyright (c) 2013-2014, Salesforce.com, Inc.
2
+ # All rights reserved.
3
+ #
4
+ # Redistribution and use in source and binary forms, with or without modification,
5
+ # are permitted provided that the following conditions are met:
6
+ #
7
+ # * Redistributions of source code must retain the above copyright notice, this
8
+ # list of conditions and the following disclaimer.
9
+ #
10
+ # * Redistributions in binary form must reproduce the above copyright notice,
11
+ # this list of conditions and the following disclaimer in the documentation
12
+ # and/or other materials provided with the distribution.
13
+ #
14
+ # * Neither the name of Salesforce.com nor the names of its contributors may be
15
+ # used to endorse or promote products derived from this software without
16
+ # specific prior written permission.
17
+ #
18
+ # THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
19
+ # ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
20
+ # WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
21
+ # DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
22
+ # ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
23
+ # (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
24
+ # LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
25
+ # ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
26
+ # (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
27
+ # SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
28
+
1
29
  require 'simplecov'
2
30
  require 'coveralls'
3
31
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: desk_api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Thomas Stachl
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-05-22 00:00:00.000000000 Z
12
+ date: 2014-07-14 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: faraday
@@ -17,126 +17,180 @@ dependencies:
17
17
  requirements:
18
18
  - - '>='
19
19
  - !ruby/object:Gem::Version
20
- version: 0.8.0
20
+ version: '0.8'
21
+ - - <
22
+ - !ruby/object:Gem::Version
23
+ version: '1.0'
21
24
  type: :runtime
22
25
  prerelease: false
23
26
  version_requirements: !ruby/object:Gem::Requirement
24
27
  requirements:
25
28
  - - '>='
26
29
  - !ruby/object:Gem::Version
27
- version: 0.8.0
30
+ version: '0.8'
31
+ - - <
32
+ - !ruby/object:Gem::Version
33
+ version: '1.0'
28
34
  - !ruby/object:Gem::Dependency
29
35
  name: simple_oauth
30
36
  requirement: !ruby/object:Gem::Requirement
31
37
  requirements:
32
- - - ~>
38
+ - - '>='
33
39
  - !ruby/object:Gem::Version
34
40
  version: '0.1'
41
+ - - <
42
+ - !ruby/object:Gem::Version
43
+ version: '0.3'
35
44
  type: :runtime
36
45
  prerelease: false
37
46
  version_requirements: !ruby/object:Gem::Requirement
38
47
  requirements:
39
- - - ~>
48
+ - - '>='
40
49
  - !ruby/object:Gem::Version
41
50
  version: '0.1'
51
+ - - <
52
+ - !ruby/object:Gem::Version
53
+ version: '0.3'
42
54
  - !ruby/object:Gem::Dependency
43
55
  name: addressable
44
56
  requirement: !ruby/object:Gem::Requirement
45
57
  requirements:
46
- - - ~>
58
+ - - '>='
47
59
  - !ruby/object:Gem::Version
48
60
  version: '2.3'
61
+ - - <
62
+ - !ruby/object:Gem::Version
63
+ version: '2.4'
49
64
  type: :runtime
50
65
  prerelease: false
51
66
  version_requirements: !ruby/object:Gem::Requirement
52
67
  requirements:
53
- - - ~>
68
+ - - '>='
54
69
  - !ruby/object:Gem::Version
55
70
  version: '2.3'
71
+ - - <
72
+ - !ruby/object:Gem::Version
73
+ version: '2.4'
56
74
  - !ruby/object:Gem::Dependency
57
75
  name: rake
58
76
  requirement: !ruby/object:Gem::Requirement
59
77
  requirements:
60
- - - ~>
78
+ - - '>='
61
79
  - !ruby/object:Gem::Version
62
- version: 10.1.1
80
+ version: '10.1'
81
+ - - <
82
+ - !ruby/object:Gem::Version
83
+ version: '10.4'
63
84
  type: :development
64
85
  prerelease: false
65
86
  version_requirements: !ruby/object:Gem::Requirement
66
87
  requirements:
67
- - - ~>
88
+ - - '>='
68
89
  - !ruby/object:Gem::Version
69
- version: 10.1.1
90
+ version: '10.1'
91
+ - - <
92
+ - !ruby/object:Gem::Version
93
+ version: '10.4'
70
94
  - !ruby/object:Gem::Dependency
71
95
  name: rspec
72
96
  requirement: !ruby/object:Gem::Requirement
73
97
  requirements:
74
- - - ~>
98
+ - - '>='
75
99
  - !ruby/object:Gem::Version
76
100
  version: '2.6'
101
+ - - <
102
+ - !ruby/object:Gem::Version
103
+ version: '2.15'
77
104
  type: :development
78
105
  prerelease: false
79
106
  version_requirements: !ruby/object:Gem::Requirement
80
107
  requirements:
81
- - - ~>
108
+ - - '>='
82
109
  - !ruby/object:Gem::Version
83
110
  version: '2.6'
111
+ - - <
112
+ - !ruby/object:Gem::Version
113
+ version: '2.15'
84
114
  - !ruby/object:Gem::Dependency
85
115
  name: vcr
86
116
  requirement: !ruby/object:Gem::Requirement
87
117
  requirements:
88
- - - ~>
118
+ - - '>='
89
119
  - !ruby/object:Gem::Version
90
120
  version: '2.0'
121
+ - - <
122
+ - !ruby/object:Gem::Version
123
+ version: '3'
91
124
  type: :development
92
125
  prerelease: false
93
126
  version_requirements: !ruby/object:Gem::Requirement
94
127
  requirements:
95
- - - ~>
128
+ - - '>='
96
129
  - !ruby/object:Gem::Version
97
130
  version: '2.0'
131
+ - - <
132
+ - !ruby/object:Gem::Version
133
+ version: '3'
98
134
  - !ruby/object:Gem::Dependency
99
135
  name: simplecov
100
136
  requirement: !ruby/object:Gem::Requirement
101
137
  requirements:
102
- - - ~>
138
+ - - '>='
103
139
  - !ruby/object:Gem::Version
104
140
  version: '0.7'
141
+ - - <
142
+ - !ruby/object:Gem::Version
143
+ version: '0.9'
105
144
  type: :development
106
145
  prerelease: false
107
146
  version_requirements: !ruby/object:Gem::Requirement
108
147
  requirements:
109
- - - ~>
148
+ - - '>='
110
149
  - !ruby/object:Gem::Version
111
150
  version: '0.7'
151
+ - - <
152
+ - !ruby/object:Gem::Version
153
+ version: '0.9'
112
154
  - !ruby/object:Gem::Dependency
113
155
  name: coveralls
114
156
  requirement: !ruby/object:Gem::Requirement
115
157
  requirements:
116
- - - ~>
158
+ - - '>='
117
159
  - !ruby/object:Gem::Version
118
160
  version: '0.6'
161
+ - - <
162
+ - !ruby/object:Gem::Version
163
+ version: '0.8'
119
164
  type: :development
120
165
  prerelease: false
121
166
  version_requirements: !ruby/object:Gem::Requirement
122
167
  requirements:
123
- - - ~>
168
+ - - '>='
124
169
  - !ruby/object:Gem::Version
125
170
  version: '0.6'
171
+ - - <
172
+ - !ruby/object:Gem::Version
173
+ version: '0.8'
126
174
  - !ruby/object:Gem::Dependency
127
175
  name: appraisal
128
176
  requirement: !ruby/object:Gem::Requirement
129
177
  requirements:
130
- - - ~>
178
+ - - '>='
131
179
  - !ruby/object:Gem::Version
132
180
  version: 1.0.0
181
+ - - <
182
+ - !ruby/object:Gem::Version
183
+ version: '1.1'
133
184
  type: :development
134
185
  prerelease: false
135
186
  version_requirements: !ruby/object:Gem::Requirement
136
187
  requirements:
137
- - - ~>
188
+ - - '>='
138
189
  - !ruby/object:Gem::Version
139
190
  version: 1.0.0
191
+ - - <
192
+ - !ruby/object:Gem::Version
193
+ version: '1.1'
140
194
  description: |2
141
195
  This is a lightweight, flexible ruby gem to interact with the desk.com APIv2.
142
196
  It allows to create, read and delete resources available through the API
@@ -149,7 +203,7 @@ extensions: []
149
203
  extra_rdoc_files:
150
204
  - README.md
151
205
  files:
152
- - LICENSE
206
+ - LICENSE.txt
153
207
  - README.md
154
208
  - lib/desk.rb
155
209
  - lib/desk_api.rb
@@ -162,6 +216,7 @@ files:
162
216
  - lib/desk_api/error/client_error.rb
163
217
  - lib/desk_api/error/configuration_error.rb
164
218
  - lib/desk_api/error/conflict.rb
219
+ - lib/desk_api/error/follow_redirect_error.rb
165
220
  - lib/desk_api/error/forbidden.rb
166
221
  - lib/desk_api/error/gateway_timeout.rb
167
222
  - lib/desk_api/error/internal_server_error.rb
@@ -180,6 +235,7 @@ files:
180
235
  - lib/desk_api/request/oauth.rb
181
236
  - lib/desk_api/request/retry.rb
182
237
  - lib/desk_api/resource.rb
238
+ - lib/desk_api/response/follow_redirects.rb
183
239
  - lib/desk_api/response/parse_dates.rb
184
240
  - lib/desk_api/response/parse_json.rb
185
241
  - lib/desk_api/response/raise_error.rb
@@ -227,6 +283,7 @@ files:
227
283
  - spec/cassettes/DeskApi_Resource/_to_hash/converts_embedded_resources_to_hashes.yml
228
284
  - spec/cassettes/DeskApi_Resource/_to_hash/returns_a_hash_for_a_desk_resource.yml
229
285
  - spec/cassettes/DeskApi_Resource/_update/can_handle_action_params.yml
286
+ - spec/cassettes/DeskApi_Resource/_update/can_handle_links.yml
230
287
  - spec/cassettes/DeskApi_Resource/_update/can_handle_update_action_params.yml
231
288
  - spec/cassettes/DeskApi_Resource/_update/can_replace_instead_of_append.yml
232
289
  - spec/cassettes/DeskApi_Resource/_update/can_update_without_a_hash.yml
@@ -243,6 +300,7 @@ files:
243
300
  - spec/desk_api/request/oauth_spec.rb
244
301
  - spec/desk_api/request/retry_spec.rb
245
302
  - spec/desk_api/resource_spec.rb
303
+ - spec/desk_api/response/follow_redirects_spec.rb
246
304
  - spec/desk_api/response/parse_dates_spec.rb
247
305
  - spec/desk_api/response/parse_json_spec.rb
248
306
  - spec/desk_api/response/raise_error_spec.rb
@@ -254,7 +312,7 @@ files:
254
312
  - spec/stubs/to_hash_embed.json
255
313
  homepage: http://github.com/tstachl/desk_api
256
314
  licenses:
257
- - MIT
315
+ - BSD 3-Clause License
258
316
  metadata: {}
259
317
  post_install_message:
260
318
  rdoc_options: []
@@ -320,6 +378,7 @@ test_files:
320
378
  - spec/cassettes/DeskApi_Resource/_to_hash/converts_embedded_resources_to_hashes.yml
321
379
  - spec/cassettes/DeskApi_Resource/_to_hash/returns_a_hash_for_a_desk_resource.yml
322
380
  - spec/cassettes/DeskApi_Resource/_update/can_handle_action_params.yml
381
+ - spec/cassettes/DeskApi_Resource/_update/can_handle_links.yml
323
382
  - spec/cassettes/DeskApi_Resource/_update/can_handle_update_action_params.yml
324
383
  - spec/cassettes/DeskApi_Resource/_update/can_replace_instead_of_append.yml
325
384
  - spec/cassettes/DeskApi_Resource/_update/can_update_without_a_hash.yml
@@ -336,6 +395,7 @@ test_files:
336
395
  - spec/desk_api/request/oauth_spec.rb
337
396
  - spec/desk_api/request/retry_spec.rb
338
397
  - spec/desk_api/resource_spec.rb
398
+ - spec/desk_api/response/follow_redirects_spec.rb
339
399
  - spec/desk_api/response/parse_dates_spec.rb
340
400
  - spec/desk_api/response/parse_json_spec.rb
341
401
  - spec/desk_api/response/raise_error_spec.rb