ncore 2.1.2 → 2.2.0
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 +6 -1
- data/lib/ncore.rb +1 -0
- data/lib/ncore/attributes.rb +6 -2
- data/lib/ncore/rails/module_fix.rb +17 -0
- data/lib/ncore/version.rb +1 -1
- data/ncore.gemspec +1 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4041e91acca8393f599c0efd5688d5ec04446447cf34487b813e2193ecf15677
|
4
|
+
data.tar.gz: 6308d1af6e0434158667015ee617f5f5f770f43814cf8b71de55c0956ba57db2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b7fc8be7b485530cf6160de45d5d129afa8413b0e15d82a32cfd20748aa932062ce3f6f3f16cddac658db0289f5629167c715cee8c17b0b39249546b1ad5b252
|
7
|
+
data.tar.gz: 8c441f05e37c0c09d1b82b9da092f0a2df9e48a158bffc516c5a999dcc1497d812b70d23fa4c78dc0055ab4a1e9a8b8b97a22e5feff2aa046ecbe72dc0c0136f
|
data/CHANGELOG.md
CHANGED
data/lib/ncore.rb
CHANGED
data/lib/ncore/attributes.rb
CHANGED
@@ -166,10 +166,14 @@ module NCore
|
|
166
166
|
end
|
167
167
|
|
168
168
|
|
169
|
-
class BigMoney <
|
169
|
+
class BigMoney < SimpleDelegator
|
170
|
+
|
171
|
+
def initialize(*args, **kwargs)
|
172
|
+
__setobj__(BigDecimal(*args, **kwargs))
|
173
|
+
end
|
170
174
|
|
171
175
|
def to_s
|
172
|
-
if (self % BigDecimal
|
176
|
+
if (self % BigDecimal('0.01')) == 0
|
173
177
|
'%.2f' % self
|
174
178
|
else
|
175
179
|
super
|
@@ -0,0 +1,17 @@
|
|
1
|
+
# ActiveSupport 6.0 changed :parent -> :module_parent
|
2
|
+
# This eliminates deprecation messages so everything works like v5.2 and prior.
|
3
|
+
|
4
|
+
module NCore
|
5
|
+
module ModuleFix
|
6
|
+
extend ActiveSupport::Concern
|
7
|
+
|
8
|
+
included do
|
9
|
+
alias :parent :module_parent
|
10
|
+
end
|
11
|
+
|
12
|
+
end
|
13
|
+
end
|
14
|
+
|
15
|
+
if Module.respond_to?(:module_parent)
|
16
|
+
Module.include NCore::ModuleFix
|
17
|
+
end
|
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 'activesupport', '>= 3.2', '< 6'
|
21
|
+
spec.add_dependency 'activesupport', '>= 3.2', '< 6.1'
|
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: 2.
|
4
|
+
version: 2.2.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: 2019-05-08 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -19,7 +19,7 @@ dependencies:
|
|
19
19
|
version: '3.2'
|
20
20
|
- - "<"
|
21
21
|
- !ruby/object:Gem::Version
|
22
|
-
version: '6'
|
22
|
+
version: '6.1'
|
23
23
|
type: :runtime
|
24
24
|
prerelease: false
|
25
25
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -29,7 +29,7 @@ dependencies:
|
|
29
29
|
version: '3.2'
|
30
30
|
- - "<"
|
31
31
|
- !ruby/object:Gem::Version
|
32
|
-
version: '6'
|
32
|
+
version: '6.1'
|
33
33
|
- !ruby/object:Gem::Dependency
|
34
34
|
name: excon
|
35
35
|
requirement: !ruby/object:Gem::Requirement
|
@@ -115,6 +115,7 @@ files:
|
|
115
115
|
- lib/ncore/rails/action_controller.rb
|
116
116
|
- lib/ncore/rails/active_model.rb
|
117
117
|
- lib/ncore/rails/log_subscriber.rb
|
118
|
+
- lib/ncore/rails/module_fix.rb
|
118
119
|
- lib/ncore/singleton_base.rb
|
119
120
|
- lib/ncore/ssl/ca-certificates.crt
|
120
121
|
- lib/ncore/util.rb
|
@@ -139,8 +140,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
139
140
|
- !ruby/object:Gem::Version
|
140
141
|
version: '0'
|
141
142
|
requirements: []
|
142
|
-
|
143
|
-
rubygems_version: 2.7.6
|
143
|
+
rubygems_version: 3.0.3
|
144
144
|
signing_key:
|
145
145
|
specification_version: 4
|
146
146
|
summary: NCore - Gem for building REST API clients
|