lite-command 1.5.0 → 2.0.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +23 -4
- data/CHANGELOG.md +4 -0
- data/Gemfile +1 -1
- data/Gemfile.lock +127 -100
- data/README.md +85 -231
- data/Rakefile +2 -2
- data/bin/console +3 -3
- data/lib/generators/rails/command_generator.rb +5 -5
- data/lib/generators/rails/templates/command.rb.tt +1 -1
- data/lib/lite/command/base.rb +49 -0
- data/lib/lite/command/context.rb +32 -0
- data/lib/lite/command/fault.rb +54 -0
- data/lib/lite/command/internals/callable.rb +158 -0
- data/lib/lite/command/internals/executable.rb +83 -0
- data/lib/lite/command/internals/resultable.rb +78 -0
- data/lib/lite/command/version.rb +1 -1
- data/lib/lite/command.rb +9 -13
- data/lite-command.gemspec +28 -29
- metadata +13 -42
- data/lib/lite/command/complex.rb +0 -52
- data/lib/lite/command/exceptions.rb +0 -10
- data/lib/lite/command/extensions/errors.rb +0 -88
- data/lib/lite/command/extensions/memoize.rb +0 -17
- data/lib/lite/command/extensions/propagation.rb +0 -37
- data/lib/lite/command/procedure.rb +0 -51
- data/lib/lite/command/simple.rb +0 -19
- data/lib/lite/command/states.rb +0 -31
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 340d00e30b3a4ca140aaff5ee354c8c48d43e03a35533a69ea349afb8c429435
|
4
|
+
data.tar.gz: f05f29f0fcc6d55c2afe9cb4debb309491374db238f9bfdcbe3833169c5caeeb
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e504efb0c085b59b57cbc05fb344c9568ee0ad18a275af25efef9cd3db6e5f6dde9b25dfbf971e1b34cab864c486c6efd6dabd015cb23f5ee1199abc0d85956f
|
7
|
+
data.tar.gz: 5ee4f05437705a5ed44a529cf776f32f0b5b049f020f7de8615c0aa1a1e47601db6b4d54cc381cd2280238e4e5d00f2b626c07688aa65795955cdc8092279f15
|
data/.rubocop.yml
CHANGED
@@ -3,12 +3,11 @@ require:
|
|
3
3
|
- rubocop-rake
|
4
4
|
- rubocop-rspec
|
5
5
|
AllCops:
|
6
|
-
TargetRubyVersion: 3.0
|
7
6
|
NewCops: enable
|
8
7
|
DisplayCopNames: true
|
9
8
|
DisplayStyleGuide: true
|
10
|
-
Gemspec/
|
11
|
-
|
9
|
+
Gemspec/DevelopmentDependencies:
|
10
|
+
EnforcedStyle: gemspec
|
12
11
|
Gemspec/RequiredRubyVersion:
|
13
12
|
Enabled: false
|
14
13
|
Layout/EmptyLinesAroundAttributeAccessor:
|
@@ -21,26 +20,46 @@ Layout/EmptyLinesAroundClassBody:
|
|
21
20
|
Layout/EmptyLinesAroundModuleBody:
|
22
21
|
EnforcedStyle: empty_lines_except_namespace
|
23
22
|
Layout/LineLength:
|
24
|
-
|
23
|
+
Enabled: false
|
25
24
|
Layout/SpaceAroundMethodCallOperator:
|
26
25
|
Enabled: true
|
27
26
|
Lint/RaiseException:
|
28
27
|
Enabled: true
|
29
28
|
Lint/StructNewOverride:
|
30
29
|
Enabled: true
|
30
|
+
Metrics/AbcSize:
|
31
|
+
Enabled: false
|
31
32
|
Metrics/BlockLength:
|
32
33
|
Exclude:
|
33
34
|
- 'spec/**/**/*'
|
34
35
|
- '*.gemspec'
|
36
|
+
Metrics/CyclomaticComplexity:
|
37
|
+
Enabled: false
|
38
|
+
Metrics/MethodLength:
|
39
|
+
Enabled: false
|
40
|
+
Metrics/PerceivedComplexity:
|
41
|
+
Enabled: false
|
35
42
|
Naming/MemoizedInstanceVariableName:
|
36
43
|
Enabled: false
|
44
|
+
RSpec/AnyInstance:
|
45
|
+
Enabled: false
|
37
46
|
RSpec/ExampleLength:
|
38
47
|
Enabled: false
|
48
|
+
RSpec/MessageSpies:
|
49
|
+
Enabled: false
|
39
50
|
RSpec/MultipleExpectations:
|
40
51
|
Enabled: false
|
52
|
+
RSpec/MultipleMemoizedHelpers:
|
53
|
+
Enabled: false
|
41
54
|
Style/ArgumentsForwarding:
|
42
55
|
Enabled: false
|
43
56
|
Style/Documentation:
|
44
57
|
Enabled: false
|
58
|
+
Style/DocumentDynamicEvalDefinition:
|
59
|
+
Enabled: false
|
45
60
|
Style/ExpandPathArguments:
|
46
61
|
Enabled: false
|
62
|
+
Style/OpenStructUse:
|
63
|
+
Enabled: false
|
64
|
+
Style/StringLiterals:
|
65
|
+
EnforcedStyle: double_quotes
|
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/Gemfile.lock
CHANGED
@@ -1,140 +1,167 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lite-command (
|
5
|
-
|
6
|
-
|
4
|
+
lite-command (2.0.0)
|
5
|
+
activemodel
|
6
|
+
ostruct
|
7
7
|
|
8
8
|
GEM
|
9
9
|
remote: https://rubygems.org/
|
10
10
|
specs:
|
11
|
-
actionpack (7.
|
12
|
-
actionview (= 7.
|
13
|
-
activesupport (= 7.
|
14
|
-
|
11
|
+
actionpack (7.2.1)
|
12
|
+
actionview (= 7.2.1)
|
13
|
+
activesupport (= 7.2.1)
|
14
|
+
nokogiri (>= 1.8.5)
|
15
|
+
racc
|
16
|
+
rack (>= 2.2.4, < 3.2)
|
17
|
+
rack-session (>= 1.0.1)
|
15
18
|
rack-test (>= 0.6.3)
|
16
|
-
rails-dom-testing (~> 2.
|
17
|
-
rails-html-sanitizer (~> 1.
|
18
|
-
|
19
|
-
|
19
|
+
rails-dom-testing (~> 2.2)
|
20
|
+
rails-html-sanitizer (~> 1.6)
|
21
|
+
useragent (~> 0.16)
|
22
|
+
actionview (7.2.1)
|
23
|
+
activesupport (= 7.2.1)
|
20
24
|
builder (~> 3.1)
|
21
|
-
erubi (~> 1.
|
22
|
-
rails-dom-testing (~> 2.
|
23
|
-
rails-html-sanitizer (~> 1.
|
24
|
-
activemodel (7.
|
25
|
-
activesupport (= 7.
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
25
|
+
erubi (~> 1.11)
|
26
|
+
rails-dom-testing (~> 2.2)
|
27
|
+
rails-html-sanitizer (~> 1.6)
|
28
|
+
activemodel (7.2.1)
|
29
|
+
activesupport (= 7.2.1)
|
30
|
+
activesupport (7.2.1)
|
31
|
+
base64
|
32
|
+
bigdecimal
|
33
|
+
concurrent-ruby (~> 1.0, >= 1.3.1)
|
34
|
+
connection_pool (>= 2.2.5)
|
35
|
+
drb
|
31
36
|
i18n (>= 1.6, < 2)
|
37
|
+
logger (>= 1.4.2)
|
32
38
|
minitest (>= 5.1)
|
33
|
-
|
39
|
+
securerandom (>= 0.3)
|
40
|
+
tzinfo (~> 2.0, >= 2.0.5)
|
34
41
|
ast (2.4.2)
|
35
|
-
|
36
|
-
|
37
|
-
|
42
|
+
base64 (0.2.0)
|
43
|
+
bigdecimal (3.1.8)
|
44
|
+
builder (3.3.0)
|
45
|
+
concurrent-ruby (1.3.4)
|
46
|
+
connection_pool (2.4.1)
|
38
47
|
crass (1.0.6)
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
diff-lcs (1.5.0)
|
46
|
-
erubi (1.10.0)
|
47
|
-
fasterer (0.9.0)
|
48
|
-
colorize (~> 0.7)
|
49
|
-
ruby_parser (>= 3.14.1)
|
50
|
-
generator_spec (0.9.4)
|
48
|
+
diff-lcs (1.5.1)
|
49
|
+
drb (2.2.1)
|
50
|
+
erubi (1.13.0)
|
51
|
+
fasterer (0.11.0)
|
52
|
+
ruby_parser (>= 3.19.1)
|
53
|
+
generator_spec (0.10.0)
|
51
54
|
activesupport (>= 3.0.0)
|
52
55
|
railties (>= 3.0.0)
|
53
|
-
i18n (1.
|
56
|
+
i18n (1.14.6)
|
54
57
|
concurrent-ruby (~> 1.0)
|
55
|
-
|
56
|
-
|
57
|
-
|
58
|
+
io-console (0.7.2)
|
59
|
+
irb (1.14.1)
|
60
|
+
rdoc (>= 4.0.0)
|
61
|
+
reline (>= 0.4.2)
|
62
|
+
json (2.7.2)
|
63
|
+
language_server-protocol (3.17.0.3)
|
64
|
+
logger (1.6.1)
|
65
|
+
loofah (2.22.0)
|
58
66
|
crass (~> 1.0.2)
|
59
|
-
nokogiri (>= 1.
|
60
|
-
|
61
|
-
|
62
|
-
|
63
|
-
|
64
|
-
mini_portile2 (~> 2.8.0)
|
67
|
+
nokogiri (>= 1.12.0)
|
68
|
+
mini_portile2 (2.8.7)
|
69
|
+
minitest (5.25.1)
|
70
|
+
nokogiri (1.16.7)
|
71
|
+
mini_portile2 (~> 2.8.2)
|
65
72
|
racc (~> 1.4)
|
66
|
-
|
67
|
-
|
73
|
+
ostruct (0.6.0)
|
74
|
+
parallel (1.26.3)
|
75
|
+
parser (3.3.5.0)
|
68
76
|
ast (~> 2.4.1)
|
69
|
-
|
70
|
-
|
71
|
-
|
72
|
-
|
73
|
-
|
74
|
-
|
77
|
+
racc
|
78
|
+
psych (5.1.2)
|
79
|
+
stringio
|
80
|
+
racc (1.8.1)
|
81
|
+
rack (3.1.7)
|
82
|
+
rack-session (2.0.0)
|
83
|
+
rack (>= 3.0.0)
|
84
|
+
rack-test (2.1.0)
|
85
|
+
rack (>= 1.3)
|
86
|
+
rackup (2.1.0)
|
87
|
+
rack (>= 3)
|
88
|
+
webrick (~> 1.8)
|
89
|
+
rails-dom-testing (2.2.0)
|
90
|
+
activesupport (>= 5.0.0)
|
91
|
+
minitest
|
75
92
|
nokogiri (>= 1.6)
|
76
|
-
rails-html-sanitizer (1.
|
77
|
-
loofah (~> 2.
|
78
|
-
|
79
|
-
|
80
|
-
|
81
|
-
|
93
|
+
rails-html-sanitizer (1.6.0)
|
94
|
+
loofah (~> 2.21)
|
95
|
+
nokogiri (~> 1.14)
|
96
|
+
railties (7.2.1)
|
97
|
+
actionpack (= 7.2.1)
|
98
|
+
activesupport (= 7.2.1)
|
99
|
+
irb (~> 1.13)
|
100
|
+
rackup (>= 1.0.0)
|
82
101
|
rake (>= 12.2)
|
83
|
-
thor (~> 1.0)
|
84
|
-
zeitwerk (~> 2.
|
102
|
+
thor (~> 1.0, >= 1.2.2)
|
103
|
+
zeitwerk (~> 2.6)
|
85
104
|
rainbow (3.1.1)
|
86
|
-
rake (13.
|
87
|
-
|
88
|
-
|
89
|
-
|
90
|
-
|
91
|
-
|
92
|
-
|
93
|
-
|
94
|
-
rspec-
|
95
|
-
|
105
|
+
rake (13.2.1)
|
106
|
+
rdoc (6.7.0)
|
107
|
+
psych (>= 4.0.0)
|
108
|
+
regexp_parser (2.9.2)
|
109
|
+
reline (0.5.10)
|
110
|
+
io-console (~> 0.5)
|
111
|
+
rspec (3.13.0)
|
112
|
+
rspec-core (~> 3.13.0)
|
113
|
+
rspec-expectations (~> 3.13.0)
|
114
|
+
rspec-mocks (~> 3.13.0)
|
115
|
+
rspec-core (3.13.1)
|
116
|
+
rspec-support (~> 3.13.0)
|
117
|
+
rspec-expectations (3.13.3)
|
96
118
|
diff-lcs (>= 1.2.0, < 2.0)
|
97
|
-
rspec-support (~> 3.
|
98
|
-
rspec-mocks (3.
|
119
|
+
rspec-support (~> 3.13.0)
|
120
|
+
rspec-mocks (3.13.1)
|
99
121
|
diff-lcs (>= 1.2.0, < 2.0)
|
100
|
-
rspec-support (~> 3.
|
101
|
-
rspec-support (3.
|
102
|
-
rubocop (1.
|
122
|
+
rspec-support (~> 3.13.0)
|
123
|
+
rspec-support (3.13.1)
|
124
|
+
rubocop (1.66.1)
|
125
|
+
json (~> 2.3)
|
126
|
+
language_server-protocol (>= 3.17.0)
|
103
127
|
parallel (~> 1.10)
|
104
|
-
parser (>= 3.
|
128
|
+
parser (>= 3.3.0.2)
|
105
129
|
rainbow (>= 2.2.2, < 4.0)
|
106
|
-
regexp_parser (>=
|
107
|
-
|
108
|
-
rubocop-ast (>= 1.16.0, < 2.0)
|
130
|
+
regexp_parser (>= 2.4, < 3.0)
|
131
|
+
rubocop-ast (>= 1.32.2, < 2.0)
|
109
132
|
ruby-progressbar (~> 1.7)
|
110
|
-
unicode-display_width (>=
|
111
|
-
rubocop-ast (1.
|
112
|
-
parser (>= 3.
|
113
|
-
rubocop-performance (1.
|
114
|
-
rubocop (>= 1.
|
115
|
-
rubocop-ast (>=
|
133
|
+
unicode-display_width (>= 2.4.0, < 3.0)
|
134
|
+
rubocop-ast (1.32.3)
|
135
|
+
parser (>= 3.3.1.0)
|
136
|
+
rubocop-performance (1.22.1)
|
137
|
+
rubocop (>= 1.48.1, < 2.0)
|
138
|
+
rubocop-ast (>= 1.31.1, < 2.0)
|
116
139
|
rubocop-rake (0.6.0)
|
117
140
|
rubocop (~> 1.0)
|
118
|
-
rubocop-rspec (
|
119
|
-
rubocop (~> 1.
|
120
|
-
ruby-progressbar (1.
|
121
|
-
ruby_parser (3.
|
141
|
+
rubocop-rspec (3.0.5)
|
142
|
+
rubocop (~> 1.61)
|
143
|
+
ruby-progressbar (1.13.0)
|
144
|
+
ruby_parser (3.21.1)
|
145
|
+
racc (~> 1.5)
|
122
146
|
sexp_processor (~> 4.16)
|
123
|
-
|
124
|
-
|
125
|
-
|
126
|
-
|
147
|
+
securerandom (0.3.1)
|
148
|
+
sexp_processor (4.17.2)
|
149
|
+
sqlite3 (2.1.0)
|
150
|
+
mini_portile2 (~> 2.8.0)
|
151
|
+
stringio (3.1.1)
|
152
|
+
thor (1.3.2)
|
153
|
+
tzinfo (2.0.6)
|
127
154
|
concurrent-ruby (~> 1.0)
|
128
|
-
unicode-display_width (2.
|
129
|
-
|
155
|
+
unicode-display_width (2.6.0)
|
156
|
+
useragent (0.16.10)
|
157
|
+
webrick (1.8.2)
|
158
|
+
zeitwerk (2.6.18)
|
130
159
|
|
131
160
|
PLATFORMS
|
132
161
|
ruby
|
133
162
|
|
134
163
|
DEPENDENCIES
|
135
|
-
activerecord
|
136
164
|
bundler
|
137
|
-
database_cleaner
|
138
165
|
fasterer
|
139
166
|
generator_spec
|
140
167
|
lite-command!
|