ncore 3.2.1 → 3.3.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 +7 -1
- data/LICENSE +1 -1
- data/lib/ncore.rb +0 -1
- data/lib/ncore/attributes.rb +2 -0
- data/lib/ncore/exceptions.rb +0 -3
- data/lib/ncore/version.rb +1 -1
- data/ncore.gemspec +1 -1
- metadata +4 -5
- data/lib/ncore/rails/module_fix.rb +0 -19
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0104ef39fd536e1845266782c236e1a00af04c0c6187b62567f247f3558f51bd
|
4
|
+
data.tar.gz: 99668e3c3ee5b104f2ec649a6dce845821943c9b67e361d0721a64ea9e5e94f0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 257d7bd01c3f0c77b5b7c6f65d6bba245c8a7331627003ea1a72af9664eaf8a19026bc21df976c2499106f3701ef712a9b0a92b3754ec784468b9eb2783171b8
|
7
|
+
data.tar.gz: 2858e6b9cd9c067b41ebe4ba2968747db8553af7fe37c2a3e69abda1f22d60f8e841fce7e4b8dcf204ba6a5bbf6debf601fb18b111cc4a6f050ce47195042685
|
data/CHANGELOG.md
CHANGED
@@ -1,3 +1,9 @@
|
|
1
|
+
#### 3.3.0
|
2
|
+
|
3
|
+
- Allow headers: {} as part of params/attribs everywhere
|
4
|
+
- Drop ActiveModel <= 5.1
|
5
|
+
- Remove ValidationError
|
6
|
+
|
1
7
|
#### 3.2.1
|
2
8
|
|
3
9
|
DEPRECATION NOTICE
|
@@ -158,4 +164,4 @@ Other changes
|
|
158
164
|
|
159
165
|
#### 1.0.0
|
160
166
|
|
161
|
-
- Initial release
|
167
|
+
- Initial release
|
data/LICENSE
CHANGED
data/lib/ncore.rb
CHANGED
data/lib/ncore/attributes.rb
CHANGED
@@ -66,6 +66,7 @@ module NCore
|
|
66
66
|
def parse_request_params(params={}, opts={})
|
67
67
|
params = params.with_indifferent_access
|
68
68
|
req = params.delete(:request)
|
69
|
+
hdr = params.delete(:headers)
|
69
70
|
creds = params.delete(:credentials)
|
70
71
|
cache = params.delete(:cache)
|
71
72
|
if opts[:json_root]
|
@@ -78,6 +79,7 @@ module NCore
|
|
78
79
|
o = params
|
79
80
|
end
|
80
81
|
o[:request] = req if req
|
82
|
+
o[:headers] = hdr if hdr
|
81
83
|
o[:credentials] = creds if creds
|
82
84
|
o[:cache] = cache if cache
|
83
85
|
o
|
data/lib/ncore/exceptions.rb
CHANGED
data/lib/ncore/version.rb
CHANGED
data/ncore.gemspec
CHANGED
@@ -18,7 +18,7 @@ Gem::Specification.new do |spec|
|
|
18
18
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
19
19
|
spec.require_paths = ["lib"]
|
20
20
|
|
21
|
-
spec.add_dependency 'activemodel', '>=
|
21
|
+
spec.add_dependency 'activemodel', '>= 5.2', '< 6.2'
|
22
22
|
spec.add_dependency 'excon', '~> 0.32'
|
23
23
|
|
24
24
|
spec.add_development_dependency "bundler", "~> 1.3"
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ncore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Notioneer Team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-05-15 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activemodel
|
@@ -16,7 +16,7 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '5.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
22
|
version: '6.2'
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
requirements:
|
27
27
|
- - ">="
|
28
28
|
- !ruby/object:Gem::Version
|
29
|
-
version: '
|
29
|
+
version: '5.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
32
|
version: '6.2'
|
@@ -117,7 +117,6 @@ files:
|
|
117
117
|
- lib/ncore/rails/action_controller.rb
|
118
118
|
- lib/ncore/rails/active_model.rb
|
119
119
|
- lib/ncore/rails/log_subscriber.rb
|
120
|
-
- lib/ncore/rails/module_fix.rb
|
121
120
|
- lib/ncore/singleton_base.rb
|
122
121
|
- lib/ncore/util.rb
|
123
122
|
- lib/ncore/version.rb
|
@@ -1,19 +0,0 @@
|
|
1
|
-
# ActiveSupport 6.0 changed :parent -> :module_parent
|
2
|
-
# This continues to support AS <= 5.2.
|
3
|
-
|
4
|
-
module NCore
|
5
|
-
module ModuleFix
|
6
|
-
extend ActiveSupport::Concern
|
7
|
-
|
8
|
-
included do
|
9
|
-
alias :module_parent :parent
|
10
|
-
alias :module_parent_name :parent_name
|
11
|
-
alias :module_parents :parents
|
12
|
-
end
|
13
|
-
|
14
|
-
end
|
15
|
-
end
|
16
|
-
|
17
|
-
unless Module.respond_to?(:module_parent)
|
18
|
-
Module.include NCore::ModuleFix
|
19
|
-
end
|