ncore 2.0.6 → 2.0.7
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/CHANGELOG.md +4 -0
- data/lib/ncore.rb +1 -0
- data/lib/ncore/rails/action_controller.rb +22 -0
- data/lib/ncore/version.rb +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 9e8ddfadecbc44cc598f232dd1a01eb6971943e6
|
|
4
|
+
data.tar.gz: 8fb58c11b5a129683a62e510f2cb4b24de754dbc
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: e1ecef6f44ffac66086639f6fb1ba9d6742c241f9f2f11c505361562249a1701d8f80bf5f7dbb38f961d296a142d9b87180b08e274edd3324c5a3ef03535acbd
|
|
7
|
+
data.tar.gz: 8009fa7beefffe6d43c55964580ceec6071e8f54f6d1f42d8f4441f24eddca82e419b678b96e1741908f7d70c2ec9fd24cf39ddbd15cfc4228dccc1df71a5e7f
|
data/CHANGELOG.md
CHANGED
data/lib/ncore.rb
CHANGED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
require 'action_controller'
|
|
2
|
+
|
|
3
|
+
module NCore
|
|
4
|
+
module ActionController
|
|
5
|
+
module Parameters
|
|
6
|
+
extend ActiveSupport::Concern
|
|
7
|
+
|
|
8
|
+
included do
|
|
9
|
+
alias :with_indifferent_access :to_h
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
end
|
|
13
|
+
end
|
|
14
|
+
end
|
|
15
|
+
|
|
16
|
+
|
|
17
|
+
if defined?(ActionController::Parameters)
|
|
18
|
+
acp = ActionController::Parameters.new
|
|
19
|
+
unless acp.respond_to? :with_indifferent_access
|
|
20
|
+
ActionController::Parameters.include NCore::ActionController::Parameters
|
|
21
|
+
end
|
|
22
|
+
end
|
data/lib/ncore/version.rb
CHANGED
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: 2.0.
|
|
4
|
+
version: 2.0.7
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Notioneer Team
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-
|
|
11
|
+
date: 2017-06-25 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: activesupport
|
|
@@ -112,6 +112,7 @@ files:
|
|
|
112
112
|
- lib/ncore/methods/find.rb
|
|
113
113
|
- lib/ncore/methods/find_single.rb
|
|
114
114
|
- lib/ncore/methods/update.rb
|
|
115
|
+
- lib/ncore/rails/action_controller.rb
|
|
115
116
|
- lib/ncore/rails/active_model.rb
|
|
116
117
|
- lib/ncore/rails/log_subscriber.rb
|
|
117
118
|
- lib/ncore/singleton_base.rb
|