ncore 3.3.0 → 3.3.1

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: 0104ef39fd536e1845266782c236e1a00af04c0c6187b62567f247f3558f51bd
4
- data.tar.gz: 99668e3c3ee5b104f2ec649a6dce845821943c9b67e361d0721a64ea9e5e94f0
3
+ metadata.gz: 07e96bdc957fc537987137e4029761a2783ddc947de794cf95e90234fa9adda3
4
+ data.tar.gz: eace234486547704df6dcdad2963fb4f2d7cab5de6effbdb7f47a9889fc73737
5
5
  SHA512:
6
- metadata.gz: 257d7bd01c3f0c77b5b7c6f65d6bba245c8a7331627003ea1a72af9664eaf8a19026bc21df976c2499106f3701ef712a9b0a92b3754ec784468b9eb2783171b8
7
- data.tar.gz: 2858e6b9cd9c067b41ebe4ba2968747db8553af7fe37c2a3e69abda1f22d60f8e841fce7e4b8dcf204ba6a5bbf6debf601fb18b111cc4a6f050ce47195042685
6
+ metadata.gz: 6cff9f32d5f2eb0c79bb15e05e1e60384e4a13ebb9eaf8dc750ada0cb4d49e093ffb0692ef6530f8be672bf53280816f725095496911c00453fefcc19d771309
7
+ data.tar.gz: c4099d3db77792c8775e3ce1ba215203f896f03ca549401c70d3f95ee0bf4877eaa3b9a6404929b55f2d48dfafb6f562c64cf3f85b19f7cd3a9b26084b58fc86
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ #### 3.3.1
2
+
3
+ - Fix module_parent when using ActiveSupport 5.2
4
+
1
5
  #### 3.3.0
2
6
 
3
7
  - Allow headers: {} as part of params/attribs everywhere
data/lib/ncore.rb CHANGED
@@ -40,3 +40,4 @@ 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'
@@ -0,0 +1,19 @@
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
data/lib/ncore/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module NCore
2
- VERSION = '3.3.0'
2
+ VERSION = '3.3.1'
3
3
  end
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.3.0
4
+ version: 3.3.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Notioneer Team
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-15 00:00:00.000000000 Z
11
+ date: 2021-05-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -117,6 +117,7 @@ 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
120
121
  - lib/ncore/singleton_base.rb
121
122
  - lib/ncore/util.rb
122
123
  - lib/ncore/version.rb