lite-command 2.1.3 → 3.0.1
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 +4 -0
- data/CHANGELOG.md +17 -0
- data/Gemfile.lock +20 -17
- data/README.md +191 -174
- data/lib/generators/lite/command/install_generator.rb +15 -0
- data/lib/generators/lite/command/templates/install.rb +5 -0
- data/lib/lite/command/base.rb +20 -17
- data/lib/lite/command/configuration.rb +35 -0
- data/lib/lite/command/fault.rb +21 -8
- data/lib/lite/command/internals/attributes.rb +64 -0
- data/lib/lite/command/internals/{call.rb → calls.rb} +8 -4
- data/lib/lite/command/internals/{execute.rb → executions.rb} +11 -10
- data/lib/lite/command/internals/{fault.rb → faults.rb} +12 -6
- data/lib/lite/command/internals/{result.rb → results.rb} +1 -1
- data/lib/lite/command/sequence.rb +1 -1
- data/lib/lite/command/step.rb +1 -7
- data/lib/lite/command/utils.rb +11 -5
- data/lib/lite/command/version.rb +1 -1
- data/lib/lite/command.rb +10 -8
- data/lite-command.gemspec +1 -0
- metadata +24 -9
- data/lib/lite/command/attribute.rb +0 -102
- data/lib/lite/command/attribute_validator.rb +0 -35
- data/lib/lite/command/internals/context.rb +0 -46
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ca95adc16c60158c9a6b826dc9b87f826dc0a81574fd85b996147bbc9ba7c7f2
|
4
|
+
data.tar.gz: 26d5c68abb7572aa5c887f324fe138c4eb282eb00308dcda83059ace331d2c1b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73217979c23fff74cf8a9f4965627e3c69bb3d6b74b3b815cb70af3ad766a4ecd412acfb11e96dfc777427eca9dd113c1782e0e407838836d165e1f716f0e241
|
7
|
+
data.tar.gz: ec3f313e195d97d5c22f8187d78dc0b328288eaa4f2c57de72edce22949b4c75825f63842df7a8141059161efefb1ab45f6457c2b47d2e33efe6fa136b8e7ed7
|
data/.rubocop.yml
CHANGED
@@ -42,8 +42,12 @@ Metrics/PerceivedComplexity:
|
|
42
42
|
Enabled: false
|
43
43
|
Naming/MemoizedInstanceVariableName:
|
44
44
|
Enabled: false
|
45
|
+
Performance/AncestorsInclude:
|
46
|
+
Enabled: false
|
45
47
|
RSpec/AnyInstance:
|
46
48
|
Enabled: false
|
49
|
+
RSpec/DescribedClass:
|
50
|
+
Enabled: false
|
47
51
|
RSpec/ExampleLength:
|
48
52
|
Enabled: false
|
49
53
|
RSpec/MessageSpies:
|
data/CHANGELOG.md
CHANGED
@@ -6,6 +6,23 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
|
|
6
6
|
|
7
7
|
## [Unreleased]
|
8
8
|
|
9
|
+
## [3.0.1] - 2024-10-25
|
10
|
+
### Added
|
11
|
+
- Added improved equality check
|
12
|
+
|
13
|
+
## [3.0.0] - 2024-10-15
|
14
|
+
### Added
|
15
|
+
- Added `bad?` status method check
|
16
|
+
- Configuration class to handle dynamic error creation
|
17
|
+
- Added `on_before_validation` callback hook
|
18
|
+
- Added validation support
|
19
|
+
- Added new `required` and `optional` attribute methods
|
20
|
+
### Changed
|
21
|
+
- Improved values of `caused_by` and `thrown_by`
|
22
|
+
- Use try util instead of hook
|
23
|
+
### Removed
|
24
|
+
- Removed attributes method
|
25
|
+
|
9
26
|
## [2.1.3] - 2024-10-08
|
10
27
|
### Changed
|
11
28
|
- Move super in inheritance
|
data/Gemfile.lock
CHANGED
@@ -1,15 +1,16 @@
|
|
1
1
|
PATH
|
2
2
|
remote: .
|
3
3
|
specs:
|
4
|
-
lite-command (
|
4
|
+
lite-command (3.0.1)
|
5
|
+
activemodel
|
5
6
|
ostruct
|
6
7
|
|
7
8
|
GEM
|
8
9
|
remote: https://rubygems.org/
|
9
10
|
specs:
|
10
|
-
actionpack (7.2.1)
|
11
|
-
actionview (= 7.2.1)
|
12
|
-
activesupport (= 7.2.1)
|
11
|
+
actionpack (7.2.1.2)
|
12
|
+
actionview (= 7.2.1.2)
|
13
|
+
activesupport (= 7.2.1.2)
|
13
14
|
nokogiri (>= 1.8.5)
|
14
15
|
racc
|
15
16
|
rack (>= 2.2.4, < 3.2)
|
@@ -18,13 +19,15 @@ GEM
|
|
18
19
|
rails-dom-testing (~> 2.2)
|
19
20
|
rails-html-sanitizer (~> 1.6)
|
20
21
|
useragent (~> 0.16)
|
21
|
-
actionview (7.2.1)
|
22
|
-
activesupport (= 7.2.1)
|
22
|
+
actionview (7.2.1.2)
|
23
|
+
activesupport (= 7.2.1.2)
|
23
24
|
builder (~> 3.1)
|
24
25
|
erubi (~> 1.11)
|
25
26
|
rails-dom-testing (~> 2.2)
|
26
27
|
rails-html-sanitizer (~> 1.6)
|
27
|
-
|
28
|
+
activemodel (7.2.1.2)
|
29
|
+
activesupport (= 7.2.1.2)
|
30
|
+
activesupport (7.2.1.2)
|
28
31
|
base64
|
29
32
|
bigdecimal
|
30
33
|
concurrent-ruby (~> 1.0, >= 1.3.1)
|
@@ -54,10 +57,10 @@ GEM
|
|
54
57
|
irb (1.14.1)
|
55
58
|
rdoc (>= 4.0.0)
|
56
59
|
reline (>= 0.4.2)
|
57
|
-
json (2.7.
|
60
|
+
json (2.7.4)
|
58
61
|
language_server-protocol (3.17.0.3)
|
59
62
|
logger (1.6.1)
|
60
|
-
loofah (2.
|
63
|
+
loofah (2.23.1)
|
61
64
|
crass (~> 1.0.2)
|
62
65
|
nokogiri (>= 1.12.0)
|
63
66
|
mini_portile2 (2.8.7)
|
@@ -73,7 +76,7 @@ GEM
|
|
73
76
|
psych (5.1.2)
|
74
77
|
stringio
|
75
78
|
racc (1.8.1)
|
76
|
-
rack (3.1.
|
79
|
+
rack (3.1.8)
|
77
80
|
rack-session (2.0.0)
|
78
81
|
rack (>= 3.0.0)
|
79
82
|
rack-test (2.1.0)
|
@@ -88,9 +91,9 @@ GEM
|
|
88
91
|
rails-html-sanitizer (1.6.0)
|
89
92
|
loofah (~> 2.21)
|
90
93
|
nokogiri (~> 1.14)
|
91
|
-
railties (7.2.1)
|
92
|
-
actionpack (= 7.2.1)
|
93
|
-
activesupport (= 7.2.1)
|
94
|
+
railties (7.2.1.2)
|
95
|
+
actionpack (= 7.2.1.2)
|
96
|
+
activesupport (= 7.2.1.2)
|
94
97
|
irb (~> 1.13)
|
95
98
|
rackup (>= 1.0.0)
|
96
99
|
rake (>= 12.2)
|
@@ -107,7 +110,7 @@ GEM
|
|
107
110
|
rspec-core (~> 3.13.0)
|
108
111
|
rspec-expectations (~> 3.13.0)
|
109
112
|
rspec-mocks (~> 3.13.0)
|
110
|
-
rspec-core (3.13.
|
113
|
+
rspec-core (3.13.2)
|
111
114
|
rspec-support (~> 3.13.0)
|
112
115
|
rspec-expectations (3.13.3)
|
113
116
|
diff-lcs (>= 1.2.0, < 2.0)
|
@@ -116,7 +119,7 @@ GEM
|
|
116
119
|
diff-lcs (>= 1.2.0, < 2.0)
|
117
120
|
rspec-support (~> 3.13.0)
|
118
121
|
rspec-support (3.13.1)
|
119
|
-
rubocop (1.
|
122
|
+
rubocop (1.67.0)
|
120
123
|
json (~> 2.3)
|
121
124
|
language_server-protocol (>= 3.17.0)
|
122
125
|
parallel (~> 1.10)
|
@@ -137,7 +140,7 @@ GEM
|
|
137
140
|
rubocop (~> 1.61)
|
138
141
|
ruby-progressbar (1.13.0)
|
139
142
|
securerandom (0.3.1)
|
140
|
-
sqlite3 (2.1.
|
143
|
+
sqlite3 (2.1.1)
|
141
144
|
mini_portile2 (~> 2.8.0)
|
142
145
|
stringio (3.1.1)
|
143
146
|
thor (1.3.2)
|
@@ -146,7 +149,7 @@ GEM
|
|
146
149
|
unicode-display_width (2.6.0)
|
147
150
|
useragent (0.16.10)
|
148
151
|
webrick (1.8.2)
|
149
|
-
zeitwerk (2.
|
152
|
+
zeitwerk (2.7.1)
|
150
153
|
|
151
154
|
PLATFORMS
|
152
155
|
ruby
|