ncore 2.1.2 → 2.2.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: e5e3084a6206184b0d08f617ea39e25afa49f6f1021470b8a770031fd6b76616
4
- data.tar.gz: 7c44c6ec3d83c4055369244c0d31c81a4dfa51ec26f1db681fdba9ad73561c98
3
+ metadata.gz: 4041e91acca8393f599c0efd5688d5ec04446447cf34487b813e2193ecf15677
4
+ data.tar.gz: 6308d1af6e0434158667015ee617f5f5f770f43814cf8b71de55c0956ba57db2
5
5
  SHA512:
6
- metadata.gz: 5b2d70b6819652ae21e562342429f1879c9f27d2d96fa0c8825a778f47a588be641839a2c54ca3f97a4afc6f79be4737e7d6562c0922fe89d11ed2eae9c56546
7
- data.tar.gz: 3d2b6121d5f9e2fbb37160667e82146ef3849ddbed2c728f1fb351f10d3bb1507b026a6f4d04bfe8d55e9dff24df8ab2373147fb778a73aaa5ccca3f84eeb9bf
6
+ metadata.gz: b7fc8be7b485530cf6160de45d5d129afa8413b0e15d82a32cfd20748aa932062ce3f6f3f16cddac658db0289f5629167c715cee8c17b0b39249546b1ad5b252
7
+ data.tar.gz: 8c441f05e37c0c09d1b82b9da092f0a2df9e48a158bffc516c5a999dcc1497d812b70d23fa4c78dc0055ab4a1e9a8b8b97a22e5feff2aa046ecbe72dc0c0136f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,8 @@
1
+ #### 2.2.0
2
+
3
+ - Allow ActiveSupport 6.0
4
+ - Resolve deprecation messages on Ruby 2.6
5
+
1
6
  #### 2.1.2
2
7
 
3
8
  - Fix URL processing when frozen
@@ -78,4 +83,4 @@
78
83
 
79
84
  #### 1.0.0
80
85
 
81
- - Initial release
86
+ - Initial release
data/lib/ncore.rb CHANGED
@@ -12,3 +12,4 @@ end
12
12
 
13
13
  require 'ncore/rails/action_controller' if defined?(::ActionController)
14
14
  require 'ncore/rails/active_model' if defined?(::ActiveModel)
15
+ require 'ncore/rails/module_fix'
@@ -166,10 +166,14 @@ module NCore
166
166
  end
167
167
 
168
168
 
169
- class BigMoney < BigDecimal
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.new('0.01')) == 0
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
@@ -1,3 +1,3 @@
1
1
  module NCore
2
- VERSION = '2.1.2'
2
+ VERSION = '2.2.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 '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.1.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: 2018-05-16 00:00:00.000000000 Z
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
- rubyforge_project:
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