lite-command 3.3.3 → 3.3.4

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: b6a5bf6c4295f3db5079e09bacf781b0e9733632a3f29eda27cbe4b8bbad70d1
4
- data.tar.gz: 5b76736114e481183ece5306b15b5b65aee8f4b7475183c41ec162728d48b3eb
3
+ metadata.gz: a9ec71d49d1eb4d2dd529f45678f64e0cf6158fbb30dabe9483d7f83d068b74a
4
+ data.tar.gz: 5d80f8f5b2017cecc9c07d1d2e6bc0dacf1ad6e649171eec5744445c39a83718
5
5
  SHA512:
6
- metadata.gz: c3ae9d6b677e3738b8cd71a88c9e6b2240d2c61068ea6aa0af3b84db675426df33e6b0cc954b204626255d4c8c7a8edfd5d2f72858200e6cfd0594d8a8dc0c3f
7
- data.tar.gz: f56a661c40a41d19596546c4372e34ae4215e05d3d6e594d007e10df11ea6b200492db9315f9295dfd0f671d9e417bea6bfff078cdb4e8a84d23cbc277d83d92
6
+ metadata.gz: a6a8587a2792819b1e684e425bf13ae59ec1082ffad3709db6e4f10d92ee2bedf0b51780e11949411c9d9683fe845612b5fc10253a0906b2e7b7963eda71e86c
7
+ data.tar.gz: 1caf99c48abd9ef2b6886d3c0c225ccf6e9093786dab18d616297dd396584da5ebe2a1b2704e6145b3dc35020cc38b3fbeb8b1b7b431da7d90e6251fe443a3da
data/CHANGELOG.md CHANGED
@@ -6,6 +6,11 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [3.3.4] - 2025-05-02
10
+ ### Changed
11
+ - Make sure commands are still set as interrupted even on raised errors
12
+ - Duplicate call logic so to make sure that calls dont cross contaminate
13
+
9
14
  ## [3.3.3] - 2024-11-25
10
15
  ### Changed
11
16
  - Skip freezing in test environments so it doesnt interfere with stubbing
data/Gemfile.lock CHANGED
@@ -1,16 +1,16 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-command (3.3.3)
4
+ lite-command (3.3.4)
5
5
  activemodel
6
6
  ostruct
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionpack (8.0.0)
12
- actionview (= 8.0.0)
13
- activesupport (= 8.0.0)
11
+ actionpack (8.0.2)
12
+ actionview (= 8.0.2)
13
+ activesupport (= 8.0.2)
14
14
  nokogiri (>= 1.8.5)
15
15
  rack (>= 2.2.4)
16
16
  rack-session (>= 1.0.1)
@@ -18,15 +18,15 @@ GEM
18
18
  rails-dom-testing (~> 2.2)
19
19
  rails-html-sanitizer (~> 1.6)
20
20
  useragent (~> 0.16)
21
- actionview (8.0.0)
22
- activesupport (= 8.0.0)
21
+ actionview (8.0.2)
22
+ activesupport (= 8.0.2)
23
23
  builder (~> 3.1)
24
24
  erubi (~> 1.11)
25
25
  rails-dom-testing (~> 2.2)
26
26
  rails-html-sanitizer (~> 1.6)
27
- activemodel (8.0.0)
28
- activesupport (= 8.0.0)
29
- activesupport (8.0.0)
27
+ activemodel (8.0.2)
28
+ activesupport (= 8.0.2)
29
+ activesupport (8.0.2)
30
30
  base64
31
31
  benchmark (>= 0.3)
32
32
  bigdecimal
@@ -39,49 +39,58 @@ GEM
39
39
  securerandom (>= 0.3)
40
40
  tzinfo (~> 2.0, >= 2.0.5)
41
41
  uri (>= 0.13.1)
42
- ast (2.4.2)
42
+ ast (2.4.3)
43
43
  base64 (0.2.0)
44
44
  benchmark (0.4.0)
45
- bigdecimal (3.1.8)
45
+ bigdecimal (3.1.9)
46
46
  builder (3.3.0)
47
- concurrent-ruby (1.3.4)
48
- connection_pool (2.4.1)
47
+ concurrent-ruby (1.3.5)
48
+ connection_pool (2.5.3)
49
49
  crass (1.0.6)
50
- diff-lcs (1.5.1)
50
+ date (3.4.1)
51
+ diff-lcs (1.6.1)
51
52
  drb (2.2.1)
52
- erubi (1.13.0)
53
+ erubi (1.13.1)
53
54
  generator_spec (0.10.0)
54
55
  activesupport (>= 3.0.0)
55
56
  railties (>= 3.0.0)
