restful_resource 2.10.0 → 2.10.1

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
  SHA256:
3
- metadata.gz: 88ffc05f6fe383a8d7e885b26498b3d56b18f4ed3e3011b07e01638ebd0b09ba
4
- data.tar.gz: 9e2e99681e0b464332ec34361c17903ff54ed368974cd52f401fe51ebe011aea
3
+ metadata.gz: '081a984e1de78fc016fefc2780fcb3704500150aadbd9522ed7ef2f853974280'
4
+ data.tar.gz: b6c1c0c81446ad5bd91425331a8da03e41472dde92f5b212cc77fb135b259fac
5
5
  SHA512:
6
- metadata.gz: 8f1650c811c5ddb2c0d992449e47d2e7c804e3b142963d43a803a252b61884c8e2514aed11e3fcd1123f68cdff3cd7752773471ddd5b8b26a12b9a0dc95688d6
7
- data.tar.gz: 300be14f9ac06b762c3302f4e71901c82ffc86dc5a74bb3daabe63eb032a72a9ac19cca82b1f337dd37cda31f69d006adfc2cc078fcc42687e850e08d316954f
6
+ metadata.gz: ea91622af6f36d6a3263ffe856bd86eb625e67114391409dce009622091924cb4f6b7e994925f2f76aa994184b8043a031c4e40ea65abd0b8c274cf6f2569e06
7
+ data.tar.gz: 1dc365a6041eeb909e6f3c70450682a90ad1203aaecd26a6fd48335330ab6ec8608a9c10bf034100c235d1ed3a9e2fda82787a48773d45251eca582cdf6f6d84
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- restful_resource (2.10.0)
4
+ restful_resource (2.10.1)
5
5
  activesupport (~> 6.0)
6
6
  faraday (~> 1.0)
7
7
  faraday-cdn-metrics (~> 0.2)
@@ -15,7 +15,7 @@ PATH
15
15
  GEM
16
16
  remote: https://rubygems.org/
17
17
  specs:
18
- activesupport (6.0.3.1)
18
+ activesupport (6.0.3.3)
19
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
20
  i18n (>= 0.7, < 2)
21
21
  minitest (~> 5.1)
@@ -27,7 +27,7 @@ GEM
27
27
  rubocop-performance
28
28
  rubocop-rspec
29
29
  coderay (1.1.2)
30
- concurrent-ruby (1.1.6)
30
+ concurrent-ruby (1.1.7)
31
31
  diff-lcs (1.3)
32
32
  ethon (0.12.0)
33
33
  ffi (>= 1.3.0)
@@ -41,12 +41,12 @@ GEM
41
41
  faraday (>= 0.8)
42
42
  faraday_middleware (1.0.0)
43
43
  faraday (~> 1.0)
44
- ffi (1.13.0)
45
- i18n (1.8.3)
44
+ ffi (1.13.1)
45
+ i18n (1.8.5)
46
46
  concurrent-ruby (~> 1.0)
47
47
  link_header (0.0.8)
48
48
  method_source (1.0.0)
49
- minitest (5.14.1)
49
+ minitest (5.14.2)
50
50
  multipart-post (2.1.1)
51
51
  parallel (1.19.1)
52
52
  parser (2.7.1.2)
@@ -54,7 +54,7 @@ GEM
54
54
  pry (0.13.1)
55
55
  coderay (~> 1.1)
56
56
  method_source (~> 1.0)
57
- rack (2.2.2)
57
+ rack (2.2.3)
58
58
  rainbow (3.0.0)
59
59
  rake (13.0.1)
60
60
  rexml (3.2.4)
@@ -97,7 +97,7 @@ GEM
97
97
  tzinfo (1.2.7)
98
98
  thread_safe (~> 0.1)
99
99
  unicode-display_width (1.7.0)
100
- zeitwerk (2.3.0)
100
+ zeitwerk (2.4.0)
101
101
 
102
102
  PLATFORMS
103
103
  ruby
@@ -36,7 +36,7 @@ module RestfulResource
36
36
  def self.find(id, **params)
37
37
  params_without_options, options = format_params(params)
38
38
 
39
- response = http.get(member_url(id, params_without_options), **options)
39
+ response = http.get(member_url(id, **params_without_options), **options)
40
40
  new(parse_json(response.body))
41
41
  end
42
42
 
@@ -57,7 +57,7 @@ module RestfulResource
57
57
 
58
58
  def self.delete(id, **params)
59
59
  params_without_options, options = format_params(params)
60
- response = http.delete(member_url(id, params_without_options), **options)
60
+ response = http.delete(member_url(id, **params_without_options), **options)
61
61
  new(parse_json(response.body))
62
62
  end
63
63
 
@@ -65,7 +65,7 @@ module RestfulResource
65
65
  params_without_options, options = format_params(params)
66
66
  options.delete(:headers)
67
67
 
68
- url = member_url(id, params_without_options)
68
+ url = member_url(id, **params_without_options)
69
69
 
70
70
  response = http.patch(url, data: data, headers: headers, **options)
71
71
  new(parse_json(response.body))
@@ -75,7 +75,7 @@ module RestfulResource
75
75
  params_without_options, options = format_params(params)
76
76
  options.delete(:headers)
77
77
 
78
- url = member_url(id, params_without_options)
78
+ url = member_url(id, **params_without_options)
79
79
 
80
80
  response = http.put(url, data: data, headers: headers, **options)
81
81
  new(parse_json(response.body))
@@ -158,7 +158,7 @@ module RestfulResource
158
158
  raise ResourceIdMissingError if id.blank?
159
159
 
160
160
  url = merge_url_paths(base_url, @resource_path, CGI.escape(id.to_s), @action_prefix)
161
- replace_parameters(url, params)
161
+ replace_parameters(url, **params)
162
162
  end
163
163
 
164
164
  def self.new_collection(json)
@@ -1,3 +1,3 @@
1
1
  module RestfulResource
2
- VERSION = '2.10.0'.freeze
2
+ VERSION = '2.10.1'.freeze
3
3
  end
metadata CHANGED
@@ -1,15 +1,15 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restful_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.0
4
+ version: 2.10.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Santoro
8
8
  - Federico Rebora
9
- autorequire:
9
+ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-06-09 00:00:00.000000000 Z
12
+ date: 2020-10-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -288,7 +288,7 @@ homepage: http://www.github.com/carwow/restful_resource
288
288
  licenses:
289
289
  - MIT
290
290
  metadata: {}
291
- post_install_message:
291
+ post_install_message:
292
292
  rdoc_options: []
293
293
  require_paths:
294
294
  - lib
@@ -304,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
304
304
  version: '0'
305
305
  requirements: []
306
306
  rubygems_version: 3.1.2
307
- signing_key:
307
+ signing_key:
308
308
  specification_version: 4
309
309
  summary: A simple activerecord inspired rest resource base class implemented using
310
310
  rest-client