ncore 3.3.2 → 3.3.3

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: e01099b869ce4be69bdcd101bfa51241372f3618074547f58b417140505468d1
4
- data.tar.gz: 762499cfa2d0527e628f54acf3c541850dfc430cc96b8ed45d6a7fe2e813dea4
3
+ metadata.gz: c1bfad3aa6f47ff4917335016f0dc43e51617e68b932e064b50bc5fefa84c51d
4
+ data.tar.gz: d7a5385d7a62e4429e192ed032da3a205f5d74aaddc8e7961a9b19c52f413f6c
5
5
  SHA512:
6
- metadata.gz: bac55e24257dbfc697ff3c529aab817d851aa89e3439ccf74b79d4c199ec1877c5aadf93d1c50bb0e44bfed21c2ad29b5a411f13ff8282f4f9869db147639c30
7
- data.tar.gz: df661b5e833cbcb166d737515888de893e829984be45b760e3b6bcd99d1a0215f269fa6f1b971b3ec7542b0a40c91a9d22e606e6f70840c82a7f045dfc09ea0a
6
+ metadata.gz: e3bc26138793e56edf190fd010486a2e3e14e9559326d55251e2992ad518dc0c091523d23f27d2a21dc2351f9cadf4e8dc6e50e444ab5d183e158837702d41ce
7
+ data.tar.gz: cc000c1c0c60d559527080aae6d152b26b0281816fdb49d83b22c2b9f44f5f337c23dff0ecaabaa83efa7fdb6e7ff75ad371d47317e15502fc26db3ea88c001a
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ #### 3.3.3
2
+
3
+ - Handle recursion in #inspect
4
+
1
5
  #### 3.3.2
2
6
 
3
7
  - Ruby 3.0 compatibility
data/lib/ncore/util.rb CHANGED
@@ -62,7 +62,15 @@ module NCore
62
62
 
63
63
 
64
64
  def inspect
65
- "#<#{self.class}:0x#{'%016x'%self.object_id} id: #{id.inspect}, attribs: #{@attribs.except(:id).inspect}, metadata: #{metadata.inspect}>"
65
+ base = "#{self.class}:0x#{'%016x'%self.object_id} id: #{id.inspect}"
66
+ @@inspect_chain ||= []
67
+ return "#<#{base}, ...>" if @@inspect_chain.include? self
68
+ begin
69
+ @@inspect_chain.push self
70
+ "#<#{base}, attribs: #{@attribs.except(:id).inspect}, metadata: #{metadata.inspect}>"
71
+ ensure
72
+ @@inspect_chain.pop
73
+ end
66
74
  end
67
75
 
68
76
  end
data/lib/ncore/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module NCore
2
- VERSION = '3.3.2'
2
+ VERSION = '3.3.3'
3
3
  end
data/ncore.gemspec CHANGED
@@ -21,6 +21,6 @@ Gem::Specification.new do |spec|
21
21
  spec.add_dependency 'activemodel', '>= 5.2', '< 6.2'
22
22
  spec.add_dependency 'excon', '~> 0.32'
23
23
 
24
- spec.add_development_dependency "bundler", "~> 1.3"
24
+ spec.add_development_dependency "bundler"
25
25
  spec.add_development_dependency "rake"
26
26
  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.2
4
+ version: 3.3.3
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-23 00:00:00.000000000 Z
11
+ date: 2021-07-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -48,16 +48,16 @@ dependencies:
48
48
  name: bundler
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ">="
52
52
  - !ruby/object:Gem::Version
53
- version: '1.3'
53
+ version: '0'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ">="
59
59
  - !ruby/object:Gem::Version
60
- version: '1.3'
60
+ version: '0'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: rake
63
63
  requirement: !ruby/object:Gem::Requirement
@@ -141,7 +141,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
141
141
  - !ruby/object:Gem::Version
142
142
  version: '0'
143
143
  requirements: []
144
- rubygems_version: 3.0.9
144
+ rubygems_version: 3.2.15
145
145
  signing_key:
146
146
  specification_version: 4
147
147
  summary: NCore - Gem for building REST API clients