rubytree 2.2.0 → 2.2.1

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 4453bf8edf542985ddd52c289e7194263a5251cedd9ffd0655248a8c13585dd0
4
- data.tar.gz: 67a85efeb8483aecdd9a576708a92eee8e333103b34b3ed04fcf748b73f1a07f
3
+ metadata.gz: 40fad408b86296928f63867c64413a015df9ad82c370db702f2d553dffd7378a
4
+ data.tar.gz: e688cb8c355642973f61cbbf46012ae525f83284f5bb97a1bbb2f53660b8481f
5
5
  SHA512:
6
- metadata.gz: 66220dddff61b9bb9198c72530ae6a6e66d0d66c713236e1aca5b44f77818798acaae9e4f2d6356d95cf0872f219f3c74d7b3e21e2b570a4e6d285499a6dc582
7
- data.tar.gz: e15ecf207beb379c10a298dc1202c8bf9ec5ad3b4e6538793b7b139a64af8fa8b2883b8155dbd222e6b2d304fc15bf6b32d0a12088ee27fcf9c23ac75d67186e
6
+ metadata.gz: 3cc82139dde41db5c3e3cd3a158dd722b8f2915282cfaa28184f6790a48c1a023abf75260474837da9e768a28a763ad71f8d2f1f896503aeb9417813099093ea
7
+ data.tar.gz: f4c04d7f4f5a0c4e031d8d2513ef0a3fbc94cad374b4a749f2b38334149bd97d62c1e57c0d1a79765ee3daa6716af4399bbd5dcd62baf630ac33a6905562d550
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubytree (2.2.0)
5
- json (~> 2.0, > 2.9)
4
+ rubytree (2.2.1)
5
+ json (~> 2.0, >= 2.19.9)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -11,7 +11,7 @@ GEM
11
11
  date (3.4.1)
12
12
  diff-lcs (1.5.1)
13
13
  docile (1.4.1)
14
- json (2.9.1)
14
+ json (2.21.1)
15
15
  language_server-protocol (3.17.0.3)
16
16
  parallel (1.26.3)
17
17
  parser (3.3.6.0)
@@ -73,7 +73,7 @@ GEM
73
73
  unicode-display_width (3.1.2)
74
74
  unicode-emoji (~> 4.0, >= 4.0.4)
75
75
  unicode-emoji (4.0.4)
76
- yard (0.9.37)
76
+ yard (0.9.44)
77
77
 
78
78
  PLATFORMS
79
79
  ruby
@@ -91,7 +91,7 @@ DEPENDENCIES
91
91
  simplecov (~> 0.22)
92
92
  simplecov-lcov (~> 0.8)
93
93
  test-unit (~> 3.6)
94
- yard (~> 0.0, >= 0.9.37)
94
+ yard (~> 0.0, >= 0.9.44)
95
95
 
96
96
  BUNDLED WITH
97
97
  2.3.4
data/History.md CHANGED
@@ -1,5 +1,11 @@
1
1
  # History of Changes
2
2
 
