nestedtext 4.4.2 → 4.4.6

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: 7af3d17e237978f9701fd101ac852ede7a3e698dd4b49d24405527d37226ecd9
4
- data.tar.gz: e4547a6a03901f5a13361bd9279a89783d3d0397087420653799642bd4202345
3
+ metadata.gz: e4b5835126c6ab57f14e01e820bedac03315e2078f865123f0ceb5531dbc82c7
4
+ data.tar.gz: 292b7483ba149ef91a54129e216bbbc7f7eeec841adc8fc2fac439086b392f13
5
5
  SHA512:
6
- metadata.gz: e9b2360b49e8fb6aa74be17fcf0a414399d78a0f56b53692dceb7cdf9ac1ca800d092188c69037948577f8e7c8b9554895eb25a4cf6ae7a55d2e2356eb03af99
7
- data.tar.gz: edbfa6e513a1f1c9c605e1d06d0292d2c7b1a6ab7c9e1aa70ad4a501a6b109f826cd7621e63db68e971fc33c6c8c10d7513a4ed506c9000bf35e2f5f546ea97d
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
@@ -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
@@ -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:, **kwargs)
88
- when Array then dump_array(obj, depth:, **kwargs)
89
- when String then dump_string(obj, depth:, **kwargs)
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:, **kwargs)
91
+ @strict ? '' : dump_custom_class(nil, depth: depth, **kwargs)
92
92
  else
93
- dump_custom_class(obj, depth:, **kwargs)
93
+ dump_custom_class(obj, depth: depth, **kwargs)
94
94
  end
95
95
  end
96
96
  end
@@ -2,5 +2,5 @@
2
2
 
3
3
  module NestedText
4
4
  # The version of this library.
5
- VERSION = '4.4.2'
5
+ VERSION = '4.4.6'
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nestedtext
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.4.2
4
+ version: 4.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Westrup