nestedtext 4.4.2 → 4.4.3
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/.rubocop.yml +153 -0
- data/.ruby-version +1 -0
- data/.yardopts +8 -0
- data/CHANGELOG.md +4 -0
- data/Gemfile +29 -0
- data/lib/nestedtext/version.rb +1 -1
- data/nestedtext.gemspec +2 -2
- metadata +4 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 033a97c8ef8db8f4d7e799b458b21f2c50c9174a35f51c0d1e25acaf72c1e504
|
|
4
|
+
data.tar.gz: 6642f800b9842a6b8ab51595755993ccd5415813b121807586f4956143d6ed3b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 7ea74b78218c722baecff569d8d598af8b87e16c98b8d5f792cbbcf1108f8caaecb0b995d178b1adce6a8bd39ac5226ea9be1d011628665791786dc327e954dc
|
|
7
|
+
data.tar.gz: 9823e3530257d360b0e6114aa2075bafd53c4183974004d15e47ea9699260b7ff7fb3b249b08cc6901f7a840f82fdc07624f1a62f6dfca87072ba6d46869cfc0
|
data/.rubocop.yml
ADDED
|
@@ -0,0 +1,153 @@
|
|
|
1
|
+
AllCops:
|
|
2
|
+
TargetRubyVersion: 3.1
|
|
3
|
+
UseCache: true
|
|
4
|
+
Include:
|
|
5
|
+
- lib/**/*.rb
|
|
6
|
+
- test/**/*.rb
|
|
7
|
+
Exclude:
|
|
8
|
+
- script/*
|
|
9
|
+
|
|
10
|
+
inherit_mode:
|
|
11
|
+
merge:
|
|
12
|
+
- Exclude # Merge my AllCops.Exclude with default exludes from https://github.com/rubocop/rubocop/blob/master/config/default.yml
|
|
13
|
+
|
|
14
|
+
# Standard Cops
|
|
15
|
+
Gemspec/DateAssignment:
|
|
16
|
+
Enabled: true
|
|
17
|
+
Gemspec/RequireMFA:
|
|
18
|
+
Enabled: true
|
|
19
|
+
Layout/LineEndStringConcatenationIndentation:
|
|
20
|
+
Enabled: true
|
|
21
|
+
Layout/SpaceBeforeBrackets:
|
|
22
|
+
Enabled: true
|
|
23
|
+
Lint/AmbiguousAssignment:
|
|
24
|
+
Enabled: true
|
|
25
|
+
Lint/AmbiguousOperatorPrecedence:
|
|
26
|
+
Enabled: true
|
|
27
|
+
Lint/AmbiguousRange:
|
|
28
|
+
Enabled: true
|
|
29
|
+
Lint/DeprecatedConstants:
|
|
30
|
+
Enabled: true
|
|
31
|
+
Lint/DuplicateBranch:
|
|
32
|
+
Enabled: true
|
|
33
|
+
Lint/DuplicateRegexpCharacterClassElement:
|
|
34
|
+
Enabled: true
|
|
35
|
+
Lint/EmptyBlock:
|
|
36
|
+
Enabled: true
|
|
37
|
+
Lint/EmptyClass:
|
|
38
|
+
Enabled: true
|
|
39
|
+
Lint/EmptyInPattern:
|
|
40
|
+
Enabled: true
|
|
41
|
+
Lint/IncompatibleIoSelectWithFiberScheduler:
|
|
42
|
+
Enabled: true
|
|
43
|
+
Lint/LambdaWithoutLiteralBlock:
|
|
44
|
+
Enabled: true
|
|
45
|
+
Lint/NoReturnInBeginEndBlocks:
|
|
46
|
+
Enabled: true
|
|
47
|
+
Lint/NumberedParameterAssignment:
|
|
48
|
+
Enabled: true
|
|
49
|
+
Lint/OrAssignmentToConstant:
|
|
50
|
+
Enabled: true
|
|
51
|
+
Lint/RedundantDirGlobSort:
|
|
52
|
+
Enabled: true
|
|
53
|
+
Lint/RequireRelativeSelfPath:
|
|
54
|
+
Enabled: true
|
|
55
|
+
Lint/SymbolConversion:
|
|
56
|
+
Enabled: true
|
|
57
|
+
Lint/ToEnumArguments:
|
|
58
|
+
Enabled: true
|
|
59
|
+
Lint/TripleQuotes:
|
|
60
|
+
Enabled: true
|
|
61
|
+
Lint/UnexpectedBlockArity:
|
|
62
|
+
Enabled: true
|
|
63
|
+
Lint/UnmodifiedReduceAccumulator:
|
|
64
|
+
Enabled: true
|
|
65
|
+
Lint/UselessRuby2Keywords:
|
|
66
|
+
Enabled: true
|
|
67
|
+
Naming/BlockForwarding:
|
|
68
|
+
Enabled: true
|
|
69
|
+
Metrics/AbcSize:
|
|
70
|
+
Enabled: true
|
|
71
|
+
IgnoredMethods:
|
|
72
|
+
- detect_line_tag
|
|
73
|
+
Metrics/ClassLength:
|
|
74
|
+
Enabled: true
|
|
75
|
+
Metrics/CyclomaticComplexity:
|
|
76
|
+
Enabled: true
|
|
77
|
+
IgnoredMethods:
|
|
78
|
+
- detect_line_tag
|
|
79
|
+
- parse_any
|
|
80
|
+
Metrics/MethodLength:
|
|
81
|
+
Enabled: true
|
|
82
|
+
Max: 15
|
|
83
|
+
IgnoredMethods:
|
|
84
|
+
- test_hash_multiline_key_all_cases
|
|
85
|
+
- test_hash_key_line_endings
|
|
86
|
+
- test_array_with_multiple_hash
|
|
87
|
+
- test_custom_class_linked_list
|
|
88
|
+
- test_custom_class_nested
|
|
89
|
+
- detect_line_tag
|
|
90
|
+
- parse_any
|
|
91
|
+
Metrics/PerceivedComplexity:
|
|
92
|
+
Enabled: true
|
|
93
|
+
IgnoredMethods:
|
|
94
|
+
- detect_line_tag
|
|
95
|
+
Security/IoMethods:
|
|
96
|
+
Enabled: true
|
|
97
|
+
Style/ArgumentsForwarding:
|
|
98
|
+
Enabled: true
|
|
99
|
+
Style/CollectionCompact:
|
|
100
|
+
Enabled: true
|
|
101
|
+
Style/Documentation:
|
|
102
|
+
Enabled: false
|
|
103
|
+
Style/DocumentDynamicEvalDefinition:
|
|
104
|
+
Enabled: true
|
|
105
|
+
Style/EndlessMethod:
|
|
106
|
+
Enabled: true
|
|
107
|
+
Style/FileRead:
|
|
108
|
+
Enabled: true
|
|
109
|
+
Style/FileWrite:
|
|
110
|
+
Enabled: true
|
|
111
|
+
Style/HashConversion:
|
|
112
|
+
Enabled: true
|
|
113
|
+
Style/HashExcept:
|
|
114
|
+
Enabled: true
|
|
115
|
+
Style/IfWithBooleanLiteralBranches:
|
|
116
|
+
Enabled: true
|
|
117
|
+
Style/InPatternThen:
|
|
118
|
+
Enabled: true
|
|
119
|
+
Style/MapToHash:
|
|
120
|
+
Enabled: true
|
|
121
|
+
Style/MultilineInPatternThen:
|
|
122
|
+
Enabled: true
|
|
123
|
+
Style/NegatedIfElseCondition:
|
|
124
|
+
Enabled: true
|
|
125
|
+
Style/NilLambda:
|
|
126
|
+
Enabled: true
|
|
127
|
+
Style/NumberedParameters:
|
|
128
|
+
Enabled: true
|
|
129
|
+
Style/NumberedParametersLimit:
|
|
130
|
+
Enabled: true
|
|
131
|
+
Style/OpenStructUse:
|
|
132
|
+
Enabled: true
|
|
133
|
+
Style/QuotedSymbols:
|
|
134
|
+
Enabled: true
|
|
135
|
+
Style/RedundantArgument:
|
|
136
|
+
Enabled: true
|
|
137
|
+
Style/RedundantSelfAssignmentBranch:
|
|
138
|
+
Enabled: true
|
|
139
|
+
Style/SelectByRegexp:
|
|
140
|
+
Enabled: true
|
|
141
|
+
Style/StringChars:
|
|
142
|
+
Enabled: true
|
|
143
|
+
Style/SwapValues:
|
|
144
|
+
Enabled: true
|
|
145
|
+
|
|
146
|
+
|
|
147
|
+
# Rubocop extensions
|
|
148
|
+
require:
|
|
149
|
+
- rubocop-rake
|
|
150
|
+
|
|
151
|
+
# Reference: https://github.com/rubocop/rubocop-rake/blob/master/config/default.yml
|
|
152
|
+
Rake:
|
|
153
|
+
Enabled: true
|
data/.ruby-version
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
3.1.0
|
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,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.3] - 2022-02-17
|
|
10
|
+
### Fixed
|
|
11
|
+
- rubydoc.info: try building gem from git-ls | reject instead of select
|
|
12
|
+
|
|
9
13
|
## [4.4.2] - 2022-02-17
|
|
10
14
|
### Fixed
|
|
11
15
|
- rubydoc.info: try includ all of lib/**/*.rb
|
data/Gemfile
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
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 'redcarpet', '~> 3.5' # To render GitHub flavored Markdown files with yard.
|
|
19
|
+
gem 'solargraph', require: false
|
|
20
|
+
gem 'yard', '0.9.26' # Use same as on https://www.rubydoc.info/ (see footer)
|
|
21
|
+
end
|
|
22
|
+
|
|
23
|
+
group :test do
|
|
24
|
+
gem 'minitest-byebug', '~> 0.0.3'
|
|
25
|
+
gem 'minitest-reporters', '~> 1.4', require: false
|
|
26
|
+
gem 'rubocop', '~> 1.18', require: false
|
|
27
|
+
gem 'rubocop-rake', '~> 0.6', require: false
|
|
28
|
+
gem 'simplecov', '~> 0.21', require: false
|
|
29
|
+
end
|
data/lib/nestedtext/version.rb
CHANGED
data/nestedtext.gemspec
CHANGED
|
@@ -26,8 +26,8 @@ Gem::Specification.new do |spec|
|
|
|
26
26
|
}
|
|
27
27
|
|
|
28
28
|
spec.files = Dir.chdir(File.expand_path(__dir__)) do
|
|
29
|
-
`git ls-files -z`.split("\x0").
|
|
30
|
-
f.match(%r{\A(?:
|
|
29
|
+
`git ls-files -z`.split("\x0").reject do |f|
|
|
30
|
+
f.match(%r{\A(?:img/|test/|script/|\.github/|\.gitmodules|Rakefile|OSSMETADATA|TODO\.md|\.codeclimate\.yml|\.vimlocal|\.simplecov|\.editorconfig|ebnf.txt|\.gitignore)})
|
|
31
31
|
end
|
|
32
32
|
end
|
|
33
33
|
spec.require_paths = ['lib']
|
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.
|
|
4
|
+
version: 4.4.3
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Erik Westrup
|
|
@@ -63,9 +63,12 @@ executables: []
|
|
|
63
63
|
extensions: []
|
|
64
64
|
extra_rdoc_files: []
|
|
65
65
|
files:
|
|
66
|
+
- ".rubocop.yml"
|
|
67
|
+
- ".ruby-version"
|
|
66
68
|
- ".yardopts"
|
|
67
69
|
- CHANGELOG.md
|
|
68
70
|
- CONTRIBUTING.md
|
|
71
|
+
- Gemfile
|
|
69
72
|
- LICENSE.txt
|
|
70
73
|
- README.md
|
|
71
74
|
- SECURITY.md
|