shutl_resource 1.9.1 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.ruby-version +1 -1
- data/.travis.yml +4 -3
- data/lib/shutl/resource/rest_class_methods.rb +1 -1
- data/lib/shutl/resource/version.rb +1 -1
- data/lib/shutl_resource.rb +1 -0
- data/shutl_resource.gemspec +4 -1
- data/spec/rest_resource_spec.rb +1 -2
- metadata +20 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 374d4ad60025ab11efb2effad701d583b2849130
|
4
|
+
data.tar.gz: 483917af82f0df4850bde5af995c60639d5d7ab9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: '0592c27d5061d24c3facb589a2c738bfa8de785e88b59c13240caaf225e7fb1d42b1225a0c7a01d17924471b997948ed0b113995436f8057edb6b4168487e305'
|
7
|
+
data.tar.gz: 4630c98cf74187cb2210a0e8731102f02e319617bd97db8bcbd82a8a4841f4b6f1ec6a3134e7542644e6f26c3cedd6f957e06ecce3ef52adc932af511575c684
|
data/.ruby-version
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.4.0
|
data/.travis.yml
CHANGED
data/lib/shutl_resource.rb
CHANGED
data/shutl_resource.gemspec
CHANGED
@@ -18,13 +18,16 @@ Gem::Specification.new do |gem|
|
|
18
18
|
gem.require_paths = ["lib"]
|
19
19
|
gem.version = Shutl::Resource::VERSION
|
20
20
|
|
21
|
+
gem.required_ruby_version = '>= 2.2.0'
|
22
|
+
|
21
23
|
gem.add_dependency 'shutl_auth', '~> 0.9.2'
|
22
24
|
gem.add_dependency 'activemodel'
|
23
25
|
gem.add_dependency 'faraday'
|
24
26
|
gem.add_dependency 'faraday_middleware'
|
25
27
|
gem.add_dependency 'faraday-conductivity'
|
28
|
+
gem.add_dependency 'faraday_connection_pool'
|
26
29
|
|
27
|
-
gem.add_development_dependency 'rake'
|
30
|
+
gem.add_development_dependency 'rake', '~> 10.0'
|
28
31
|
gem.add_development_dependency 'rspec', '~> 2.11.0'
|
29
32
|
|
30
33
|
gem.add_development_dependency 'webmock', '~> 1.8.7'
|
data/spec/rest_resource_spec.rb
CHANGED
@@ -559,9 +559,8 @@ describe Shutl::Resource::Rest do
|
|
559
559
|
|
560
560
|
|
561
561
|
it 'should post in the body the json serialized resource' do
|
562
|
-
Hash.any_instance.stub(:to_json).and_return('JSON')
|
563
562
|
request = stub_request(:put, 'http://host/test_rests/a').
|
564
|
-
with(:body => '
|
563
|
+
with(:body => '{"test_rest":{"a":"a","b":2}}', headers: headers)
|
565
564
|
|
566
565
|
resource.save
|
567
566
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shutl_resource
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
4
|
+
version: 2.0.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- David Rouchy
|
@@ -13,7 +13,7 @@ authors:
|
|
13
13
|
autorequire:
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
|
-
date:
|
16
|
+
date: 2017-01-16 00:00:00.000000000 Z
|
17
17
|
dependencies:
|
18
18
|
- !ruby/object:Gem::Dependency
|
19
19
|
name: shutl_auth
|
@@ -86,19 +86,33 @@ dependencies:
|
|
86
86
|
- !ruby/object:Gem::Version
|
87
87
|
version: '0'
|
88
88
|
- !ruby/object:Gem::Dependency
|
89
|
-
name:
|
89
|
+
name: faraday_connection_pool
|
90
90
|
requirement: !ruby/object:Gem::Requirement
|
91
91
|
requirements:
|
92
92
|
- - ">="
|
93
93
|
- !ruby/object:Gem::Version
|
94
94
|
version: '0'
|
95
|
-
type: :
|
95
|
+
type: :runtime
|
96
96
|
prerelease: false
|
97
97
|
version_requirements: !ruby/object:Gem::Requirement
|
98
98
|
requirements:
|
99
99
|
- - ">="
|
100
100
|
- !ruby/object:Gem::Version
|
101
101
|
version: '0'
|
102
|
+
- !ruby/object:Gem::Dependency
|
103
|
+
name: rake
|
104
|
+
requirement: !ruby/object:Gem::Requirement
|
105
|
+
requirements:
|
106
|
+
- - "~>"
|
107
|
+
- !ruby/object:Gem::Version
|
108
|
+
version: '10.0'
|
109
|
+
type: :development
|
110
|
+
prerelease: false
|
111
|
+
version_requirements: !ruby/object:Gem::Requirement
|
112
|
+
requirements:
|
113
|
+
- - "~>"
|
114
|
+
- !ruby/object:Gem::Version
|
115
|
+
version: '10.0'
|
102
116
|
- !ruby/object:Gem::Dependency
|
103
117
|
name: rspec
|
104
118
|
requirement: !ruby/object:Gem::Requirement
|
@@ -184,7 +198,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
184
198
|
requirements:
|
185
199
|
- - ">="
|
186
200
|
- !ruby/object:Gem::Version
|
187
|
-
version:
|
201
|
+
version: 2.2.0
|
188
202
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
189
203
|
requirements:
|
190
204
|
- - ">="
|
@@ -192,7 +206,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
192
206
|
version: '0'
|
193
207
|
requirements: []
|
194
208
|
rubyforge_project:
|
195
|
-
rubygems_version: 2.
|
209
|
+
rubygems_version: 2.6.8
|
196
210
|
signing_key:
|
197
211
|
specification_version: 4
|
198
212
|
summary: Manage Shutl Rest resource. Parse/Serialize JSON
|