rubytree 2.1.0 → 2.1.1

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: 1c90d0d876661cab5c2210782b24c358f170fb2239b91c828a3612435325c119
4
- data.tar.gz: a3c1e6ab2c8ad91879c0942e080e0a8639638fced02d99f438fb1207e5273e31
3
+ metadata.gz: 8718114c71cea254b3c2a5a05c9d543e303fdc9ebebdc5a2a82f442389f71c4a
4
+ data.tar.gz: 3056e228bd10659486e4d3d41d5704bb08f4172c764adfaf7fb5e87db573973a
5
5
  SHA512:
6
- metadata.gz: 957cc217496a640e2aed6bef109dc8c0592949b3ee00f2646b478cda19ad2cb16c19e95441d4cfee4889086b3ea74f5ac596e10f167c6d4628b10027bf45b9ae
7
- data.tar.gz: 5b0efb60c6da1e26d87bd80137f891dfcab84095eb242e8de49e14b957c4eccc83acd24fffce92fd710a7eb9315c9e94c462788eb85850e245b687a19848f6e3
6
+ metadata.gz: 76b2a2e9aea0042ad632081d32279c5da9eee6734b6bb0f2963689d0ef9ccde74ae6b4ac0ade8c3347a310988e86ff36456a02cf28d2babd2282123f3ea21cbe
7
+ data.tar.gz: 93eafb68eb8d943a7b0a7c7b34ef105aea8999696aeb77975017739f10576689c4905a871c46ed9f95110958e8a757ff62cdfc3d353ef56498f3749ccac44bba
data/Gemfile.lock CHANGED
@@ -1,79 +1,79 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubytree (2.1.0)
5
- json (~> 2.0, > 2.3.1)
4
+ rubytree (2.1.1)
5
+ json (~> 2.0, > 2.9)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
9
9
  specs:
10
10
  ast (2.4.2)
11
+ date (3.4.1)
11
12
  diff-lcs (1.5.1)
12
13
  docile (1.4.1)
13
- json (2.7.2)
14
+ json (2.9.1)
14
15
  language_server-protocol (3.17.0.3)
15
- parallel (1.26.2)
16
- parser (3.3.4.2)
16
+ parallel (1.26.3)
17
+ parser (3.3.6.0)
17
18
  ast (~> 2.4.1)
18
19
  racc
19
- power_assert (2.0.3)
20
- psych (5.1.2)
20
+ power_assert (2.0.4)
21
+ psych (5.2.2)
22
+ date
21
23
  stringio
22
24
  racc (1.8.1)
23
25
  rainbow (3.1.1)
24
26
  rake (13.2.1)
25
- rdoc (6.7.0)
27
+ rdoc (6.10.0)
26
28
  psych (>= 4.0.0)
27
- regexp_parser (2.9.2)
28
- rexml (3.3.5)
29
- strscan
29
+ regexp_parser (2.9.3)
30
30
  rspec (3.13.0)
31
31
  rspec-core (~> 3.13.0)
32
32
  rspec-expectations (~> 3.13.0)
33
33
  rspec-mocks (~> 3.13.0)
34
- rspec-core (3.13.0)
34
+ rspec-core (3.13.2)
35
35
  rspec-support (~> 3.13.0)
36
- rspec-expectations (3.13.1)
36
+ rspec-expectations (3.13.3)
37
37
  diff-lcs (>= 1.2.0, < 2.0)
38
38
  rspec-support (~> 3.13.0)
39
- rspec-mocks (3.13.1)
39
+ rspec-mocks (3.13.2)
40
40
  diff-lcs (>= 1.2.0, < 2.0)
41
41
  rspec-support (~> 3.13.0)
42
- rspec-support (3.13.1)
42
+ rspec-support (3.13.2)
43
43
  rtags (0.97)
44
44
  rtagstask (0.0.4)
45
45
  rtags (> 0.0.0)
