restful_resource 2.14.0 → 2.16.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
  SHA256:
3
- metadata.gz: 9f2c32b411aee9609b0df3982688270ef55fe0ba8f8e15c472f6ec16d5562104
4
- data.tar.gz: 71978eaef61ece9aba34fecf03268d83fb1e6d24c81cd4922eebcecc683f2431
3
+ metadata.gz: 9f8db280a4d7afd8d96673bd146fc9ef8f07b65892c51510b96528cf14da3ef6
4
+ data.tar.gz: 90117d3293b54c29bd95e898e74c5bf4a36729aa3699febefe1611f7c0edd2b3
5
5
  SHA512:
6
- metadata.gz: 06e10e1280f1d428c879366832f6ec9d74105a9c77c958e82734ffb41f01b1590544023f385f69b148bbc9c57577c58493c65d97e901d2eba30cbb292380e769
7
- data.tar.gz: 04a45aca352e95e2ef502ae084c1546f828a833bacbc18fb6a3ee053689aefad8b2cce6d79b891c4cc6ed4e30b0b4faf8c2238f6791700c0d88d38b48ab91fc1
6
+ metadata.gz: c75d4f211b12a0ba6a80911d86797317332343d36e293f4374612877c2e154ab963a45bc20a4916e8868c8c37b68c3d6d1716e97542ee7898c72622c539b648c
7
+ data.tar.gz: ced11a5b38856a0401f9380dcada04089ed5ac929f275a1bef34b13906944357c874ba7395e88a661cbcc791119920967c0c7736151c2c10dc1a328439e46545
data/CHANGELOG.md CHANGED
@@ -1,4 +1,14 @@
1
1
  # Changelog
2
+ 2.16
3
+ ---
4
+
5
+ - Remove deprecation for :dig and :[]
6
+
7
+ 2.15
8
+ ---
9
+
10
+ - Bump `faraday` to a minimum of `1.10` to resolve dependency issues
11
+
2
12
  2.14
3
13
  ---
4
14
 
@@ -1,5 +1,5 @@
1
1
  module RestfulResource
2
2
  class StrictOpenStruct < ::OpenStruct
3
- deprecate :dig, :[], deprecator: Deprecator.build
3
+ undef_method :dig, :[]
4
4
  end
5
5
  end
@@ -1,3 +1,3 @@
1
1
  module RestfulResource
2
- VERSION = '2.14.0'.freeze
2
+ VERSION = '2.16.0'.freeze
3
3
  end
@@ -9,13 +9,11 @@ require 'faraday/encoding'
9
9
  require 'active_support'
10
10
  require 'active_support/all'
11
11
  require 'resolv-replace'
12
- require_relative 'restful_resource/deprecator'
13
12
  require_relative 'restful_resource/version'
14
13
  require_relative 'restful_resource/null_logger'
15
14
  require_relative 'restful_resource/paginated_array'
16
15
  require_relative 'restful_resource/parameter_missing_error'
17
16
  require_relative 'restful_resource/resource_id_missing_error'
18
- require_relative 'restful_resource/strict_open_struct'
19
17
  require_relative 'restful_resource/open_object'
20
18
  require_relative 'restful_resource/response'
21
19
  require_relative 'restful_resource/request'
@@ -25,3 +23,4 @@ require_relative 'restful_resource/rails_validations'
25
23
  require_relative 'restful_resource/redirections'
26
24
  require_relative 'restful_resource/instrumentation'
27
25
  require_relative 'restful_resource/base'
26
+ require_relative 'restful_resource/strict_open_struct'
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
27
27
  spec.add_development_dependency 'rspec_junit_formatter'
28
28
 
29
29
  spec.add_dependency 'activesupport', '>= 6', '< 8'
30
- spec.add_dependency 'faraday', '~> 1.0'
30
+ spec.add_dependency 'faraday', '~> 1.10'
31
31
  spec.add_dependency 'faraday-cdn-metrics', '~> 0.2'
