nestedtext 4.2.2 → 4.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.yardopts +17 -0
- data/CHANGELOG.md +16 -0
- data/README.md +6 -1
- data/SECURITY.md +2 -2
- data/lib/nestedtext/decode.rb +0 -2
- data/lib/nestedtext/encode.rb +1 -3
- data/lib/nestedtext/version.rb +1 -1
- data/nestedtext.gemspec +1 -1
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4097a04ffbad6494a050d95624b1a812d88367ae0ad13f664db3202e78497561
|
4
|
+
data.tar.gz: 480a7d50589f6f531375b6e5f9e1fdeead6ca2528d01ef0378cf420f2bbe5334
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e81869accd1c6a905ee1a020b03f3f5745219e6df4267541995660f82fced4e744dee03d0a64434ee56d976a28874ab48c6c5901c3a5b8f9ebf756f7b7bdd984
|
7
|
+
data.tar.gz: 3e23a0fd7253fdbc35e025de36cbc4916da7cf880fcc02884a92616a2375ee0200f0e96571da021a681a013ced87c7d07d243905991a292071c0066c9d808b1a
|
data/.yardopts
ADDED
@@ -0,0 +1,17 @@
|
|
1
|
+
--title "NestedText API Documentation"
|
2
|
+
--readme README.md
|
3
|
+
--embed-mixin NTEncodeMixin
|
4
|
+
--markup markdown
|
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
|
14
|
+
-
|
15
|
+
CHANGELOG.md
|
16
|
+
CONTRIBUTING.md
|
17
|
+
LICENSE.txt
|
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.1] - 2022-02-17
|
10
|
+
### Fixed
|
11
|
+
- Try fix rubydoc.info missing class methods.
|
12
|
+
|
13
|
+
## [4.4.0] - 2022-02-17
|
14
|
+
### Fixed
|
15
|
+
- rubydoc.info not re-generating for patch versions?
|
16
|
+
|
17
|
+
## [4.3.1] - 2022-02-17
|
18
|
+
### Fixed
|
19
|
+
- Include .yardopts in gem for rubydoc.info
|
20
|
+
|
21
|
+
## [4.3.0] - 2022-02-17
|
22
|
+
### Fixed
|
23
|
+
- Try fix rubydoc.info missing class methods.
|
24
|
+
|
9
25
|
## [4.2.2] - 2022-02-12
|
10
26
|
### Fixed
|
11
27
|
- Better module documentation fix.
|
data/README.md
CHANGED
@@ -383,7 +383,12 @@ or combined with gem-release:
|
|
383
383
|
```console
|
384
384
|
$ vi CHANGELOG.md
|
385
385
|
$ git commit -am "Update CHANGELOG.md" && git push
|
386
|
-
$ gem bump --version minor --tag --
|
386
|
+
$ gem bump --version minor --tag --push --sign
|
387
|
+
```
|
388
|
+
|
389
|
+
then watch progress with [gh](https://cli.github.com/)
|
390
|
+
```console
|
391
|
+
$ gh run watch
|
387
392
|
```
|
388
393
|
|
389
394
|
|
data/SECURITY.md
CHANGED
data/lib/nestedtext/decode.rb
CHANGED
@@ -15,7 +15,6 @@ module NestedText
|
|
15
15
|
# @param strict [Boolean] If strict mode should be used.
|
16
16
|
#
|
17
17
|
# @return [Object, nil] The parsed object.
|
18
|
-
#
|
19
18
|
# @raise [NestedText::Error] if anything went wrong.
|
20
19
|
def self.load(ntstring, top_class: Object, strict: false)
|
21
20
|
raise Errors::WrongInputTypeError.new([String], ntstring) unless ntstring.nil? || ntstring.is_a?(String)
|
@@ -31,7 +30,6 @@ module NestedText
|
|
31
30
|
# @param strict [Boolean] If strict mode should be used.
|
32
31
|
#
|
33
32
|
# @return [Object, nil] The parsed object.
|
34
|
-
#
|
35
33
|
# @raise [NestedText::Error] if anything went wrong.
|
36
34
|
# @raise [IOError] on issue opening `filename` for reading in text mode.
|
37
35
|
def self.load_file(filename, top_class: Object, strict: false)
|
data/lib/nestedtext/encode.rb
CHANGED
@@ -28,17 +28,15 @@ module NestedText
|
|
28
28
|
end
|
29
29
|
|
30
30
|
# Encode a Ruby object to a NestedText file.
|
31
|
-
|
31
|
+
#
|
32
32
|
# Apart from `filename`, this method behaves exactly like dump.
|
33
33
|
#
|
34
34
|
# @param (see dump)
|
35
35
|
# @param filename [String] The file path to write the NestedText result to. The conventional file extension is `.nt`.
|
36
36
|
#
|
37
|
-
#
|
38
37
|
# @return (see dump)
|
39
38
|
# @raise (see dump)
|
40
39
|
# @raise [IOError] on issues opening the `filename` for writing in text mode.
|
41
|
-
#
|
42
40
|
def self.dump_file(obj, filename, **kwargs)
|
43
41
|
raise Errors::DumpFileBadPathError, filename unless filename.is_a? String
|
44
42
|
|
data/lib/nestedtext/version.rb
CHANGED
data/nestedtext.gemspec
CHANGED
@@ -27,7 +27,7 @@ Gem::Specification.new do |spec|
|
|
27
27
|
|
28
28
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
29
29
|
`git ls-files -z`.split("\x0").select do |f|
|
30
|
-
f.match(%r{\A(?:lib/|CHANGELOG.md|CONTRIBUTING.md|LICENSE.txt|README.md|SECURITY.md|nestedtext.gemspec)})
|
30
|
+
f.match(%r{\A(?:lib/|CHANGELOG.md|CONTRIBUTING.md|LICENSE.txt|README.md|SECURITY.md|nestedtext.gemspec|.yardopts)})
|
31
31
|
end
|
32
32
|
end
|
33
33
|
spec.require_paths = ['lib']
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nestedtext
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Erik Westrup
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2022-02-
|
11
|
+
date: 2022-02-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: unicode_utils
|
@@ -63,6 +63,7 @@ executables: []
|
|
63
63
|
extensions: []
|
64
64
|
extra_rdoc_files: []
|
65
65
|
files:
|
66
|
+
- ".yardopts"
|
66
67
|
- CHANGELOG.md
|
67
68
|
- CONTRIBUTING.md
|
68
69
|
- LICENSE.txt
|