46
- rubocop (1.65.1)
46
+ rubocop (1.69.2)
47
47
  json (~> 2.3)
48
48
  language_server-protocol (>= 3.17.0)
49
49
  parallel (~> 1.10)
50
50
  parser (>= 3.3.0.2)
51
51
  rainbow (>= 2.2.2, < 4.0)
52
- regexp_parser (>= 2.4, < 3.0)
53
- rexml (>= 3.2.5, < 4.0)
54
- rubocop-ast (>= 1.31.1, < 2.0)
52
+ regexp_parser (>= 2.9.3, < 3.0)
53
+ rubocop-ast (>= 1.36.2, < 2.0)
55
54
  ruby-progressbar (~> 1.7)
56
- unicode-display_width (>= 2.4.0, < 3.0)
57
- rubocop-ast (1.32.0)
55
+ unicode-display_width (>= 2.4.0, < 4.0)
56
+ rubocop-ast (1.37.0)
58
57
  parser (>= 3.3.1.0)
59
58
  rubocop-rake (0.6.0)
60
59
  rubocop (~> 1.0)
61
- rubocop-rspec (3.0.4)
60
+ rubocop-rspec (3.3.0)
62
61
  rubocop (~> 1.61)
63
62
  ruby-progressbar (1.13.0)
64
63
  simplecov (0.22.0)
65
64
  docile (~> 1.1)
66
65
  simplecov-html (~> 0.11)
67
66
  simplecov_json_formatter (~> 0.1)
68
- simplecov-html (0.12.3)
67
+ simplecov-html (0.13.1)
69
68
  simplecov-lcov (0.8.0)
70
69
  simplecov_json_formatter (0.1.4)
71
- stringio (3.1.1)
72
- strscan (3.1.0)
73
- test-unit (3.6.2)
70
+ stringio (3.1.2)
71
+ test-unit (3.6.7)
74
72
  power_assert
75
- unicode-display_width (2.5.0)
76
- yard (0.9.36)
73
+ unicode-display_width (3.1.2)
74
+ unicode-emoji (~> 4.0, >= 4.0.4)
75
+ unicode-emoji (4.0.4)
76
+ yard (0.9.37)
77
77
 
78
78
  PLATFORMS
79
79
  ruby
@@ -81,17 +81,17 @@ PLATFORMS
81
81
  DEPENDENCIES
82
82
  bundler (~> 2.3)
83
83
  rake (~> 13.2)
84
- rdoc (~> 6.7)
85
- rspec (~> 3.0, > 3.10)
84
+ rdoc (~> 6.10)
85
+ rspec (~> 3.0, >= 3.13)
86
86
  rtagstask (~> 0.0.4)
87
- rubocop (~> 1.65)
87
+ rubocop (~> 1.69)
88
88
  rubocop-rake (~> 0.6)
89
- rubocop-rspec (~> 3.0)
89
+ rubocop-rspec (~> 3.3)
90
90
  rubytree!
91
91
  simplecov (~> 0.22)
92
92
  simplecov-lcov (~> 0.8)
93
93
  test-unit (~> 3.6)
94
- yard (~> 0.0, >= 0.9.36)
94
+ yard (~> 0.0, >= 0.9.37)
95
95
 
96
96
  BUNDLED WITH
97
97
  2.3.4
data/History.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # History of Changes
2
2
 
3
+ ### 2.1.1 / 2024-12-19
4
+
5
+ * 2.1.1 is a minor update that updates all dependencies and updates the guard
6
+ clause for creating a tree from a hash.
7
+
3
8
  ### 2.1.0 / 2024-08-12
4
9
 
5
10
  * Minimum Ruby version has been bumped to 2.7. This is needed to use the
data/README.md CHANGED
@@ -231,6 +231,9 @@ A big thanks to the following contributors for helping improve **RubyTree**:
231
231
  specialized tree nodes (sub-classes of `Tree::TreeNode`).
