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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 23481343576ffb03542d0945b903a5529fbf687c
4
- data.tar.gz: e2a6b77db9ee46dc1f1c7837b699f85734ea4e60
3
+ metadata.gz: 374d4ad60025ab11efb2effad701d583b2849130
4
+ data.tar.gz: 483917af82f0df4850bde5af995c60639d5d7ab9
5
5
  SHA512:
6
- metadata.gz: 9ece7cf3bcc2dad0b34623321813ef6e49c4a2e23ff8299a271fe557da4f77209b9fa646d4c59c51115473cd9eb182834a46618c004ab8ced6e43542b20e3134
7
- data.tar.gz: c245751a1fb9c6a86db78fe235ba8b1acea40fcbf8969bf264e498a913464e2e5c6744298a22be4274b146bf295e477a2847d8d5d760e2cfc7a502e9f5355124
6
+ metadata.gz: '0592c27d5061d24c3facb589a2c738bfa8de785e88b59c13240caaf225e7fb1d42b1225a0c7a01d17924471b997948ed0b113995436f8057edb6b4168487e305'
7
+ data.tar.gz: 4630c98cf74187cb2210a0e8731102f02e319617bd97db8bcbd82a8a4841f4b6f1ec6a3134e7542644e6f26c3cedd6f957e06ecce3ef52adc932af511575c684
data/.ruby-version CHANGED
@@ -1 +1 @@
1
- 2.2.3
1
+ 2.4.0
data/.travis.yml CHANGED
@@ -1,7 +1,8 @@
1
1
  language: ruby
2
2
  rvm:
3
- - 1.9.3
4
- - jruby-19mode # JRuby in 1.9 mode
3
+ - 2.2.6
4
+ - 2.4.0
5
+ - jruby-9.1.6.0
5
6
  jdk:
6
7
  - openjdk7
7
- - oraclejdk7
8
+ - oraclejdk7
@@ -20,7 +20,7 @@ module Shutl::Resource
20
20
  end
21
21
 
22
22
  faraday.response :json
23
- faraday.adapter Faraday.default_adapter # make requests with Net::HTTP
23
+ faraday.adapter :net_http_pooled
24
24
  end
25
25
  end
26
26
 
@@ -1,5 +1,5 @@
1
1
  module Shutl
2
2
  module Resource
3
- VERSION = '1.9.1'
3
+ VERSION = '2.0.0'
4
4
  end
5
5
  end
@@ -3,6 +3,7 @@ end
3
3
 
4
4
  require 'faraday'
5
5
  require 'faraday_middleware'
6
+ require 'faraday_connection_pool'
6
7
 
7
8
  require 'shutl_auth'
8
9
  require 'shutl/resource/version'
@@ -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'
@@ -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 => 'JSON', headers: headers)
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: 1.9.1
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: 2015-11-23 00:00:00.000000000 Z
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: rake
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: :development
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: '0'
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.4.5.1
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