3
+ ### 2.2.1 / 2026-07-24
4
+
5
+ * Bump the `json` runtime dependency to 2.19.9+, fixing a heap buffer
6
+ overflow when generating to a streamed IO
7
+ ([CVE-2026-54696](https://github.com/ruby/json/security/advisories/GHSA-x2f5-4prf-w687)).
8
+
3
9
  ### 2.2.0 / 2026-02-06
4
10
 
5
11
  * Prevent cycles by rejecting attempts to add an ancestor as a child.
data/lib/tree/version.rb CHANGED
@@ -4,7 +4,7 @@
4
4
  #
5
5
  # Author:: Anupam Sengupta (anupamsg@gmail.com)
6
6
  #
7
- # Copyright (c) 2012-2024 Anupam Sengupta. All rights reserved.
7
+ # Copyright (c) 2012-2026 Anupam Sengupta. All rights reserved.
8
8
  #
9
9
  # Redistribution and use in source and binary forms, with or without
10
10
  # modification, are permitted provided that the following conditions are met:
@@ -35,5 +35,5 @@
35
35
 
36
36
  module Tree
37
37
  # Rubytree Package Version
38
- VERSION = '2.2.0'
38
+ VERSION = '2.2.1'
39
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubytree
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.2.0
4
+ version: 2.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anupam Sengupta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2026-02-06 00:00:00.000000000 Z
11
+ date: 2026-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -17,9 +17,9 @@ dependencies:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
19
  version: '2.0'
20
- - - ">"
20
+ - - ">="
21
21
  - !ruby/object:Gem::Version
22
- version: '2.9'
22
+ version: 2.19.9
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -27,9 +27,9 @@ dependencies:
27
27
  - - "~>"
28
28
  - !ruby/object:Gem::Version
29
29
  version: '2.0'
30
- - - ">"
30
+ - - ">="
31
31
  - !ruby/object:Gem::Version
32
- version: '2.9'
32
+ version: 2.19.9
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -199,7 +199,7 @@ dependencies:
199
199
  version: '0.0'
200
200
  - - ">="
201
201
  - !ruby/object:Gem::Version
202
- version: 0.9.37
202
+ version: 0.9.44
203
203
  type: :development
204
204
  prerelease: false
205
205
  version_requirements: !ruby/object:Gem::Requirement
@@ -209,7 +209,7 @@ dependencies:
209
209
  version: '0.0'
210
210
  - - ">="
211
211
  - !ruby/object:Gem::Version
212
- version: 0.9.37
212
+ version: 0.9.44
213
213
  description: |2
214
214
 
215
215
  RubyTree is a Ruby implementation of the generic tree data structure. It
@@ -258,7 +258,6 @@ files:
258
258
  - lib/tree/utils/tree_merge_handler.rb
259
259
  - lib/tree/utils/utils.rb
260
260
  - lib/tree/version.rb
261
- - rubytree.gemspec
262
261
  - spec/spec_helper.rb
263
262
  - spec/tree_spec.rb
264
263
  - test/run_test.rb
@@ -305,7 +304,7 @@ post_install_message: |2
305
304
  ========================================================================
306
305
  rdoc_options:
307
306
  - "--title"
308
- - 'Rubytree Documentation: rubytree-2.2.0'
307
+ - 'Rubytree Documentation: rubytree-2.2.1'
309
308
  - "--main"
310
309
  - README.md
311
310
  - "--quiet"
data/rubytree.gemspec DELETED
@@ -1,114 +0,0 @@
1
- #
2
- # gemspec for the rubytree gem.
3
- #
4
- # Author:: Anupam Sengupta (anupamsg@gmail.com)
5
- #
6
- # Copyright (c) 2012-2024 Anupam Sengupta. All rights reserved.
7
- #
8
- # frozen_string_literal: true
9
-
10
- require File.join(__dir__, '/lib/tree/version')
11
-
12
- Gem::Specification.new do |s|
13
- s.name = 'rubytree'
14
- s.version = Tree::VERSION
15
- s.license = 'BSD-2-Clause'
16
- # NOTE: s.date should NOT be assigned. It is automatically set to pkg date.
17
- s.platform = Gem::Platform::RUBY
18
- s.author = 'Anupam Sengupta'
19
- s.email = 'anupamsg@gmail.com'
20
- s.homepage = 'http://rubytree.anupamsg.me'
21
-
22
- s.required_ruby_version = '>=2.7'
23
-
24
- s.summary = 'A generic tree data structure for Ruby.'
25
-
26
- s.description = <<-END_DESC
27
-
28
- RubyTree is a Ruby implementation of the generic tree data structure. It
29
- provides simple APIs to store named nodes, and to access, modify, and
30
- traverse the tree.
31
-
32
- The data model is node-centric, where nodes in the tree are the primary
33
- structural elements. It supports all common tree-traversal methods (pre-order,
34
- post-order, and breadth first).
35
-
36
- RubyTree mixes in the Enumerable and Comparable modules and behaves like a
37
- standard Ruby collection (iteration, comparison, etc.).
38
-
39
- RubyTree also includes a binary tree implementation, which provides in-order
40
- node traversal besides the other methods.
41
-
42
- RubyTree can import from and export to JSON, and supports Ruby’s object
43
- marshaling.
44
- END_DESC
45
-
46
- s.metadata = {
47
- 'rubygems_mfa_required' => 'true',
48
- 'github_repo' => 'ssh://github.com/evolve75/rubytree'
49
- }
50
-
51
- s.files = Dir['lib/**/*.rb'] # The actual code
52
- s.files += Dir['[A-Z]*'] # Various documentation files
53
- s.files += Dir['test/**/*.rb'] # Test cases
54
- s.files += Dir['spec/**/*.rb'] # Rspec Test cases
55
- s.files += Dir['examples/**/*.rb'] # Examples
56
-
57
- # @todo: Check if this is really needed.
58
- s.files += ['.gemtest'] # Support for gem-test
59
-
60
- s.require_paths = ['lib']
61
-
62
- s.extra_rdoc_files = %w[README.md LICENSE.md API-CHANGES.md History.md]
63
- s.rdoc_options = ['--title', "Rubytree Documentation: #{s.name}-#{s.version}",
64
- '--main', 'README.md',
65
- '--quiet']
66
-
67
- s.add_runtime_dependency 'json', '~> 2.0', '> 2.9'
68
-
69
- # NOTE: Rake is added as a development and test dependency in the Gemfile.
70
- s.add_development_dependency 'bundler', '~> 2.3'
71
- s.add_development_dependency 'rake', '~> 13.2'
72
- s.add_development_dependency 'rdoc', '~> 6.10'
73
- s.add_development_dependency 'rspec', '~> 3.0', '>= 3.13'
74
- s.add_development_dependency 'rtagstask', '~> 0.0.4'
75
- s.add_development_dependency 'rubocop', '~> 1.69'
76
- s.add_development_dependency 'rubocop-rake', '~> 0.6'
77
- s.add_development_dependency 'rubocop-rspec', '~> 3.3'
78
- s.add_development_dependency 'simplecov', '~> 0.22'
79
- s.add_development_dependency 'simplecov-lcov', '~> 0.8'
80
- s.add_development_dependency 'test-unit', '~> 3.6'
81
- s.add_development_dependency 'yard', '~> 0.0', '>= 0.9.37'
82
-
83
- s.post_install_message = <<-END_MESSAGE
84
- ========================================================================
85
- Thank you for installing RubyTree.
86
-
87
- Note::
88
- - 2.1.1 is a minor update that updates all dependencies and
89
- Updates the guard clause for creating a tree from a hash.
90
-
91
- - 2.1.0 is a minor update that brings all libraries to their
92
- latest stable versions. This version no longer supports
93
- Ruby 2.6 (minimum requirement is now >= 2.7).
94
-
95
- - 2.0.0 is a major release with BREAKING API changes.
96
- See `API-CHANGES.md` for details.
97
-
98
- - `Tree::TreeNode#depth` method has been removed (it was broken).
99
-
100
- - Support for `CamelCase` methods names has bee removed.
101
-
102
- - The predicate methods no longer have `is_` or `has_` prefixes. However,
103
- aliases with these prefixes exist to support existing client code.
104
-
105
- - Use of integers as node names does not require the optional
106
- `num_as_name` flag.
107
-
108
- - `structured_warnings` is no longer a dependency.
109
-
110
- - Explicit support for rbx Ruby has been removed.
111
-
112
- ========================================================================
113
- END_MESSAGE
114
- end