nestedtext 2.0.1 → 2.1.0

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: 309ec763445bda579aa39d3b82dec3bac8c7d2d2a76ef6b1c8e540452fa02150
4
- data.tar.gz: d8fe34b30c1d1ce10206fa4b290339fb069b8cb66ce3d3e8ea58e6050271622f
3
+ metadata.gz: 830cd05483344cec4a5d4132a7b6a373c81e6e48494dbf22dd29ff5ff5985599
4
+ data.tar.gz: 8ff4109630f482c63ddc9aac99de1a34f3dc3977c12af5a94eae266ad8a8a7d0
5
5
  SHA512:
6
- metadata.gz: 49b45ea8ab5f15704c7cd3322a40278f885b552377c978f661215dbdf727e29ac514c035bd6462ad7601e23dfcaebe159a5fbac13816eca6cc0e4fc6f25c7265
7
- data.tar.gz: ff062a01cb069d1cd8b685b434fe8554966f52aadb946f8339eee8f6efda531575f988a49ef5ac3c7c232268e0bc007dac84aa00cb03cc434e0597a61a57ed88
6
+ metadata.gz: 2e10ec7ae7e7d48c5a708be79803e8048322e474301d3e499c4bdee33199e7e99c4b1d3c8de2fd9ad6055d12332745c93c108d178ff829bdf1ddee1fad243d2a
7
+ data.tar.gz: 247bd8a03e0c4433f10811523b1e7da9b2ac747f98c1d735a1a7efdeef23b6b8b38be360a88c82acdedba66c90f177102a04ecd85777c77cac9f9a092a3f86e2
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
+ ## [2.1.0] - date
10
+ ### Changed
11
+ - Slim down Gem by using include instead of block list.
12
+
9
13
  ## [2.0.1] - 2022-01-26
10
14
  ### Fixed
11
15
  - README issue with logo showing up on Rdoc (out-commented HTML).
data/CONTRIBUTING.md CHANGED
@@ -1,4 +1,4 @@
1
1
  # How to contribute
2
2
  Please use GitHub tooling (issues, PRs) to disucssion and code contributions!
3
3
 
4
- When you open an PR, Travis will build your code, run tests, liters and so on.
4
+ When you open an PR, GitHub Actions will build your code, run tests, liters and so on.
data/README.md CHANGED
@@ -85,8 +85,8 @@ The NestedText types maps like this to Ruby:
85
85
  `String` | `String` |
86
86
  `List` | `Array` |
87
87
  `Dictionary`| `Hash` |
88
- `String` | `Symbol` | when `strict: false`, otherwise Ruby Symbols are encoded as Custom Class (see below).
89
- *empty* | `nil` | How empty strings and nil are handled depends on where it is used. This library follows how the official implementation does it.
88
+ `String` | `Symbol` | when `strict: true`, otherwise Ruby Symbols are encoded as Custom Class (see below).
89
+ *empty* | `nil` | when `strict: true`, otherwise as Custom Class. How empty strings and nil are handled depends on where it is used. This library follows how the official implementation does it.
90
90
 
91
91
 
92
92
  Thus you must know what you're parsing, or test what you decoded.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module NestedText
4
- VERSION = "2.0.1"
4
+ VERSION = "2.1.0"
5
5
  end
data/nestedtext.gemspec CHANGED
@@ -25,8 +25,8 @@ Gem::Specification.new do |spec|
25
25
  }
26
26
 
27
27
  spec.files = Dir.chdir(File.expand_path(__dir__)) do
28
- `git ls-files -z`.split("\x0").reject do |f|
29
- f.match(%r{\A(?:img/|test/|script/|\.github/|\.gitmodules|Rakefile|TODO\.md|\.codeclimate\.yml|\.vimlocal|\.simplecov)})
28
+ `git ls-files -z`.split("\x0").select do |f|
29
+ f.match(%r{\A(?:lib/|CHANGELOG.md|CONTRIBUTING.md|LICENSE.txt|README.md|SECURITY.md|nestedtext.gemspec)})
30
30
  end
31
31
  end
32
32
  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: 2.0.1
4
+ version: 2.1.0
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-01-26 00:00:00.000000000 Z
11
+ date: 2022-01-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: warning
@@ -49,15 +49,9 @@ executables: []
49
49
  extensions: []
