nestedtext 4.4.5 → 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: e7a2ffc7454c1fab3462c4d60cdd73bf2ccbdcc86f35ae4775a0bfd040b1c299
4
- data.tar.gz: a5e075ad807b24c81025ec068e239a2e2c8646459f1cb2ae23e4b52dc7a16c75
3
+ metadata.gz: e4b5835126c6ab57f14e01e820bedac03315e2078f865123f0ceb5531dbc82c7
4
+ data.tar.gz: 292b7483ba149ef91a54129e216bbbc7f7eeec841adc8fc2fac439086b392f13
5
5
  SHA512:
6
- metadata.gz: af4e957a41f14ab08e14dbd86fd5a0cdcf4c245f9c29256d8c60d3858853b4693f74ed652c95276d5deda88a55cb8ddd05fc3d26911fd00c4a4c83dceb70edd2
7
- data.tar.gz: 9461159283e0af153e8b04816000e9157d71ef2c35b2df5a3cf912db966d3faaffcaef5c5da3c353b4948a893276c117501fc27e18d4953ce0c823be8f5b50aa
6
+ metadata.gz: 1d5d7ff43936ffc2fe15a4dab0969dc265a809fd74cc5a67a0a36a3d33cccfe60876029c368934d923b6717cddefee898e7736d9f8ed6888bc1bfbd552a47ae5
7
+ data.tar.gz: c1057cfad0e963867c8554c3edc61f6dded65b64bd1b536ebee412086f36d5e1c19aeb116bd0bed1c4076a8ff85cfa6b0ed50c7c23252b93c0419ec621f457b1
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
+ ## [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
+
9
13
  ## [4.4.5] - 2022-02-17
10
14
  ### Fixed
11
15
  - rubydoc.info: try remove unused module require.
@@ -18,7 +18,7 @@ module NestedText
18
18
  def self.load(ntstring, top_class: Object, strict: false)
19
19
  raise Errors::WrongInputTypeError.new([String], ntstring) unless ntstring.nil? || ntstring.is_a?(String)
20
20
 
21
- Parser.new(StringIO.new(ntstring), top_class, strict:).parse
21
+ Parser.new(StringIO.new(ntstring), top_class, strict: strict).parse
22
22
  end
23
23
 
24
24
  # Decode a NestedText stored in a given file.
@@ -36,7 +36,7 @@ module NestedText
36
36
 
37
37
  # Open explicitly in text mode to detect \r as line ending.
38
38
  File.open(filename, 'rt') do |file|
39
- Parser.new(file, top_class, strict:).parse
39
+ Parser.new(file, top_class, strict: strict).parse
40
40
  end
41
41
  end
42
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.5'
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.5
4
+ version: 4.4.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Erik Westrup