nestedtext 4.4.2 → 4.4.6
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 +4 -4
- data/.yardopts +8 -0
- data/CHANGELOG.md +16 -0
- data/lib/nestedtext/decode.rb +2 -3
- data/lib/nestedtext/dumper.rb +5 -5
- data/lib/nestedtext/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e4b5835126c6ab57f14e01e820bedac03315e2078f865123f0ceb5531dbc82c7
|
4
|
+
data.tar.gz: 292b7483ba149ef91a54129e216bbbc7f7eeec841adc8fc2fac439086b392f13
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d5d7ff43936ffc2fe15a4dab0969dc265a809fd74cc5a67a0a36a3d33cccfe60876029c368934d923b6717cddefee898e7736d9f8ed6888bc1bfbd552a47ae5
|
7
|
+
data.tar.gz: c1057cfad0e963867c8554c3edc61f6dded65b64bd1b536ebee412086f36d5e1c19aeb116bd0bed1c4076a8ff85cfa6b0ed50c7c23252b93c0419ec621f457b1
|
data/.yardopts
CHANGED
@@ -3,6 +3,14 @@
|
|
3
3
|
--embed-mixin NTEncodeMixin
|
4
4
|
--markup markdown
|
5
5
|
--markup-provider redcarpet
|
6
|
+
--fail-on-warning
|
7
|
+
lib/nestedtext.rb
|
8
|
+
lib/nestedtext/core_ext.rb
|
9
|
+
lib/nestedtext/encode.rb
|
10
|
+
lib/nestedtext/decode.rb
|
11
|
+
lib/nestedtext/encode_helpers.rb
|
12
|
+
lib/nestedtext/error.rb
|
13
|
+
lib/nestedtext/version.rb
|
6
14
|
-
|
7
15
|
CHANGELOG.md
|
8
16
|
CONTRIBUTING.md
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [4.4.6] - 2022-02-17
|
10
|
+
### Fixed
|
11
|
+
- rubydoc.info: don't force use hash value omission with rubycop. rubydoc.info is not on ruby 3.1 yet.
|
12
|
+
|
13
|
+
## [4.4.5] - 2022-02-17
|
14
|
+
### Fixed
|
15
|
+
- rubydoc.info: try remove unused module require.
|
16
|
+
|
17
|
+
## [4.4.4] - 2022-02-17
|
18
|
+
### Fixed
|
19
|
+
- rubydoc.info: revert reject instead of select
|
20
|
+
|
21
|
+
## [4.4.3] - 2022-02-17
|
22
|
+
### Fixed
|
23
|
+
- rubydoc.info: try building gem from git-ls | reject instead of select
|
24
|
+
|
9
25
|
## [4.4.2] - 2022-02-17
|
10
26
|
### Fixed
|
11
27
|
- rubydoc.info: try includ all of lib/**/*.rb
|
data/lib/nestedtext/decode.rb
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
require 'nestedtext/parser'
|
4
4
|
require 'nestedtext/errors_internal'
|
5
5
|
|
6
|
-
require 'logger'
|
7
6
|
require 'stringio'
|
8
7
|
|
9
8
|
module NestedText
|
@@ -19,7 +18,7 @@ module NestedText
|
|
19
18
|
def self.load(ntstring, top_class: Object, strict: false)
|
20
19
|
raise Errors::WrongInputTypeError.new([String], ntstring) unless ntstring.nil? || ntstring.is_a?(String)
|
21
20
|
|
22
|
-
Parser.new(StringIO.new(ntstring), top_class, strict:).parse
|
21
|
+
Parser.new(StringIO.new(ntstring), top_class, strict: strict).parse
|
23
22
|
end
|
24
23
|
|
25
24
|
# Decode a NestedText stored in a given file.
|
@@ -37,7 +36,7 @@ module NestedText
|
|
37
36
|
|
38
37
|
# Open explicitly in text mode to detect \r as line ending.
|
39
38
|
File.open(filename, 'rt') do |file|
|
40
|
-
Parser.new(file, top_class, strict:).parse
|
39
|
+
Parser.new(file, top_class, strict: strict).parse
|
41
40
|
end
|
42
41
|
end
|
43
42
|
end
|
data/lib/nestedtext/dumper.rb
CHANGED
@@ -84,13 +84,13 @@ module NestedText
|
|
84
84
|
def dump_any(obj, depth: 0, **kwargs)
|
85
85
|
trace_cycles(obj) do
|
86
86
|
case obj
|
87
|
-
when Hash then dump_hash(obj, depth
|
88
|
-
when Array then dump_array(obj, depth
|
89
|
-
when String then dump_string(obj, depth
|
87
|
+
when Hash then dump_hash(obj, depth: depth, **kwargs)
|
88
|
+
when Array then dump_array(obj, depth: depth, **kwargs)
|
89
|
+
when String then dump_string(obj, depth: depth, **kwargs)
|
90
90
|
when nil
|
91
|
-
@strict ? '' : dump_custom_class(nil, depth
|
91
|
+
@strict ? '' : dump_custom_class(nil, depth: depth, **kwargs)
|
92
92
|
else
|
93
|
-
dump_custom_class(obj, depth
|
93
|
+
dump_custom_class(obj, depth: depth, **kwargs)
|
94
94
|
end
|
95
95
|
end
|
96
96
|
end
|
data/lib/nestedtext/version.rb
CHANGED