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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1f061651e85ee19cffb412688d5429b4c109578528fe8ca1f0ab4abd8aef81ea
4
- data.tar.gz: 05455525efc187af58d5d29694cf9de6a2e54c196bd028c0c10a3b8afaaf9315
3
+ metadata.gz: 0104ef39fd536e1845266782c236e1a00af04c0c6187b62567f247f3558f51bd
4
+ data.tar.gz: 99668e3c3ee5b104f2ec649a6dce845821943c9b67e361d0721a64ea9e5e94f0
5
5
  SHA512:
6
- metadata.gz: 86bbbbd2a22a6f03cd495d68b0be9168300522b51415bd5d2170f9e4d80d2282beb7873a8a0ea9f1b752e54c7849d00f081bceb43edfda938dfae7fd087e2887
7
- data.tar.gz: 612e7dad8c5be1d334a4989f8954ab08724c6401bf05531deec4a0b58675ebb5e86515d05dfb47553825af39a4fbc860b2b75efba5143fd30d0895c845016358
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
@@ -1,4 +1,4 @@
1
- Copyright (c) 2014-2020 Notioneer, Inc.
1
+ Copyright (c) 2014-2021 Notioneer, Inc.
2
2
 
3
3
  MIT License
4
4
 
data/lib/ncore.rb CHANGED
@@ -40,4 +40,3 @@ end
40
40
 
41
41
  require 'ncore/rails/action_controller' if defined?(::ActionController)
42
42
  require 'ncore/rails/active_model'
43
- require 'ncore/rails/module_fix'
@@ -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
@@ -44,9 +44,6 @@ module NCore
44
44
  end
45
45
 
46
46
  class BulkActionError < QueryError ; end
47
-
48
- # DEPRECATED; to be removed in v3.1
49
- class ValidationError < QueryError ; end
50
47
  INCL
51
48
  end
52
49
 
data/lib/ncore/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module NCore
2
- VERSION = '3.2.1'
2
+ VERSION = '3.3.0'
3
3
  end
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', '>= 4.2', '< 6.2'
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.2.1
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: 2020-12-29 00:00:00.000000000 Z
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: '4.2'
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: '4.2'
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