restfully 1.2.0 → 1.3.0

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
- SHA1:
3
- metadata.gz: fca61fc83984354556e89de09f82d055e733c6ba
4
- data.tar.gz: 2a2f5d74abfb76c821a713f3132ea43148a246de
2
+ SHA256:
3
+ metadata.gz: 0144ab9d14b892c5588319d525b3b391e27d37f1d625ec20c34cd48f4b71a374
4
+ data.tar.gz: 58808449d620d1502fec4b0506698b64ba3a424b0dc724b0bb3041fd66578836
5
5
  SHA512:
6
- metadata.gz: 35fd912e58958d7f1f1fd92c8d3656905cf3ce2d54a13b092e9e4154093ccff25d45e018969c28b75a5ccf73fe1b0bda16ff33e67063c141df008b3416c6bac7
7
- data.tar.gz: e530fb0a659237c0b1bbae2fe1bbea043987f1629214f8f6054ebf8188459bfbf6090bb24c5b2aa46ef28ed65e7018e45fb77a7f1c895f4aa276ab1dcecea8f2
6
+ metadata.gz: 0d90791506229efbbfdef51cfef36ae44136d65d849ff9d5a326f5eb408ffffcf78eca3f12c2ebb24b1e13d2ac64a39450d210f44d7569335d1522a5ee892bda
7
+ data.tar.gz: c5b67753c2847a1fe994340ea3ed04725a09e1c8fced77eda70f5cedcb71cec7d7829cd279eb96363c2742f75a1119327a401b3162619fa0df26372ef5dac643
@@ -1,4 +1,6 @@
1
- require 'backports'
1
+ require 'active_support/inflector'
2
+ require 'active_support/core_ext/hash'
3
+ require 'active_support/core_ext/array'
2
4
  require 'yaml'
3
5
 
4
6
  require 'restfully/version'
@@ -1,3 +1,3 @@
1
1
  module Restfully
2
- VERSION = "1.2.0"
2
+ VERSION = "1.3.0"
3
3
  end
@@ -155,12 +155,22 @@ describe Restfully::Session do
155
155
  end
156
156
 
157
157
  it "should make an authenticated get request" do
158
- stub_request(:get, "https://crohr:p4ssw0rd@api.project.net"+@path+"?k1=v1&k2=v2").with(
159
- :headers => @default_headers.merge({
160
- 'Accept' => '*/*',
161
- 'X-Header' => 'value'
162
- })
163
- )
158
+ if ::WebMock::VERSION >= "2.0.0"
159
+ stub_request(:get, "https://api.project.net"+@path+"?k1=v1&k2=v2").with(
160
+ :basic_auth => ['crohr','p4ssw0rd'],
161
+ :headers => @default_headers.merge({
162
+ 'Accept' => '*/*',
163
+ 'X-Header' => 'value'
164
+ })
165
+ )
166
+ else
167
+ stub_request(:get, "https://crohr:p4ssw0rd@api.project.net"+@path+"?k1=v1&k2=v2").with(
168
+ :headers => @default_headers.merge({
169
+ 'Accept' => '*/*',
170
+ 'X-Header' => 'value'
171
+ })
172
+ )
173
+ end
164
174
  @session.should_receive(:process)
165
175
  @session.authenticate :username => 'crohr', :password => 'p4ssw0rd'