232
232
  13. [Jakub Pavlik](https://github.com/igneus) for fixing the creation of
233
233
  detached copies of unclonable objects such as `:symbol`, `true|false`, etc.
234
+ 14. [bghalami-rc](https://github.com/bghalami-rc) for updating the guard clause
235
+ in the `from_hash` method.
236
+
234
237
 
235
238
  ## LICENSE: ##
236
239
 
@@ -106,7 +106,8 @@ module Tree
106
106
 
107
107
  root, children = hash.first
108
108
 
109
- raise ArgumentError, 'Invalid child. Must be nil or hash.' unless [Hash, NilClass].include?(children.class)
109
+ raise ArgumentError, 'Invalid child. Must be nil or hash.'\
110
+ unless [Hash, NilClass].any? { |c| children.is_a? c }
110
111
 
111
112
  node = new(*root)
112
113
  node.add_from_hash(children) unless children.nil?
data/lib/tree/version.rb CHANGED
@@ -35,5 +35,5 @@
35
35
 
36
36
  module Tree
37
37
  # Rubytree Package Version
38
- VERSION = '2.1.0'
38
+ VERSION = '2.1.1'
39
39
  end
data/rubytree.gemspec CHANGED
@@ -63,27 +63,30 @@ Gem::Specification.new do |s|
63
63
  '--main', 'README.md',
64
64
  '--quiet']
65
65
 
66
- s.add_runtime_dependency 'json', '~> 2.0', '> 2.3.1'
66
+ s.add_runtime_dependency 'json', '~> 2.0', '> 2.9'
67
67
 
68
68
  # NOTE: Rake is added as a development and test dependency in the Gemfile.
69
69
  s.add_development_dependency 'bundler', '~> 2.3'
70
70
  s.add_development_dependency 'rake', '~> 13.2'
71
- s.add_development_dependency 'rdoc', '~> 6.7'
72
- s.add_development_dependency 'rspec', '~> 3.0', '> 3.10'
71
+ s.add_development_dependency 'rdoc', '~> 6.10'
72
+ s.add_development_dependency 'rspec', '~> 3.0', '>= 3.13'
73
73
  s.add_development_dependency 'rtagstask', '~> 0.0.4'
74
- s.add_development_dependency 'rubocop', '~> 1.65'
74
+ s.add_development_dependency 'rubocop', '~> 1.69'
75
75
  s.add_development_dependency 'rubocop-rake', '~> 0.6'
76
- s.add_development_dependency 'rubocop-rspec', '~> 3.0'
76
+ s.add_development_dependency 'rubocop-rspec', '~> 3.3'
77
77
  s.add_development_dependency 'simplecov', '~> 0.22'
78
78
  s.add_development_dependency 'simplecov-lcov', '~> 0.8'
79
79
  s.add_development_dependency 'test-unit', '~> 3.6'
80
- s.add_development_dependency 'yard', '~> 0.0', '>= 0.9.36'
80
+ s.add_development_dependency 'yard', '~> 0.0', '>= 0.9.37'
81
81
 
82
82
  s.post_install_message = <<-END_MESSAGE
83
83
  ========================================================================
84
84
  Thank you for installing RubyTree.
85
85
 
86
86
  Note::
87
+ - 2.1.1 is a minor update that updates all dependencies and
88
+ Updates the guard clause for creating a tree from a hash.
89
+
87
90
  - 2.1.0 is a minor update that brings all libraries to their
88
91
  latest stable versions. This version no longer supports
89
92
  Ruby 2.6 (minimum requirement is now >= 2.7).
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.1.0
4
+ version: 2.1.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: 2024-08-12 00:00:00.000000000 Z
11
+ date: 2024-12-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -19,7 +19,7 @@ dependencies:
19
19
  version: '2.0'
20
20
  - - ">"
21
21
  - !ruby/object:Gem::Version
22
- version: 2.3.1
22
+ version: '2.9'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
@@ -29,7 +29,7 @@ dependencies:
29
29
  version: '2.0'
30
30
  - - ">"
31
31
  - !ruby/object:Gem::Version
32
- version: 2.3.1
32
+ version: '2.9'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: bundler
35
35
  requirement: !ruby/object:Gem::Requirement
@@ -64,14 +64,14 @@ dependencies:
64
64
  requirements:
65
65
  - - "~>"
66
66
  - !ruby/object:Gem::Version
67
- version: '6.7'
67
+ version: '6.10'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
72
  - - "~>"
73
73
  - !ruby/object:Gem::Version
74
- version: '6.7'
74
+ version: '6.10'
75
75
  - !ruby/object:Gem::Dependency
76
76
  name: rspec
77
77
  requirement: !ruby/object:Gem::Requirement
@@ -79,9 +79,9 @@ dependencies:
79
79
  - - "~>"
80
80
  - !ruby/object:Gem::Version
81
81
  version: '3.0'
82
- - - ">"
82
+ - - ">="
83
83
  - !ruby/object:Gem::Version
84
- version: '3.10'
84
+ version: '3.13'
85
85
  type: :development
86
86
  prerelease: false
87
87
  version_requirements: !ruby/object:Gem::Requirement
@@ -89,9 +89,9 @@ dependencies:
89
89
  - - "~>"
90
90
  - !ruby/object:Gem::Version
91
91
  version: '3.0'
92
- - - ">"
92
+ - - ">="
93
93
  - !ruby/object:Gem::Version
94
- version: '3.10'
94
+ version: '3.13'
95
95
  - !ruby/object:Gem::Dependency
96
96
  name: rtagstask
97
97
  requirement: !ruby/object:Gem::Requirement
@@ -112,14 +112,14 @@ dependencies:
112
112
  requirements:
113
113
  - - "~>"
114
114
  - !ruby/object:Gem::Version
115
- version: '1.65'
115
+ version: '1.69'
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - "~>"
121
121
  - !ruby/object:Gem::Version
122
- version: '1.65'
122
+ version: '1.69'
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: rubocop-rake
125
125
  requirement: !ruby/object:Gem::Requirement
@@ -140,14 +140,14 @@ dependencies:
140
140
  requirements:
141
141
  - - "~>"
142
142
  - !ruby/object:Gem::Version
143
- version: '3.0'
143
+ version: '3.3'
144
144
  type: :development
145
145
  prerelease: false
146
146
  version_requirements: !ruby/object:Gem::Requirement
147
147
  requirements:
148
148
  - - "~>"
149
149
  - !ruby/object:Gem::Version
150
- version: '3.0'
150
+ version: '3.3'
151
151
  - !ruby/object:Gem::Dependency
152
152
  name: simplecov
153
153
  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.36
202
+ version: 0.9.37
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.36
212
+ version: 0.9.37
213
213
  description: |2
214
214
 
215
215
  RubyTree is a Ruby implementation of the generic tree data structure. It
@@ -277,6 +277,9 @@ post_install_message: |2
277
277
  Thank you for installing RubyTree.
278
278
 
279
279
  Note::
280
+ - 2.1.1 is a minor update that updates all dependencies and
281
+ Updates the guard clause for creating a tree from a hash.
282
+
280
283
  - 2.1.0 is a minor update that brings all libraries to their
281
284
  latest stable versions. This version no longer supports
282
285
  Ruby 2.6 (minimum requirement is now >= 2.7).
@@ -301,7 +304,7 @@ post_install_message: |2
301
304
  ========================================================================
302
305
  rdoc_options:
303
306
  - "--title"
304
- - 'Rubytree Documentation: rubytree-2.1.0'
307
+ - 'Rubytree Documentation: rubytree-2.1.1'
305
308
  - "--main"
306
309
  - README.md
307
310
  - "--quiet"