nestedtext 1.1.0 → 1.1.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 +4 -4
- data/CHANGELOG.md +4 -0
- data/SECURITY.md +1 -1
- data/lib/nestedtext/core_ext.rb +1 -2
- data/lib/nestedtext/encode_helpers.rb +3 -4
- 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: 75a2d51a9136b92dfc3ca5c7d41172107a51ec9d330b0553c992a86d32156179
|
4
|
+
data.tar.gz: b28add9673b21617c99fe4573794c44ee04a0c49c003ced761540fab4f4b1a55
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7f7147ac293908f5cf6aa67175f0a0bf5f0b0dbc68fda541c58e045edbba88e176cd1dffd8e18004fa8848f385c62ae8df1124d8c60afca8ac47231b54cb50bb
|
7
|
+
data.tar.gz: 00b93d7103d7a8aee1c4c4902ff5a935ceb0760265a776ad837a845b8992869f47b704dfed4cdd6c7788df567f64ab0d936494ef52bfff15302c8693f3f045cd
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,10 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [1.1.1] - 2022-01-25
|
10
|
+
### Fixed
|
11
|
+
- Renamed `NTEncodeMixing` to `NTEncodeMixin` .
|
12
|
+
|
9
13
|
## [1.1.0] - 2022-01-25
|
10
14
|
### Added
|
11
15
|
- Expose `NestedText::VERSION` for convenience to the clients.
|
data/SECURITY.md
CHANGED
data/lib/nestedtext/core_ext.rb
CHANGED
@@ -5,8 +5,7 @@ require "nestedtext/encode_helpers"
|
|
5
5
|
# Or both: add encoding/decoding of more native classes, and allow decoding + applying a schema with 3rd party.
|
6
6
|
# Or encourage using Marshal from core?
|
7
7
|
|
8
|
-
NT_MIXIN = NestedText.const_get(:
|
9
|
-
|
8
|
+
NT_MIXIN = NestedText.const_get(:NTEncodeStrictMixin)
|
10
9
|
class String include NT_MIXIN end
|
11
10
|
class Array include NT_MIXIN end
|
12
11
|
class Hash include NT_MIXIN end
|
@@ -1,15 +1,14 @@
|
|
1
1
|
require "nestedtext/dumper"
|
2
2
|
|
3
|
-
# TODO: s/Mixing/Mixin/g
|
4
3
|
module NestedText
|
5
|
-
module
|
4
|
+
module NTEncodeStrictMixin
|
6
5
|
def to_nt(indentation: 4, strict: true)
|
7
6
|
Dumper.new(EncodeOptions.new(indentation, strict)).dump self
|
8
7
|
end
|
9
8
|
end
|
10
|
-
private_constant :
|
9
|
+
private_constant :NTEncodeStrictMixin
|
11
10
|
|
12
|
-
module
|
11
|
+
module NTEncodeMixin
|
13
12
|
def to_nt(indentation: 4)
|
14
13
|
Dumper.new(EncodeOptions.new(indentation, false)).dump self
|
15
14
|
end
|
data/lib/nestedtext/version.rb
CHANGED