restful_resource 2.15.0 → 2.17.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +10 -0
- data/lib/restful_resource/base.rb +2 -0
- data/lib/restful_resource/railtie.rb +7 -0
- data/lib/restful_resource/strict_open_struct.rb +1 -1
- data/lib/restful_resource/version.rb +1 -1
- data/lib/restful_resource.rb +2 -2
- metadata +7 -7
- data/lib/restful_resource/deprecator.rb +0 -25
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4f1e1688884fd8954caa9da4cef1a9d2c3a1e294ded09414ce82a3865cf40e30
|
4
|
+
data.tar.gz: cb8672227647b41612c0a6a9ba739dde8705fb353369347106b037cc4c2a45c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 676a02c4acb372b64b6a82e628cef146a2043709cecb56a9819e37ce253d15af0f386db2a9d6e08a5c9b02d5e7e8895b61e88af7065f560c941ccad1400a8daa
|
7
|
+
data.tar.gz: e5ebf7348404ce117ac51963c23969754adbc144fbd97cc8ee4a967a80fe8c0a1a162ce55824800f5afd321167efe240fdb97226d05ded37fb74ba67209d6f4d
|
data/CHANGELOG.md
CHANGED
data/lib/restful_resource.rb
CHANGED
@@ -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,5 @@ 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
|
+
require_relative 'restful_resource/railtie' if defined?(Rails::Railtie)
|
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.
|
4
|
+
version: 2.17.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: 2024-
|
12
|
+
date: 2024-03-05 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: bundler
|
@@ -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
|
@@ -274,6 +273,7 @@ files:
|
|
274
273
|
- lib/restful_resource/paginated_array.rb
|
275
274
|
- lib/restful_resource/parameter_missing_error.rb
|
276
275
|
- lib/restful_resource/rails_validations.rb
|
276
|
+
- lib/restful_resource/railtie.rb
|
277
277
|
- lib/restful_resource/redirections.rb
|
278
278
|
- lib/restful_resource/request.rb
|
279
279
|
- lib/restful_resource/resource_id_missing_error.rb
|
@@ -297,7 +297,7 @@ homepage: http://www.github.com/carwow/restful_resource
|
|
297
297
|
licenses:
|
298
298
|
- MIT
|
299
299
|
metadata: {}
|
300
|
-
post_install_message:
|
300
|
+
post_install_message:
|
301
301
|
rdoc_options: []
|
302
302
|
require_paths:
|
303
303
|
- lib
|
@@ -312,8 +312,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
312
312
|
- !ruby/object:Gem::Version
|
313
313
|
version: '0'
|
314
314
|
requirements: []
|
315
|
-
rubygems_version: 3.
|
316
|
-
signing_key:
|
315
|
+
rubygems_version: 3.4.19
|
316
|
+
signing_key:
|
317
317
|
specification_version: 4
|
318
318
|
summary: A simple activerecord inspired rest resource base class implemented using
|
319
319
|
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
|