labrat 1.2.3 → 1.3.0
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/.gitignore +2 -0
- data/.rubocop.yml +4 -174
- data/.simplecov +2 -0
- data/.yardopts +4 -0
- data/CHANGELOG.org +5 -0
- data/Gemfile +3 -4
- data/Gemfile.lock +57 -36
- data/README.md +595 -0
- data/README.org +72 -36
- data/Rakefile +20 -1
- data/labrat.gemspec +2 -1
- data/lib/labrat/arg_parser.rb +25 -7
- data/lib/labrat/config.rb +2 -2
- data/lib/labrat/options.rb +11 -1
- data/lib/labrat/version.rb +1 -1
- data/lib/labrat.rb +34 -9
- metadata +10 -18
- data/CHANGELOG.md +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 07527254f70ab94358c248e5abe969594cc89d6d37849d7f61cc4539482dea84
|
|
4
|
+
data.tar.gz: 787d233bd3bfdf40e2f0e5aeb8f718b9059abb0767e27c8e301b4924ad643040
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 57b117317e0e01278c7a696d99346f9763c844124ad7fd39b4bb82b5e727972b8caf644de6c7e2d886446425348abc4ed041f3b3e2860c19ac8e236cad31c34f
|
|
7
|
+
data.tar.gz: 644418e7af582f9985f2df17f49292446a39f9114007e90f4bd1babd92011b85cf7feeba77938563b1eb772fd163d5f741456c56e1139847c9fdb89e9f4ed0ee
|
data/.gitignore
CHANGED
data/.rubocop.yml
CHANGED
|
@@ -1,177 +1,7 @@
|
|
|
1
|
+
# Inherit the shared config from the rubocop-ddoherty gem (git-hosted on GitHub)
|
|
2
|
+
inherit_gem:
|
|
3
|
+
rubocop-ddoherty: 'config/default.yml'
|
|
4
|
+
|
|
1
5
|
plugins:
|
|
2
6
|
- rubocop-rspec
|
|
3
7
|
- rubocop-performance
|
|
4
|
-
|
|
5
|
-
inherit_gem:
|
|
6
|
-
rubocop-shopify: rubocop.yml
|
|
7
|
-
|
|
8
|
-
AllCops:
|
|
9
|
-
NewCops: enable
|
|
10
|
-
TargetRubyVersion: 3.1
|
|
11
|
-
|
|
12
|
-
Style/DateTime:
|
|
13
|
-
Enabled: false
|
|
14
|
-
|
|
15
|
-
Style/StringLiteralsInInterpolation:
|
|
16
|
-
Enabled: true
|
|
17
|
-
EnforcedStyle: single_quotes
|
|
18
|
-
|
|
19
|
-
Style/MethodCallWithArgsParentheses:
|
|
20
|
-
Enabled: false
|
|
21
|
-
|
|
22
|
-
Style/StringLiterals:
|
|
23
|
-
Enabled: false
|
|
24
|
-
|
|
25
|
-
Style/WordArray:
|
|
26
|
-
Enabled: false
|
|
27
|
-
|
|
28
|
-
Style/SymbolArray:
|
|
29
|
-
Enabled: false
|
|
30
|
-
|
|
31
|
-
Style/TrailingCommaInHashLiteral:
|
|
32
|
-
Enabled: false
|
|
33
|
-
|
|
34
|
-
Style/TrailingCommaInArrayLiteral:
|
|
35
|
-
Enabled: false
|
|
36
|
-
|
|
37
|
-
Style/HashSyntax:
|
|
38
|
-
Enabled: false
|
|
39
|
-
|
|
40
|
-
Style/ClassMethodsDefinitions:
|
|
41
|
-
Enabled: true
|
|
42
|
-
EnforcedStyle: def_self
|
|
43
|
-
|
|
44
|
-
Layout/LineLength:
|
|
45
|
-
Enabled: true
|
|
46
|
-
Max: 120
|
|
47
|
-
# To make it possible to copy or click on URIs in the code, we allow lines
|
|
48
|
-
# containing a URI to be longer than Max.
|
|
49
|
-
AllowHeredoc: true
|
|
50
|
-
AllowURI: true
|
|
51
|
-
URISchemes:
|
|
52
|
-
- http
|
|
53
|
-
- https
|
|
54
|
-
|
|
55
|
-
Layout/ArgumentAlignment:
|
|
56
|
-
Enabled: true
|
|
57
|
-
EnforcedStyle: with_first_argument
|
|
58
|
-
|
|
59
|
-
Naming/InclusiveLanguage:
|
|
60
|
-
Enabled: false
|
|
61
|
-
|
|
62
|
-
Metrics/AbcSize:
|
|
63
|
-
# The ABC size is a calculated magnitude, so this number can be a Fixnum or
|
|
64
|
-
# a Float.
|
|
65
|
-
Enabled: false
|
|
66
|
-
Max: 50
|
|
67
|
-
|
|
68
|
-
Metrics/BlockNesting:
|
|
69
|
-
Enabled: false
|
|
70
|
-
Max: 3
|
|
71
|
-
|
|
72
|
-
Metrics/BlockLength:
|
|
73
|
-
Enabled: false
|
|
74
|
-
Max: 25
|
|
75
|
-
|
|
76
|
-
Metrics/ClassLength:
|
|
77
|
-
Enabled: false
|
|
78
|
-
CountComments: false # count full line comments?
|
|
79
|
-
Max: 100
|
|
80
|
-
|
|
81
|
-
Metrics/ModuleLength:
|
|
82
|
-
Enabled: false
|
|
83
|
-
CountComments: false # count full line comments?
|
|
84
|
-
Max: 100
|
|
85
|
-
|
|
86
|
-
Metrics/MethodLength:
|
|
87
|
-
Enabled: false
|
|
88
|
-
CountComments: false # count full line comments?
|
|
89
|
-
Max: 10
|
|
90
|
-
|
|
91
|
-
# Avoid complex methods.
|
|
92
|
-
Metrics/CyclomaticComplexity:
|
|
93
|
-
Enabled: false
|
|
94
|
-
Max: 20
|
|
95
|
-
|
|
96
|
-
Metrics/ParameterLists:
|
|
97
|
-
Max: 5
|
|
98
|
-
CountKeywordArgs: false
|
|
99
|
-
|
|
100
|
-
Metrics/PerceivedComplexity:
|
|
101
|
-
Enabled: false
|
|
102
|
-
Max: 8
|
|
103
|
-
|
|
104
|
-
Layout/MultilineOperationIndentation:
|
|
105
|
-
EnforcedStyle: aligned
|
|
106
|
-
|
|
107
|
-
Layout/MultilineMethodCallIndentation:
|
|
108
|
-
EnforcedStyle: indented_relative_to_receiver
|
|
109
|
-
SupportedStyles:
|
|
110
|
-
- aligned
|
|
111
|
-
- indented
|
|
112
|
-
- indented_relative_to_receiver
|
|
113
|
-
# By default, the indentation width from Style/IndentationWidth is used
|
|
114
|
-
# But it can be overridden by setting this parameter
|
|
115
|
-
IndentationWidth: ~
|
|
116
|
-
|
|
117
|
-
# Though the style guides recommend against them, I like perl back references.
|
|
118
|
-
# They are much more concise than the recommended: $2 vs. Regexp.last_match(2).
|
|
119
|
-
# Two characters versus 18!
|
|
120
|
-
# Cop supports --auto-correct.
|
|
121
|
-
Style/PerlBackrefs:
|
|
122
|
-
Enabled: false
|
|
123
|
-
|
|
124
|
-
# Cop supports --auto-correct.
|
|
125
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles, ProceduralMethods, FunctionalMethods, IgnoredMethods.
|
|
126
|
-
# SupportedStyles: line_count_based, semantic, braces_for_chaining
|
|
127
|
-
# ProceduralMethods: benchmark, bm, bmbm, create, each_with_object, measure, new, realtime, tap, with_object
|
|
128
|
-
# FunctionalMethods: let, let!, subject, watch
|
|
129
|
-
# IgnoredMethods: lambda, proc, it
|
|
130
|
-
Style/BlockDelimiters:
|
|
131
|
-
EnforcedStyle: braces_for_chaining
|
|
132
|
-
ProceduralMethods: expect
|
|
133
|
-
|
|
134
|
-
# Cop supports --auto-correct.
|
|
135
|
-
# Configuration parameters: AllowForAlignment, ForceEqualSignAlignment.
|
|
136
|
-
Layout/ExtraSpacing:
|
|
137
|
-
AllowForAlignment: true
|
|
138
|
-
|
|
139
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
140
|
-
# SupportedStyles: format, sprintf, percent
|
|
141
|
-
Style/FormatString:
|
|
142
|
-
Enabled: false
|
|
143
|
-
|
|
144
|
-
# Configuration parameters: NamePrefix, NamePrefixBlacklist, NameWhitelist.
|
|
145
|
-
# NamePrefix: is_, has_, have_
|
|
146
|
-
# NamePrefixBlacklist: is_, has_, have_
|
|
147
|
-
# NameWhitelist: is_a?
|
|
148
|
-
Naming/PredicateName:
|
|
149
|
-
AllowedMethods: has_overlaps_within?
|
|
150
|
-
Exclude:
|
|
151
|
-
- 'spec/**/*'
|
|
152
|
-
|
|
153
|
-
# Cop supports --auto-correct.
|
|
154
|
-
# Configuration parameters: EnforcedStyle, SupportedStyles.
|
|
155
|
-
# SupportedStyles: always, never
|
|
156
|
-
Style/FrozenStringLiteralComment:
|
|
157
|
-
Enabled: false
|
|
158
|
-
EnforcedStyle: always
|
|
159
|
-
|
|
160
|
-
# I like using !! to convert a value to boolean.
|
|
161
|
-
Style/DoubleNegation:
|
|
162
|
-
Enabled: false
|
|
163
|
-
|
|
164
|
-
RSpec/MultipleExpectations:
|
|
165
|
-
Enabled: false
|
|
166
|
-
|
|
167
|
-
RSpec/ExampleLength:
|
|
168
|
-
Enabled: false
|
|
169
|
-
|
|
170
|
-
RSpec/DescribedClass:
|
|
171
|
-
Enabled: false
|
|
172
|
-
|
|
173
|
-
RSpec/MultipleMemoizedHelpers:
|
|
174
|
-
Max: 10
|
|
175
|
-
|
|
176
|
-
RSpec/NestedGroups:
|
|
177
|
-
Max: 5
|
data/.simplecov
CHANGED
data/.yardopts
ADDED
data/CHANGELOG.org
ADDED
data/Gemfile
CHANGED
|
@@ -7,12 +7,11 @@ gemspec
|
|
|
7
7
|
|
|
8
8
|
group :development do
|
|
9
9
|
gem 'debug', '>= 1.0.0'
|
|
10
|
+
gem 'gem_docs'
|
|
10
11
|
gem 'pry'
|
|
11
12
|
gem 'rake'
|
|
12
13
|
gem 'rspec'
|
|
13
|
-
gem 'rubocop'
|
|
14
|
-
gem 'rubocop-
|
|
15
|
-
gem 'rubocop-rspec'
|
|
16
|
-
gem 'rubocop-shopify'
|
|
14
|
+
gem 'rubocop', require: false
|
|
15
|
+
gem 'rubocop-ddoherty', git: 'https://github.com/ddoherty03/rubocop-ddoherty.git', branch: 'master', require: false
|
|
17
16
|
gem 'simplecov'
|
|
18
17
|
end
|
data/Gemfile.lock
CHANGED
|
@@ -1,54 +1,67 @@
|
|
|
1
|
+
GIT
|
|
2
|
+
remote: https://github.com/ddoherty03/rubocop-ddoherty.git
|
|
3
|
+
revision: 6b28e9614f18f94b684179c488acca8ac6cabdc6
|
|
4
|
+
branch: master
|
|
5
|
+
specs:
|
|
6
|
+
rubocop-ddoherty (0.1.2)
|
|
7
|
+
rubocop-performance (~> 1.0)
|
|
8
|
+
rubocop-rake (>= 0.7)
|
|
9
|
+
rubocop-rspec (~> 3.0)
|
|
10
|
+
rubocop-shopify (~> 2.0)
|
|
11
|
+
|
|
1
12
|
PATH
|
|
2
13
|
remote: .
|
|
3
14
|
specs:
|
|
4
|
-
labrat (1.
|
|
15
|
+
labrat (1.3.0)
|
|
5
16
|
activesupport
|
|
6
17
|
fat_config (>= 0.4.2)
|
|
7
|
-
fat_core
|
|
8
18
|
matrix
|
|
9
19
|
prawn (~> 2.0)
|
|
10
20
|
|
|
11
21
|
GEM
|
|
12
22
|
remote: https://rubygems.org/
|
|
13
23
|
specs:
|
|
14
|
-
activesupport (8.
|
|
24
|
+
activesupport (8.1.1)
|
|
15
25
|
base64
|
|
16
|
-
benchmark (>= 0.3)
|
|
17
26
|
bigdecimal
|
|
18
27
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
|
19
28
|
connection_pool (>= 2.2.5)
|
|
20
29
|
drb
|
|
21
30
|
i18n (>= 1.6, < 2)
|
|
31
|
+
json
|
|
22
32
|
logger (>= 1.4.2)
|
|
23
33
|
minitest (>= 5.1)
|
|
24
34
|
securerandom (>= 0.3)
|
|
25
35
|
tzinfo (~> 2.0, >= 2.0.5)
|
|
26
36
|
uri (>= 0.13.1)
|
|
27
37
|
ast (2.4.3)
|
|
28
|
-
base64 (0.
|
|
29
|
-
|
|
30
|
-
bigdecimal (3.1.9)
|
|
38
|
+
base64 (0.3.0)
|
|
39
|
+
bigdecimal (3.3.1)
|
|
31
40
|
coderay (1.1.3)
|
|
32
41
|
concurrent-ruby (1.3.5)
|
|
33
|
-
connection_pool (
|
|
42
|
+
connection_pool (3.0.1)
|
|
34
43
|
damerau-levenshtein (1.3.3)
|
|
35
|
-
date (3.
|
|
44
|
+
date (3.5.1)
|
|
36
45
|
debug (1.10.0)
|
|
37
46
|
irb (~> 1.10)
|
|
38
47
|
reline (>= 0.3.8)
|
|
39
48
|
diff-lcs (1.6.0)
|
|
40
49
|
docile (1.4.1)
|
|
41
|
-
drb (2.2.
|
|
50
|
+
drb (2.2.3)
|
|
51
|
+
erb (6.0.1)
|
|
42
52
|
fat_config (0.4.2)
|
|
43
53
|
activesupport
|
|
44
54
|
fat_core (>= 5.6.1)
|
|
45
55
|
inifile
|
|
46
56
|
tomlib
|
|
47
|
-
fat_core (
|
|
57
|
+
fat_core (7.1.3)
|
|
48
58
|
activesupport
|
|
49
59
|
damerau-levenshtein
|
|
50
60
|
ostruct
|
|
51
61
|
stringio (>= 3.1.2)
|
|
62
|
+
gem_docs (0.2.0)
|
|
63
|
+
rake
|
|
64
|
+
yard
|
|
52
65
|
i18n (1.14.7)
|
|
53
66
|
concurrent-ruby (~> 1.0)
|
|
54
67
|
inifile (3.0.0)
|
|
@@ -57,16 +70,16 @@ GEM
|
|
|
57
70
|
pp (>= 0.6.0)
|
|
58
71
|
rdoc (>= 4.0.0)
|
|
59
72
|
reline (>= 0.4.2)
|
|
60
|
-
json (2.
|
|
61
|
-
language_server-protocol (3.17.0.
|
|
73
|
+
json (2.16.0)
|
|
74
|
+
language_server-protocol (3.17.0.5)
|
|
62
75
|
lint_roller (1.1.0)
|
|
63
|
-
logger (1.
|
|
64
|
-
matrix (0.4.
|
|
76
|
+
logger (1.7.0)
|
|
77
|
+
matrix (0.4.3)
|
|
65
78
|
method_source (1.1.0)
|
|
66
|
-
minitest (5.
|
|
67
|
-
ostruct (0.6.
|
|
68
|
-
parallel (1.
|
|
69
|
-
parser (3.3.
|
|
79
|
+
minitest (5.26.2)
|
|
80
|
+
ostruct (0.6.3)
|
|
81
|
+
parallel (1.27.0)
|
|
82
|
+
parser (3.3.10.0)
|
|
70
83
|
ast (~> 2.4.1)
|
|
71
84
|
racc
|
|
72
85
|
pdf-core (0.10.0)
|
|
@@ -77,18 +90,21 @@ GEM
|
|
|
77
90
|
pdf-core (~> 0.10.0)
|
|
78
91
|
ttfunk (~> 1.8)
|
|
79
92
|
prettyprint (0.2.0)
|
|
93
|
+
prism (1.6.0)
|
|
80
94
|
pry (0.15.2)
|
|
81
95
|
coderay (~> 1.1)
|
|
82
96
|
method_source (~> 1.0)
|
|
83
|
-
psych (5.
|
|
97
|
+
psych (5.3.1)
|
|
84
98
|
date
|
|
85
99
|
stringio
|
|
86
100
|
racc (1.8.1)
|
|
87
101
|
rainbow (3.1.1)
|
|
88
102
|
rake (13.2.1)
|
|
89
|
-
rdoc (
|
|
103
|
+
rdoc (7.0.3)
|
|
104
|
+
erb
|
|
90
105
|
psych (>= 4.0.0)
|
|
91
|
-
|
|
106
|
+
tsort
|
|
107
|
+
regexp_parser (2.11.3)
|
|
92
108
|
reline (0.6.0)
|
|
93
109
|
io-console (~> 0.5)
|
|
94
110
|
rspec (3.13.0)
|
|
@@ -104,7 +120,7 @@ GEM
|
|
|
104
120
|
diff-lcs (>= 1.2.0, < 2.0)
|
|
105
121
|
rspec-support (~> 3.13.0)
|
|
106
122
|
rspec-support (3.13.2)
|
|
107
|
-
rubocop (1.
|
|
123
|
+
rubocop (1.81.7)
|
|
108
124
|
json (~> 2.3)
|
|
109
125
|
language_server-protocol (~> 3.17.0.2)
|
|
110
126
|
lint_roller (~> 1.1.0)
|
|
@@ -112,19 +128,23 @@ GEM
|
|
|
112
128
|
parser (>= 3.3.0.2)
|
|
113
129
|
rainbow (>= 2.2.2, < 4.0)
|
|
114
130
|
regexp_parser (>= 2.9.3, < 3.0)
|
|
115
|
-
rubocop-ast (>= 1.
|
|
131
|
+
rubocop-ast (>= 1.47.1, < 2.0)
|
|
116
132
|
ruby-progressbar (~> 1.7)
|
|
117
133
|
unicode-display_width (>= 2.4.0, < 4.0)
|
|
118
|
-
rubocop-ast (1.
|
|
119
|
-
parser (>= 3.3.
|
|
134
|
+
rubocop-ast (1.48.0)
|
|
135
|
+
parser (>= 3.3.7.2)
|
|
136
|
+
prism (~> 1.4)
|
|
120
137
|
rubocop-performance (1.24.0)
|
|
121
138
|
lint_roller (~> 1.1)
|
|
122
139
|
rubocop (>= 1.72.1, < 2.0)
|
|
123
140
|
rubocop-ast (>= 1.38.0, < 2.0)
|
|
124
|
-
rubocop-
|
|
141
|
+
rubocop-rake (0.7.1)
|
|
142
|
+
lint_roller (~> 1.1)
|
|
143
|
+
rubocop (>= 1.72.1)
|
|
144
|
+
rubocop-rspec (3.7.0)
|
|
125
145
|
lint_roller (~> 1.1)
|
|
126
146
|
rubocop (~> 1.72, >= 1.72.1)
|
|
127
|
-
rubocop-shopify (2.
|
|
147
|
+
rubocop-shopify (2.18.0)
|
|
128
148
|
rubocop (~> 1.62)
|
|
129
149
|
ruby-progressbar (1.13.0)
|
|
130
150
|
securerandom (0.4.1)
|
|
@@ -134,31 +154,32 @@ GEM
|
|
|
134
154
|
simplecov_json_formatter (~> 0.1)
|
|
135
155
|
simplecov-html (0.13.1)
|
|
136
156
|
simplecov_json_formatter (0.1.4)
|
|
137
|
-
stringio (3.
|
|
157
|
+
stringio (3.2.0)
|
|
138
158
|
tomlib (0.7.3)
|
|
139
159
|
bigdecimal
|
|
160
|
+
tsort (0.2.0)
|
|
140
161
|
ttfunk (1.8.0)
|
|
141
162
|
bigdecimal (~> 3.1)
|
|
142
163
|
tzinfo (2.0.6)
|
|
143
164
|
concurrent-ruby (~> 1.0)
|
|
144
|
-
unicode-display_width (3.
|
|
145
|
-
unicode-emoji (~> 4.
|
|
146
|
-
unicode-emoji (4.0
|
|
147
|
-
uri (1.
|
|
165
|
+
unicode-display_width (3.2.0)
|
|
166
|
+
unicode-emoji (~> 4.1)
|
|
167
|
+
unicode-emoji (4.1.0)
|
|
168
|
+
uri (1.1.1)
|
|
169
|
+
yard (0.9.38)
|
|
148
170
|
|
|
149
171
|
PLATFORMS
|
|
150
172
|
x86_64-linux
|
|
151
173
|
|
|
152
174
|
DEPENDENCIES
|
|
153
175
|
debug (>= 1.0.0)
|
|
176
|
+
gem_docs
|
|
154
177
|
labrat!
|
|
155
178
|
pry
|
|
156
179
|
rake
|
|
157
180
|
rspec
|
|
158
181
|
rubocop
|
|
159
|
-
rubocop-
|
|
160
|
-
rubocop-rspec
|
|
161
|
-
rubocop-shopify
|
|
182
|
+
rubocop-ddoherty!
|
|
162
183
|
simplecov
|
|
163
184
|
|
|
164
185
|
BUNDLED WITH
|