32
32
  spec.add_dependency 'faraday-encoding'
33
33
  spec.add_dependency 'faraday-http-cache', '~> 2.2'
@@ -4,18 +4,14 @@ RSpec.describe RestfulResource::StrictOpenStruct do
4
4
  let(:instance) { described_class.new(foo: 'bar') }
5
5
 
6
6
  describe '#dig' do
7
- it 'is deprecated' do
8
- expect { instance.dig(:foo) }.to output(
9
- /dig is deprecated and will be removed from restful_resource soon/
10
- ).to_stderr
7
+ it 'is not defined' do
8
+ expect { instance.dig(:foo) }.to raise_error(NoMethodError)
11
9
  end
12
10
  end
13
11
 
14
12
  describe '#[]' do
15
- it 'is deprecated' do
16
- expect { instance[:foo] }.to output(
17
- /\[\] is deprecated and will be removed from restful_resource soon/
18
- ).to_stderr
13
+ it 'is not defined' do
14
+ expect { instance[:foo] }.to raise_error(NoMethodError)
19
15
  end
20
16
  end
21
17
  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.14.0
4
+ version: 2.16.0
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: 2023-09-18 00:00:00.000000000 Z
12
+ date: 2024-03-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler
@@ -135,14 +135,14 @@ dependencies:
135
135
  requirements:
136
136
  - - "~>"
137
137
  - !ruby/object:Gem::Version
138
- version: '1.0'
138
+ version: '1.10'
139
139
  type: :runtime
140
140
  prerelease: false
141
141
  version_requirements: !ruby/object:Gem::Requirement
142
142
  requirements:
143
143
  - - "~>"
144
144
  - !ruby/object:Gem::Version
145
- version: '1.0'
145
+ version: '1.10'
146
146
  - !ruby/object:Gem::Dependency
147
147
  name: faraday-cdn-metrics
148
148
  requirement: !ruby/object:Gem::Requirement
@@ -266,7 +266,6 @@ files:
266
266
  - lib/restful_resource/associations.rb
267
267
  - lib/restful_resource/authorization.rb
268
268
  - lib/restful_resource/base.rb
269
- - lib/restful_resource/deprecator.rb
270
269
  - lib/restful_resource/http_client.rb
271
270
  - lib/restful_resource/instrumentation.rb
272
271
  - lib/restful_resource/null_logger.rb
@@ -297,7 +296,7 @@ homepage: http://www.github.com/carwow/restful_resource
297
296
  licenses:
298
297
  - MIT
299
298
  metadata: {}
300
- post_install_message:
299
+ post_install_message:
301
300
  rdoc_options: []
302
301
  require_paths:
303
302
  - lib
@@ -312,8 +311,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
312
311
  - !ruby/object:Gem::Version
313
312
  version: '0'
314
313
  requirements: []
315
- rubygems_version: 3.1.6
316
- signing_key:
314
+ rubygems_version: 3.4.19
315
+ signing_key:
317
316
  specification_version: 4
318
317
  summary: A simple activerecord inspired rest resource base class implemented using
319
318
  rest-client
@@ -1,25 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- module RestfulResource
4
- class Deprecator < ActiveSupport::Deprecation
5
- GEM_NAME = 'restful_resource'
6
-
7
- def self.build(horizon: 'soon')
8
- @deprecators ||= {}
9
- @deprecators["#{GEM_NAME}@#{horizon}"] ||= new(horizon)
10
- end
11
-
12
- def initialize(horizon)
13
- super(horizon, GEM_NAME)
14
-
15
- @app_deprecator = ActiveSupport::Deprecation.instance
16
- end
17
-
18
- # inherit the default configured behavior for the app
19
- delegate :behavior, to: :app_deprecator
20
-
21
- private
22
-
23
- attr_reader :app_deprecator
24
- end
25
- end