nestedtext 1.2.0 → 3.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +25 -0
- data/CONTRIBUTING.md +1 -1
- data/README.md +210 -30
- data/SECURITY.md +2 -2
- data/lib/nestedtext/core_ext.rb +6 -5
- data/lib/nestedtext/core_ext_internal.rb +1 -1
- data/lib/nestedtext/decode.rb +23 -3
- data/lib/nestedtext/dumper.rb +15 -17
- data/lib/nestedtext/encode.rb +25 -15
- data/lib/nestedtext/encode_helpers.rb +7 -19
- data/lib/nestedtext/error.rb +8 -0
- data/lib/nestedtext/{errors.rb → errors_internal.rb} +28 -33
- data/lib/nestedtext/parser.rb +34 -34
- data/lib/nestedtext/scanners.rb +4 -5
- data/lib/nestedtext/version.rb +2 -1
- data/lib/nestedtext.rb +9 -2
- data/nestedtext.gemspec +4 -4
- metadata +10 -16
- data/.editorconfig +0 -24
- data/.gitignore +0 -21
- data/.rubocop.yml +0 -143
- data/.ruby-version +0 -1
- data/Gemfile +0 -27
- data/OSSMETADATA +0 -1
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
|