rubytree 2.0.1 → 2.0.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: c9f6d1dcc5cf47a571cf1797287508a25d6d1d6f3139396a205c7e7f6c677fa5
4
- data.tar.gz: 1d0c8e28ba591d69404316ee2eda52176b1f1cfcf9c322b74520bcf200ed8d17
3
+ metadata.gz: 0e70523e3c29d12f86dc761dc345b0b44f453c4e768bddcb3cbcc2c224e9bf93
4
+ data.tar.gz: 821e22d3ed2e0486c2ca5dbd9a15d9cf670771dddda5ecb1aaed547e1f663e61
5
5
  SHA512:
6
- metadata.gz: 5266ef0d324899385335025775707093e238739c3cb805af3260e767a08f5619e0001ed2bfeec9410a001aaa4882923d458afdd7913d4a7b24385b515175927b
7
- data.tar.gz: 32689b030dc46d394bb3e8349702a30b3c589e0fad883fc6a62b4016ac9ce4e3dc8ca63970542c3a5b5684271334563f0f5f3eeca0fc7568707bdf7035f65f3a
6
+ metadata.gz: 660e223253d4bd8b05ae998c19d11ae22f72affc3f6b31199150722a5062468ffdeb9e817ec10f87e2be8f7da28284c30b7322a9ee6615fcec2ca56dcf52b1a5
7
+ data.tar.gz: 720fca8bf8ecb015ee6da0723bb1b159a88de19cc07aed83eba4baa665b23317383ec46a9f38a17fed0fa2c9672f836b3f56a7837d7f6f0efeb88d74a8945a66
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubytree (2.0.1)
4
+ rubytree (2.0.3)
5
5
  json (~> 2.0, > 2.3.1)
6
6
 
7
7
  GEM
data/LICENSE.md CHANGED
@@ -1,36 +1,27 @@
1
- [RubyTree][] is licensed under the [BSD][] license.
1
+ [RubyTree][] is licensed under the [BSD-2-clause][] license.
2
2
 
3
- Copyright (c) 2006-2022 Anupam Sengupta (<anupamsg@gmail.com>).
3
+ Copyright (c) 2006-2023 Anupam Sengupta (<anupamsg@gmail.com>).
4
4
 
5
- All rights reserved.
5
+ Redistribution and use in source and binary forms, with or without modification,
6
+ are permitted provided that the following conditions are met:
6
7
 
7
- Redistribution and use in source and binary forms, with or without
8
- modification, are permitted provided that the following conditions are met:
8
+ 1. Redistributions of source code must retain the above copyright notice, this
9
+ list of conditions and the following disclaimer.
9
10
 
10
- - Redistributions of source code must retain the above copyright notice, this
11
- list of conditions and the following disclaimer.
11
+ 2. Redistributions in binary form must reproduce the above copyright notice,
12
+ this list of conditions and the following disclaimer in the documentation
13
+ and/or other materials provided with the distribution.
12
14
 
13
- - Redistributions in binary form must reproduce the above copyright notice,
14
- this list of conditions and the following disclaimer in the documentation
15
- and/or other materials provided with the distribution.
15
+ THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS “AS IS” AND
16
+ ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
17
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
18
+ DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE FOR
19
+ ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
20
+ (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
21
+ LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON
22
+ ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
23
+ (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
24
+ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
16
25
 
17
- - Neither the name of the organization nor the names of its contributors may be
18
- used to endorse or promote products derived from this software without
19
- specific prior written permission.
20
-
21
- THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
22
- "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
23
- LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
24
- A PARTICULAR PURPOSE ARE DISCLAIMED.
25
-
26
- IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
27
- ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
28
- DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE
29
- GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
30
- INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER
31
- IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
32
- OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF
33
- ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
34
-
35
- [BSD]: http://opensource.org/licenses/bsd-license.php "BSD License"
36
- [RubyTree]: http://rubytree.anupamsg.me/ "RubyTree Home Page"
26
+ [BSD-2-clause]: https://opensource.org/license/bsd-2-clause/ "BSD License"
27
+ [RubyTree]: http://rubytree.anupamsg.me/ "RubyTree Home Page"
@@ -4,9 +4,9 @@
4
4
  #
5
5
  # Author:: Anupam Sengupta (anupamsg@gmail.com)
6
6
  #
7
- # Time-stamp: <2022-06-20 22:16:46 anupam>
7
+ # Time-stamp: <2023-12-27 12:46:07 anupam>
8
8
  #
9
- # Copyright (C) 2012, 2013, 2014, 2015, 2022 Anupam Sengupta <anupamsg@gmail.com>
9
+ # Copyright (C) 2012, 2013, 2014, 2015, 2022, 2023 Anupam Sengupta <anupamsg@gmail.com>
10
10
  #
11
11
  # All rights reserved.
12
12
  #
@@ -100,11 +100,14 @@ module Tree
100
100
  # representation. Note that this method should *NOT* be called directly.
101
101
  # Instead, to convert the JSON hash back to a tree, do:
102
102
  #
103
- # tree = JSON.parse(the_json_hash)
103
+ # tree = JSON.parse(the_json_hash, create_additions: true)
104
104
  #
105
105
  # This operation requires the {JSON gem}[http://flori.github.com/json/] to
106
106
  # be available, or else the operation fails with a warning message.
107
107
  #
108
+ # Note the +create_additions: true+ option, which is *required* for
109
+ # successfully parsing the string or hash.
110
+ #
108
111
  # @author Dirk Breuer (http://github.com/railsbros-dirk)
109
112
  # @since 0.7.0
110
113
  #
data/lib/tree/version.rb CHANGED
@@ -35,5 +35,5 @@
35
35
 
36
36
  module Tree
37
37
  # Rubytree Package Version
38
- VERSION = '2.0.1'
38
+ VERSION = '2.0.3'
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.0.1
4
+ version: 2.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Anupam Sengupta
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-06-19 00:00:00.000000000 Z
11
+ date: 2023-12-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json
@@ -245,7 +245,6 @@ files:
245
245
  - LICENSE.md
246
246
  - README.md
247
247
  - Rakefile
248
- - TAGS
249
248
  - TODO.org
250
249
  - examples/example_basic.rb
251
250
  - lib/rubytree.rb
@@ -299,7 +298,7 @@ post_install_message: |2
299
298
  ========================================================================
300
299
  rdoc_options:
301
300
  - "--title"
302
- - 'Rubytree Documentation: rubytree-2.0.1'
301
+ - 'Rubytree Documentation: rubytree-2.0.3'
303
302
  - "--main"
304
303
  - README.md
305
304
  - "--quiet"