nestedtext 4.3.1 → 4.4.3

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: 56513304eda35a4c2f2c4f2c426e2660c9f83a910da5f1375a60ceb0108aa5a3
4
- data.tar.gz: 5d17dba47a2a6e45f79337c987d94e8c59dc167d27066eb0c73865d0e3812df2
3
+ metadata.gz: 033a97c8ef8db8f4d7e799b458b21f2c50c9174a35f51c0d1e25acaf72c1e504
4
+ data.tar.gz: 6642f800b9842a6b8ab51595755993ccd5415813b121807586f4956143d6ed3b
5
5
  SHA512:
6
- metadata.gz: d4b76b4d832c0a669dbbebb46bc6e7a5ce62ec47b4bfe2440ae40450fbd4370fc8ea438510b8ae990eebe458829d7f1af9812414149f329912f77983ae3ccb71
7
- data.tar.gz: 3b3f0d7dd473beadbdf85c87ecef2f72c5b1634a9e3b93fbe7d5173a902815594e4f34f02b6ce00d0bc1eab842e8bdb08b852e416c12e1672b21c0ab6684db81
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
@@ -1,15 +1,14 @@
1
1
  --title "NestedText API Documentation"
2
2
  --readme README.md
3
3
  --embed-mixin NTEncodeMixin
4
- --exclude /server/templates/
5
- --exclude /yard/rubygems/
6
4
  --markup markdown
7
5
  --markup-provider redcarpet
6
+ --fail-on-warning
8
7
  lib/nestedtext.rb
9
8
  lib/nestedtext/core_ext.rb
9
+ lib/nestedtext/encode.rb
10
10
  lib/nestedtext/decode.rb
11
11
  lib/nestedtext/encode_helpers.rb
12
- lib/nestedtext/encode.rb
13
12
  lib/nestedtext/error.rb
14
13
  lib/nestedtext/version.rb
15
14
  -
data/CHANGELOG.md CHANGED
@@ -6,13 +6,29 @@ 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
+
13
+ ## [4.4.2] - 2022-02-17
14
+ ### Fixed
15
+ - rubydoc.info: try includ all of lib/**/*.rb
16
+
17
+ ## [4.4.1] - 2022-02-17
18
+ ### Fixed
19
+ - rubydoc.info: try fix missing class methods.
20
+
21
+ ## [4.4.0] - 2022-02-17
22
+ ### Fixed
23
+ - rubydoc.info: not re-generating for patch versions?
24
+
9
25
  ## [4.3.1] - 2022-02-17
10
26
  ### Fixed
11
- - Include .yardopts in gem for rubydoc.info
27
+ - rubydoc.info: Include .yardopts in gem
12
28
 
13
29
  ## [4.3.0] - 2022-02-17
14
30
  ### Fixed
15
- - Try fix rubydoc.info missing class methods.
31
+ - rubydoc.info: try fix missing class methods.
16
32
 
17
33
  ## [4.2.2] - 2022-02-12
18
34
  ### Fixed
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/README.md CHANGED
@@ -386,6 +386,11 @@ $ git commit -am "Update CHANGELOG.md" && git push
386
386
  $ gem bump --version minor --tag --push --sign
387
387
  ```
388
388
 
389
+ then watch progress with [gh](https://cli.github.com/)
390
+ ```console
391
+ $ gh run watch
392
+ ```
393
+
389
394
 
390
395
  # Contributing
391
396
  Bug reports and pull requests are welcome on GitHub at [erikw/nestedtext-ruby](https://github.com/erikw/nestedtext-ruby).
@@ -2,5 +2,5 @@
2
2
 
3
3
  module NestedText
4
4
  # The version of this library.
5
- VERSION = '4.3.1'
5
+ VERSION = '4.4.3'
6
6
  end
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").select do |f|
30
- f.match(%r{\A(?:lib/|CHANGELOG.md|CONTRIBUTING.md|LICENSE.txt|README.md|SECURITY.md|nestedtext.gemspec|.yardopts)})
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.3.1
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