50
50
  extra_rdoc_files: []
51
51
  files:
52
- - ".editorconfig"
53
- - ".gitignore"
54
- - ".rubocop.yml"
55
- - ".ruby-version"
56
52
  - CHANGELOG.md
57
53
  - CONTRIBUTING.md
58
- - Gemfile
59
54
  - LICENSE.txt
60
- - OSSMETADATA
61
55
  - README.md
62
56
  - SECURITY.md
63
57
  - lib/nestedtext.rb
data/.editorconfig DELETED
@@ -1,24 +0,0 @@
1
- # Modified version of https://github.com/ruby/ruby/blob/master/.editorconfig
2
-
3
- root = true
4
-
5
- [*]
6
- end_of_line = lf
7
- indent_size = 4
8
- indent_style = space
9
- insert_final_newline = true
10
- tab_width = 4
11
- trim_trailing_whitespace = true
12
-
13
- [*.rb]
14
- indent_size = 2
15
-
16
- [*.gemspec]
17
- indent_size = 2
18
-
19
- [*.yml]
20
- indent_size = 2
21
-
22
- [test/nestedtext/encode_test.rb]
23
- # So we can test trailing whitespace strings.
24
- trim_trailing_whitespace = unset
data/.gitignore DELETED
@@ -1,24 +0,0 @@
1
- # Contrary to ruby apps, ruby gems should not check in Gemfile.lock.
2
- # Reference: https://yehudakatz.com/2010/12/16/clarifying-the-roles-of-the-gemspec-and-gemfile/
3
- /Gemfile.lock
4
-
5
- # Bundle local config
6
- /.bundle/
7
-
8
- # Package gem from $(rake install)
9
- /pkg/
10
- # When built from $(gem build *.gemspec)
11
- /*.gem
12
-
13
- # rdoc
14
- /doc
15
-
16
- # minitest
17
- /test/html_reports/
18
- /test/reports/
19
-
20
- # simplecov
21
- /coverage/
22
-
23
- # byebug
24
- /.byebug_history
data/.rubocop.yml DELETED
@@ -1,143 +0,0 @@
1
- # See pages relaed at https://docs.rubocop.org/rubocop/1.12/cops_layout.html
2
-
3
-
4
- # TODO clean this upand remove Excludes not needed.
5
-
6
- # Rubocop extensions
7
- require:
8
- - rubocop-rake
9
-
10
- inherit_mode:
11
- merge:
12
- - Exclude # Merge my AllCops.Excllude with default exludes from https://github.com/rubocop/rubocop/blob/master/config/default.yml
13
-
14
- AllCops:
15
- TargetRubyVersion: 3.0
16
- Include:
17
- - lib/**/*.rb
18
- - spec/**/*.rb
19
- Exclude:
20
- # Travis: during build there will be a lot of rubocop config files in this pat which will cause build failure as the refer to gems which are not installed by this project.
21
- # See https://github.com/rubocop/rubocop/issues/9832
22
- - gemfiles/vendor/bundle/**/*
23
-
24
- Gemspec/DateAssignment:
25
- Enabled: true
26
-
27
- Layout/LineEndStringConcatenationIndentation:
28
- Enabled: true
29
-
30
- Lint/AmbiguousAssignment:
31
- Enabled: true
32
- Lint/DeprecatedConstants:
33
- Enabled: true
34
- Lint/DuplicateBranch:
35
- Enabled: true
36
- Lint/DuplicateRegexpCharacterClassElement:
37
- Enabled: true
38
- Lint/EmptyBlock:
39
- Enabled: true
40
- Lint/EmptyClass:
41
- Enabled: true
42
- Layout/EmptyLineBetweenDefs:
43
- Enabled: true
44
- Exclude:
45
- - lib/nestedtext-ruby/errors.rb
46
- Lint/EmptyInPattern:
47
- Enabled: true
48
- Lint/LambdaWithoutLiteralBlock:
49
- Enabled: true
50
- Layout/LineLength:
51
- Max: 120
52
- Lint/NoReturnInBeginEndBlocks:
53
- Enabled: true
54
- Lint/NumberedParameterAssignment:
55
- Enabled: true
56
- Lint/OrAssignmentToConstant:
57
- Enabled: true
58
- Lint/RedundantDirGlobSort:
59
- Enabled: true
60
- Layout/SpaceBeforeBrackets:
61
- Enabled: true
62
- Lint/SymbolConversion:
63
- Enabled: true
64
- Lint/ToEnumArguments:
65
- Enabled: true
66
- Lint/TripleQuotes:
67
- Enabled: true
68
- Lint/UnexpectedBlockArity:
69
- Enabled: true
70
- Lint/UnmodifiedReduceAccumulator:
71
- Enabled: true
72
- Lint/UnreachableCode:
73
- Severity: error
74
- Lint/UselessAccessModifier:
75
- Enabled: false
76
-
77
- Metrics/AbcSize:
78
- Enabled: true
79
- Metrics/BlockLength:
80
- Enabled: true
81
- Max: 100
82
- Metrics/MethodLength:
83
- Enabled: true
84
- Max: 25
85
-
86
- Naming/FileName:
87
- Enabled: false
88
- Exclude:
89
- - lib/nestedtext-ruby.rb
90
- Naming/InclusiveLanguage:
91
- Enabled: true
92
-
93
- Style/ArgumentsForwarding:
94
- Enabled: true
95
- Style/CollectionCompact:
96
- Enabled: true
97
- Style/Documentation:
98
- Enabled: true
99
- Exclude:
100
- - lib/nestedtext-ruby/errors.rb
101
- Style/DocumentDynamicEvalDefinition:
102
- Enabled: true
103
- Style/EndlessMethod:
104
- Enabled: true
105
- Style/HashConversion:
106
- Enabled: true
107
- Style/HashExcept:
108
- Enabled: true
109
- Style/IfWithBooleanLiteralBranches:
110
- Enabled: true
111
- Style/InPatternThen:
112
- Enabled: true
113
- Style/MultilineInPatternThen:
114
- Enabled: true
115
- Style/NegatedIfElseCondition:
116
- Enabled: true
117
- Style/NilLambda:
118
- Enabled: true
119
- Style/QuotedSymbols:
120
- Enabled: true
121
- Style/RedundantArgument:
122
- Enabled: true
123
- Style/RegexpLiteral:
124
- Enabled: false
125
- Style/SingleLineMethods:
126
- Enabled: true
127
- Exclude:
128
- - lib/nestedtext-ruby/errors.rb
129
- Style/StringChars:
130
- Enabled: true
131
- Style/StringLiterals:
132
- Enabled: true
133
- EnforcedStyle: double_quotes
134
- Style/StringLiteralsInInterpolation:
135
- Enabled: true
136
- EnforcedStyle: double_quotes
137
- Style/SwapValues:
138
- Enabled: true
139
-
140
-
141
- # Reference: https://github.com/rubocop/rubocop-rake/blob/master/config/default.yml
142
- Rake:
143
- Enabled: true
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.1.0
data/Gemfile DELETED
@@ -1,27 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- # Put require=false on gem's that we don't need to import in code (cli exec only)
4
-
5
- source "https://rubygems.org"
6
-
7
- # Include dependencies from the .gemspec
8
- gemspec
9
-
10
- # Development dependencies
11
- # Should rather be here than in the .gemspec
12
- # Reference: https://github.com/rubygems/bundler/pull/7222
13
- # However there's an argument for using gemspec too: https://bundler.io/guides/creating_gem.html#testing-our-gem
14
- group :development, :test do
15
- gem "gem-release", "~> 2.0", require: false
16
- gem "pry-byebug", "~> 3.9"
17
- gem "rake", "~> 13.0", require: false
18
- gem "solargraph", require: false
19
- end
20
-
21
- group :test do
22
- gem "minitest-byebug", "~> 0.0.3"
23
- gem "minitest-reporters", "~> 1.4", require: false
24
- gem "rubocop", "~> 1.18", require: false
25
- gem "rubocop-rake", "~> 0.6", require: false
26
- gem "simplecov", "~> 0.21", require: false
27
- end
data/OSSMETADATA DELETED
@@ -1 +0,0 @@
1
- osslifecycle=active