56
- i18n (1.14.6)
57
+ i18n (1.14.7)
57
58
  concurrent-ruby (~> 1.0)
58
- io-console (0.7.2)
59
- irb (1.14.1)
59
+ io-console (0.8.0)
60
+ irb (1.15.2)
61
+ pp (>= 0.6.0)
60
62
  rdoc (>= 4.0.0)
61
63
  reline (>= 0.4.2)
62
- json (2.8.2)
63
- language_server-protocol (3.17.0.3)
64
- logger (1.6.1)
65
- loofah (2.23.1)
64
+ json (2.11.3)
65
+ language_server-protocol (3.17.0.4)
66
+ lint_roller (1.1.0)
67
+ logger (1.7.0)
68
+ loofah (2.24.0)
66
69
  crass (~> 1.0.2)
67
70
  nokogiri (>= 1.12.0)
68
71
  mini_portile2 (2.8.8)
69
- minitest (5.25.2)
70
- nokogiri (1.16.7)
72
+ minitest (5.25.5)
73
+ nokogiri (1.18.8)
71
74
  mini_portile2 (~> 2.8.2)
72
75
  racc (~> 1.4)
73
76
  ostruct (0.6.1)
74
- parallel (1.26.3)
75
- parser (3.3.6.0)
77
+ parallel (1.27.0)
78
+ parser (3.3.8.0)
76
79
  ast (~> 2.4.1)
77
80
  racc
78
- psych (5.2.0)
81
+ pp (0.6.2)
82
+ prettyprint
83
+ prettyprint (0.2.0)
84
+ prism (1.4.0)
85
+ psych (5.2.4)
86
+ date
79
87
  stringio
80
88
  racc (1.8.1)
81
- rack (3.1.8)
82
- rack-session (2.0.0)
89
+ rack (3.1.13)
90
+ rack-session (2.1.0)
91
+ base64 (>= 0.1.0)
83
92
  rack (>= 3.0.0)
84
- rack-test (2.1.0)
93
+ rack-test (2.2.0)
85
94
  rack (>= 1.3)
86
95
  rackup (2.2.1)
87
96
  rack (>= 3)
@@ -89,12 +98,12 @@ GEM
89
98
  activesupport (>= 5.0.0)
90
99
  minitest
91
100
  nokogiri (>= 1.6)
92
- rails-html-sanitizer (1.6.0)
101
+ rails-html-sanitizer (1.6.2)
93
102
  loofah (~> 2.21)
94
- nokogiri (~> 1.14)
95
- railties (8.0.0)
96
- actionpack (= 8.0.0)
97
- activesupport (= 8.0.0)
103
+ nokogiri (>= 1.15.7, != 1.16.7, != 1.16.6, != 1.16.5, != 1.16.4, != 1.16.3, != 1.16.2, != 1.16.1, != 1.16.0.rc1, != 1.16.0)
104
+ railties (8.0.2)
105
+ actionpack (= 8.0.2)
106
+ activesupport (= 8.0.2)
98
107
  irb (~> 1.13)
99
108
  rackup (>= 1.0.0)
100
109
  rake (>= 12.2)
@@ -102,55 +111,62 @@ GEM
102
111
  zeitwerk (~> 2.6)
103
112
  rainbow (3.1.1)
104
113
  rake (13.2.1)
105
- rdoc (6.8.1)
114
+ rdoc (6.13.1)
106
115
  psych (>= 4.0.0)
107
- regexp_parser (2.9.2)
108
- reline (0.5.11)
116
+ regexp_parser (2.10.0)
117
+ reline (0.6.1)
109
118
  io-console (~> 0.5)
110
119
  rspec (3.13.0)
111
120
  rspec-core (~> 3.13.0)
112
121
  rspec-expectations (~> 3.13.0)
113
122
  rspec-mocks (~> 3.13.0)
114
- rspec-core (3.13.2)
123
+ rspec-core (3.13.3)
115
124
  rspec-support (~> 3.13.0)
116
- rspec-expectations (3.13.3)
125
+ rspec-expectations (3.13.4)
117
126
  diff-lcs (>= 1.2.0, < 2.0)
118
127
  rspec-support (~> 3.13.0)
119
- rspec-mocks (3.13.2)
128
+ rspec-mocks (3.13.3)
120
129
  diff-lcs (>= 1.2.0, < 2.0)
121
130
  rspec-support (~> 3.13.0)
122
- rspec-support (3.13.1)
123
- rubocop (1.68.0)
131
+ rspec-support (3.13.3)
132
+ rubocop (1.75.4)
124
133
  json (~> 2.3)
125
- language_server-protocol (>= 3.17.0)
134
+ language_server-protocol (~> 3.17.0.2)
135
+ lint_roller (~> 1.1.0)
126
136
  parallel (~> 1.10)
