restful_resource 2.10.3 → 2.11.0

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 68a4372ef797bce4031a74263c47edd86898a4f10c7a3516d08cfecdb52b59c5
4
- data.tar.gz: 46ebcfbb5dbdda37c06c678369e838bdf646f0b3e4d6ea103ddd25407e3e98bb
3
+ metadata.gz: cb7770b52ca814a51c3171c5ea4e8306183f686ac5515c0f7693e7b76b3642f3
4
+ data.tar.gz: 921c17d8e377fa82977e67819041b457735d4f331103e693b96f446b47999b75
5
5
  SHA512:
6
- metadata.gz: 58bec55b531529a570598f66ab67c7fd113a9315ee7f8fa1cbb9219b7ac326c734a43f8697feb81debb59cb02447c9853d37e8b630a7f0d477c6ce388261c4a8
7
- data.tar.gz: 7dd64a01a76e08587f2c1f9b122648b2a00a0436b4dc8233b8fb94f3677c96e21e03ff829f829e7c8450dbb8c8536c2c2851cb717c0c89239aa0ea9b56dcaa7c
6
+ metadata.gz: 05c7ae1b588c74b3a813827ea2ff8ca7420f645cd1fa5cfc125f224214b600d9ad5a366d5660467e1dba0a07a2961cc93488f465d1afefce0707f925fd77f8f0
7
+ data.tar.gz: '000409a57d6b9d24b414a1112a6b6fb328b265216951aeb974c8578ae650df402f0d06024eb51a959cd5bad6d6fb3e66a49af7a60a7b8eeb052831a88696c051'
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- restful_resource (2.10.3)
4
+ restful_resource (2.11.0)
5
5
  activesupport (~> 6.0)
6
6
  faraday (~> 1.0)
7
7
  faraday-cdn-metrics (~> 0.2)
@@ -15,23 +15,24 @@ PATH
15
15
  GEM
16
16
  remote: https://rubygems.org/
17
17
  specs:
18
- activesupport (6.0.3.4)
18
+ activesupport (6.1.3)
19
19
  concurrent-ruby (~> 1.0, >= 1.0.2)
20
- i18n (>= 0.7, < 2)
21
- minitest (~> 5.1)
22
- tzinfo (~> 1.1)
23
- zeitwerk (~> 2.2, >= 2.2.2)
20
+ i18n (>= 1.6, < 2)
21
+ minitest (>= 5.1)
22
+ tzinfo (~> 2.0)
23
+ zeitwerk (~> 2.3)
24
24
  ast (2.4.1)
25
25
  carwow_rubocop (3.4.1)
26
26
  rubocop (>= 0.93)
27
27
  rubocop-performance
28
28
  rubocop-rspec
29
29
  coderay (1.1.2)
30
- concurrent-ruby (1.1.7)
30
+ concurrent-ruby (1.1.8)
31
31
  diff-lcs (1.4.4)
32
32
  ethon (0.12.0)
33
33
  ffi (>= 1.3.0)
34
- faraday (1.1.0)
34
+ faraday (1.3.0)
35
+ faraday-net_http (~> 1.0)
35
36
  multipart-post (>= 1.2, < 3)
36
37
  ruby2_keywords
37
38
  faraday-cdn-metrics (0.2.0)
@@ -40,14 +41,15 @@ GEM
40
41
  faraday
41
42
  faraday-http-cache (2.2.0)
42
43
  faraday (>= 0.8)
44
+ faraday-net_http (1.0.1)
43
45
  faraday_middleware (1.0.0)
44
46
  faraday (~> 1.0)
45
- ffi (1.13.1)
46
- i18n (1.8.5)
47
+ ffi (1.14.2)
48
+ i18n (1.8.9)
47
49
  concurrent-ruby (~> 1.0)
48
50
  link_header (0.0.8)
49
51
  method_source (1.0.0)
50
- minitest (5.14.2)
52
+ minitest (5.14.3)
51
53
  multipart-post (2.1.1)
52
54
  parallel (1.20.0)
53
55
  parser (2.7.2.0)
@@ -57,7 +59,7 @@ GEM
57
59
  method_source (~> 1.0)
58
60
  rack (2.2.3)
59
61
  rainbow (3.0.0)
60
- rake (13.0.1)
62
+ rake (13.0.3)
61
63
  regexp_parser (1.8.2)
62
64
  rexml (3.2.4)
63
65
  rspec (3.10.0)
@@ -96,14 +98,13 @@ GEM
96
98
  rubocop (~> 1.0)
97
99
  rubocop-ast (>= 1.1.0)
98
100
  ruby-progressbar (1.10.1)
99
- ruby2_keywords (0.0.2)
100
- thread_safe (0.3.6)
101
+ ruby2_keywords (0.0.4)
101
102
  typhoeus (1.4.0)
102
103
  ethon (>= 0.9.0)
103
- tzinfo (1.2.7)
104
- thread_safe (~> 0.1)
104
+ tzinfo (2.0.4)
105
+ concurrent-ruby (~> 1.0)
105
106
  unicode-display_width (1.7.0)
106
- zeitwerk (2.4.0)
107
+ zeitwerk (2.4.2)
107
108
 
108
109
  PLATFORMS
109
110
  ruby
@@ -14,6 +14,7 @@ require_relative 'restful_resource/null_logger'
14
14
  require_relative 'restful_resource/paginated_array'
15
15
  require_relative 'restful_resource/parameter_missing_error'
16
16
  require_relative 'restful_resource/resource_id_missing_error'
17
+ require_relative 'restful_resource/strict_open_struct'
17
18
  require_relative 'restful_resource/open_object'
18
19
  require_relative 'restful_resource/response'
19
20
  require_relative 'restful_resource/request'
@@ -1,7 +1,7 @@
1
1
  module RestfulResource
2
2
  class OpenObject
3
3
  def initialize(attributes = {}, _hack_for_activeresource = false)
4
- @inner_object = OpenStruct.new(attributes)
4
+ @inner_object = StrictOpenStruct.new(attributes)
5
5
  end
6
6
 
7
7
  def method_missing(method, *args, &block)
@@ -0,0 +1,5 @@
1
+ module RestfulResource
2
+ class StrictOpenStruct < ::OpenStruct
3
+ undef_method :dig, :[]
4
+ end
5
+ end
@@ -1,3 +1,3 @@
1
1
  module RestfulResource
2
- VERSION = '2.10.3'.freeze
2
+ VERSION = '2.11.0'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: restful_resource
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.10.3
4
+ version: 2.11.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Santoro
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2020-11-12 00:00:00.000000000 Z
12
+ date: 2021-02-19 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -271,6 +271,7 @@ files:
271
271
  - lib/restful_resource/request.rb
272
272
  - lib/restful_resource/resource_id_missing_error.rb
273
273
  - lib/restful_resource/response.rb
274
+ - lib/restful_resource/strict_open_struct.rb
274
275
  - lib/restful_resource/version.rb
275
276
  - restful_resource.gemspec
276
277
  - spec/fixtures.rb
@@ -303,7 +304,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
303
304
  - !ruby/object:Gem::Version
304
305
  version: '0'
305
306
  requirements: []
306
- rubygems_version: 3.1.2
307
+ rubygems_version: 3.1.4
307
308
  signing_key:
308
309
  specification_version: 4
309
310
  summary: A simple activerecord inspired rest resource base class implemented using