166
176
  @session.send(:transmit, :get, @path, {
metadata CHANGED
@@ -1,43 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restfully
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Rohr
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-11-30 00:00:00.000000000 Z
11
+ date: 2020-02-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '1.5'
19
+ version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - "~>"
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
- version: '1.5'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rest-client
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.6'
33
+ version: '0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.6'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rest-client-components
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -67,7 +67,21 @@ dependencies:
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
69
  - !ruby/object:Gem::Dependency
70
- name: backports
70
+ name: rack
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :runtime
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: activesupport
71
85
  requirement: !ruby/object:Gem::Requirement
72
86
  requirements:
73
87
  - - ">="
@@ -94,20 +108,48 @@ dependencies:
94
108
  - - ">="
95
109
  - !ruby/object:Gem::Version
96
110
  version: '0'
111
+ - !ruby/object:Gem::Dependency
112
+ name: mime-types
113
+ requirement: !ruby/object:Gem::Requirement
114
+ requirements:
115
+ - - ">="
116
+ - !ruby/object:Gem::Version
117
+ version: '0'
118
+ type: :runtime
119
+ prerelease: false
120
+ version_requirements: !ruby/object:Gem::Requirement
121
+ requirements:
122
+ - - ">="
123
+ - !ruby/object:Gem::Version
124
+ version: '0'
125
+ - !ruby/object:Gem::Dependency
126
+ name: public_suffix
127
+ requirement: !ruby/object:Gem::Requirement
128
+ requirements:
129
+ - - ">="
130
+ - !ruby/object:Gem::Version
131
+ version: '0'
132
+ type: :runtime
133
+ prerelease: false
134
+ version_requirements: !ruby/object:Gem::Requirement
135
+ requirements:
136
+ - - ">="
137
+ - !ruby/object:Gem::Version
138
+ version: '0'
97
139
  - !ruby/object:Gem::Dependency
98
140
  name: ripl
99
141
  requirement: !ruby/object:Gem::Requirement
100
142
  requirements:
101
- - - '='
143
+ - - ">="
102
144
  - !ruby/object:Gem::Version
103
- version: 0.6.1
145
+ version: '0'
104
146
  type: :runtime
105
147
  prerelease: false
106
148
  version_requirements: !ruby/object:Gem::Requirement
107
149
  requirements:
108
- - - '='
150
+ - - ">="
109
151
  - !ruby/object:Gem::Version
110
- version: 0.6.1
152
+ version: '0'
111
153
  - !ruby/object:Gem::Dependency
112
154
  name: ripl-multi_line
113
155
  requirement: !ruby/object:Gem::Requirement
@@ -154,16 +196,16 @@ dependencies:
154
196
  name: ripl-play
155
197
  requirement: !ruby/object:Gem::Requirement
156
198
  requirements:
157
- - - "~>"
199
+ - - ">="
158
200
  - !ruby/object:Gem::Version
159
- version: 0.2.1
201
+ version: '0'
160
202
  type: :runtime
161
203
  prerelease: false
162
204
  version_requirements: !ruby/object:Gem::Requirement
163
205
  requirements:
164
- - - "~>"
206
+ - - ">="
165
207
  - !ruby/object:Gem::Version
166
- version: 0.2.1
208
+ version: '0'
167
209
  - !ruby/object:Gem::Dependency
168
210
  name: rb-readline
169
211
  requirement: !ruby/object:Gem::Requirement
@@ -182,16 +224,16 @@ dependencies:
182
224
  name: rake
183
225
  requirement: !ruby/object:Gem::Requirement
184
226
  requirements:
185
- - - "~>"
227
+ - - ">="
186
228
  - !ruby/object:Gem::Version
187
- version: '0.8'
229
+ version: '0'
188
230
  type: :development
189
231
  prerelease: false
190
232
  version_requirements: !ruby/object:Gem::Requirement
191
233
  requirements:
192
- - - "~>"
234
+ - - ">="
193
235
  - !ruby/object:Gem::Version
194
- version: '0.8'
236
+ version: '0'
195
237
  - !ruby/object:Gem::Dependency
196
238
  name: rspec
197
239
  requirement: !ruby/object:Gem::Requirement
@@ -321,7 +363,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
321
363
  requirements:
322
364
  - - ">="
323
365
  - !ruby/object:Gem::Version
324
- version: '1.8'
366
+ version: '2.3'
325
367
  required_rubygems_version: !ruby/object:Gem::Requirement
326
368
  requirements:
327
369
  - - ">="
@@ -329,32 +371,32 @@ required_rubygems_version: !ruby/object:Gem::Requirement
329
371
  version: '1.3'
330
372
  requirements: []
331
373
  rubyforge_project:
332
- rubygems_version: 2.5.1
374
+ rubygems_version: 2.7.6.2
333
375
  signing_key:
334
376
  specification_version: 4
335
377
  summary: Consume RESTful APIs effortlessly
336
378
  test_files:
337
- - spec/fixtures/bonfire-experiment.xml
338
- - spec/fixtures/bonfire-collection-with-fragments.xml
339
- - spec/fixtures/bonfire-network-collection.xml
379
+ - spec/fixtures/bonfire-location-collection.xml
340
380
  - spec/fixtures/bonfire-compute-existing.xml
341
- - spec/fixtures/grid5000-rennes.json
381
+ - spec/fixtures/bonfire-collection-with-fragments.xml
382
+ - spec/fixtures/bonfire-empty-collection.xml
383
+ - spec/fixtures/bonfire-experiment-collection.xml
384
+ - spec/fixtures/grid5000-rennes-jobs.json
342
385
  - spec/fixtures/bonfire-root.xml
386
+ - spec/fixtures/bonfire-network-collection.xml
343
387
  - spec/fixtures/bonfire-network-existing.xml
344
- - spec/fixtures/grid5000-rennes-jobs.json
345
388
  - spec/fixtures/config.yml
346
- - spec/fixtures/bonfire-empty-collection.xml
347
- - spec/fixtures/bonfire-location-collection.xml
348
389
  - spec/fixtures/grid5000-rennes-job.json
349
- - spec/fixtures/bonfire-experiment-collection.xml
350
- - spec/spec_helper.rb
351
- - spec/restfully/configuration_spec.rb
352
- - spec/restfully/resource_spec.rb
353
- - spec/restfully/http/request_spec.rb
390
+ - spec/fixtures/bonfire-experiment.xml
391
+ - spec/fixtures/grid5000-rennes.json
392
+ - spec/restfully/media_type_spec.rb
354
393
  - spec/restfully/http/helper_spec.rb
394
+ - spec/restfully/http/request_spec.rb
355
395
  - spec/restfully/http/response_spec.rb
356
- - spec/restfully/collection_spec.rb
357
- - spec/restfully/media_type_spec.rb
358
396
  - spec/restfully/media_type/application_vnd_bonfire_xml_spec.rb
359
- - spec/restfully/link_spec.rb
397
+ - spec/restfully/collection_spec.rb
360
398
  - spec/restfully/session_spec.rb
399
+ - spec/restfully/link_spec.rb
400
+ - spec/restfully/resource_spec.rb
401
+ - spec/restfully/configuration_spec.rb
402
+ - spec/spec_helper.rb