127
137
  parser (>= 3.3.0.2)
128
138
  rainbow (>= 2.2.2, < 4.0)
129
- regexp_parser (>= 2.4, < 3.0)
130
- rubocop-ast (>= 1.32.2, < 2.0)
139
+ regexp_parser (>= 2.9.3, < 3.0)
140
+ rubocop-ast (>= 1.44.0, < 2.0)
131
141
  ruby-progressbar (~> 1.7)
132
- unicode-display_width (>= 2.4.0, < 3.0)
133
- rubocop-ast (1.36.1)
134
- parser (>= 3.3.1.0)
135
- rubocop-performance (1.23.0)
136
- rubocop (>= 1.48.1, < 2.0)
137
- rubocop-ast (>= 1.31.1, < 2.0)
138
- rubocop-rake (0.6.0)
139
- rubocop (~> 1.0)
140
- rubocop-rspec (3.2.0)
141
- rubocop (~> 1.61)
142
+ unicode-display_width (>= 2.4.0, < 4.0)
143
+ rubocop-ast (1.44.1)
144
+ parser (>= 3.3.7.2)
145
+ prism (~> 1.4)
146
+ rubocop-performance (1.25.0)
147
+ lint_roller (~> 1.1)
148
+ rubocop (>= 1.75.0, < 2.0)
149
+ rubocop-ast (>= 1.38.0, < 2.0)
150
+ rubocop-rake (0.7.1)
151
+ lint_roller (~> 1.1)
152
+ rubocop (>= 1.72.1)
153
+ rubocop-rspec (3.6.0)
154
+ lint_roller (~> 1.1)
155
+ rubocop (~> 1.72, >= 1.72.1)
142
156
  ruby-progressbar (1.13.0)
143
- securerandom (0.3.2)
144
- sqlite3 (2.3.0)
157
+ securerandom (0.4.1)
158
+ sqlite3 (2.6.0)
145
159
  mini_portile2 (~> 2.8.0)
146
- stringio (3.1.2)
160
+ stringio (3.1.7)
147
161
  thor (1.3.2)
148
162
  tzinfo (2.0.6)
149
163
  concurrent-ruby (~> 1.0)
150
- unicode-display_width (2.6.0)
151
- uri (1.0.2)
152
- useragent (0.16.10)
153
- zeitwerk (2.7.1)
164
+ unicode-display_width (3.1.4)
165
+ unicode-emoji (~> 4.0, >= 4.0.4)
166
+ unicode-emoji (4.0.4)
167
+ uri (1.0.3)
168
+ useragent (0.16.11)
169
+ zeitwerk (2.7.2)
154
170
 
155
171
  PLATFORMS
156
172
  ruby
@@ -75,14 +75,17 @@ module Lite
75
75
  end
76
76
 
77
77
  def execute
78
- execute!
79
- rescue StandardError
80
- # Do nothing
78
+ around_execution { call }
79
+ rescue StandardError => e
80
+ interrupted!
81
+ fault(e, Utils.cmd_try(e, :type) || ERROR, metadata, exception: e)
82
+ after_execution
81
83
  end
82
84
 
83
85
  def execute!
84
86
  around_execution { call }
85
87
  rescue StandardError => e
88
+ interrupted!
86
89
  fault(e, Utils.cmd_try(e, :type) || ERROR, metadata, exception: e)
87
90
  after_execution
88
91
  raise(e)
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Command
5
5
 
6
- VERSION = "3.3.3"
6
+ VERSION = "3.3.4"
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-command
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.3
4
+ version: 3.3.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
- autorequire:
9
8
  bindir: exe
10
9
  cert_chain: []
11
- date: 2024-11-25 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
13
  name: activemodel
@@ -164,7 +163,6 @@ dependencies:
164
163
  - - ">="
165
164
  - !ruby/object:Gem::Version
166
165
  version: '0'
167
- description:
168
166
  email:
169
167
  - j.gomez@drexed.com
170
168
  executables: []
@@ -214,7 +212,6 @@ licenses:
214
212
  - MIT
215
213
  metadata:
216
214
  rubygems_mfa_required: 'true'
217
- post_install_message:
218
215
  rdoc_options: []
219
216
  require_paths:
220
217
  - lib
@@ -229,8 +226,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
226
  - !ruby/object:Gem::Version
230
227
  version: '0'
231
228
  requirements: []
232
- rubygems_version: 3.5.23
233
- signing_key:
229
+ rubygems_version: 3.6.8
234
230
  specification_version: 4
235
231
  summary: Ruby Command based framework (aka service objects)
236
232
  test_files: []