lite-command 3.3.1 → 3.3.3

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: 715ff5866aa3e438fe2da7a110146697ba7cb096e6e971fd433b43004e950767
4
- data.tar.gz: 896ab3c6aeca65820801d76669034635d2b71e46272a7ac568cd9998e378ca12
3
+ metadata.gz: b6a5bf6c4295f3db5079e09bacf781b0e9733632a3f29eda27cbe4b8bbad70d1
4
+ data.tar.gz: 5b76736114e481183ece5306b15b5b65aee8f4b7475183c41ec162728d48b3eb
5
5
  SHA512:
6
- metadata.gz: f82235ae25a48c0662a3948a8fd3c5e06605a76b284bcabfea32aad3df5efa36cb48778ec3ced570dd14bb05433c76c7fd9aa71df2e96004f258fed8fd27632f
7
- data.tar.gz: 01475342f8fe446f4ed69a7a4114fd7924a08fb96f3e659c3d65d332ff28c5c1fd4376a4c9dddd72f38074fb708252d9459bea11d913f9ef4d284edffd227f12
6
+ metadata.gz: c3ae9d6b677e3738b8cd71a88c9e6b2240d2c61068ea6aa0af3b84db675426df33e6b0cc954b204626255d4c8c7a8edfd5d2f72858200e6cfd0594d8a8dc0c3f
7
+ data.tar.gz: f56a661c40a41d19596546c4372e34ae4215e05d3d6e594d007e10df11ea6b200492db9315f9295dfd0f671d9e417bea6bfff078cdb4e8a84d23cbc277d83d92
data/CHANGELOG.md CHANGED
@@ -6,6 +6,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
6
6
 
7
7
  ## [Unreleased]
8
8
 
9
+ ## [3.3.3] - 2024-11-25
10
+ ### Changed
11
+ - Skip freezing in test environments so it doesnt interfere with stubbing
12
+
13
+ ## [3.3.2] - 2024-11-08
14
+ ### Changed
15
+ - Fixed issue where commands didnt delegate to private methods
16
+
9
17
  ## [3.3.1] - 2024-11-06
10
18
  ### Removed
11
19
  - Remove `to_hash` method
data/Gemfile.lock CHANGED
@@ -1,33 +1,32 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- lite-command (3.3.1)
4
+ lite-command (3.3.3)
5
5
  activemodel
6
6
  ostruct
7
7
 
8
8
  GEM
9
9
  remote: https://rubygems.org/
10
10
  specs:
11
- actionpack (7.2.2)
12
- actionview (= 7.2.2)
13
- activesupport (= 7.2.2)
11
+ actionpack (8.0.0)
12
+ actionview (= 8.0.0)
13
+ activesupport (= 8.0.0)
14
14
  nokogiri (>= 1.8.5)
15
- racc
16
- rack (>= 2.2.4, < 3.2)
15
+ rack (>= 2.2.4)
17
16
  rack-session (>= 1.0.1)
18
17
  rack-test (>= 0.6.3)
19
18
  rails-dom-testing (~> 2.2)
20
19
  rails-html-sanitizer (~> 1.6)
21
20
  useragent (~> 0.16)
22
- actionview (7.2.2)
23
- activesupport (= 7.2.2)
21
+ actionview (8.0.0)
22
+ activesupport (= 8.0.0)
24
23
  builder (~> 3.1)
25
24
  erubi (~> 1.11)
26
25
  rails-dom-testing (~> 2.2)
27
26
  rails-html-sanitizer (~> 1.6)
28
- activemodel (7.2.2)
29
- activesupport (= 7.2.2)
30
- activesupport (7.2.2)
27
+ activemodel (8.0.0)
28
+ activesupport (= 8.0.0)
29
+ activesupport (8.0.0)
31
30
  base64
32
31
  benchmark (>= 0.3)
33
32
  bigdecimal
@@ -39,9 +38,10 @@ GEM
39
38
  minitest (>= 5.1)
40
39
  securerandom (>= 0.3)
41
40
  tzinfo (~> 2.0, >= 2.0.5)
41
+ uri (>= 0.13.1)
42
42
  ast (2.4.2)
43
43
  base64 (0.2.0)
44
- benchmark (0.3.0)
44
+ benchmark (0.4.0)
45
45
  bigdecimal (3.1.8)
46
46
  builder (3.3.0)
47
47
  concurrent-ruby (1.3.4)
@@ -59,23 +59,23 @@ GEM
59
59
  irb (1.14.1)
60
60
  rdoc (>= 4.0.0)
61
61
  reline (>= 0.4.2)
62
- json (2.8.0)
62
+ json (2.8.2)
63
63
  language_server-protocol (3.17.0.3)
64
64
  logger (1.6.1)
65
65
  loofah (2.23.1)
66
66
  crass (~> 1.0.2)
67
67
  nokogiri (>= 1.12.0)
68
- mini_portile2 (2.8.7)
69
- minitest (5.25.1)
68
+ mini_portile2 (2.8.8)
69
+ minitest (5.25.2)
70
70
  nokogiri (1.16.7)
71
71
  mini_portile2 (~> 2.8.2)
72
72
  racc (~> 1.4)
73
- ostruct (0.6.0)
73
+ ostruct (0.6.1)
74
74
  parallel (1.26.3)
75
75
  parser (3.3.6.0)
76
76
  ast (~> 2.4.1)
77
77
  racc
78
- psych (5.1.2)
78
+ psych (5.2.0)
79
79
  stringio
80
80
  racc (1.8.1)
81
81
  rack (3.1.8)
@@ -83,7 +83,7 @@ GEM
83
83
  rack (>= 3.0.0)
84
84
  rack-test (2.1.0)
85
85
  rack (>= 1.3)
86
- rackup (2.2.0)
86
+ rackup (2.2.1)
87
87
  rack (>= 3)
88
88
  rails-dom-testing (2.2.0)
89
89
  activesupport (>= 5.0.0)
@@ -92,9 +92,9 @@ GEM
92
92
  rails-html-sanitizer (1.6.0)
93
93
  loofah (~> 2.21)
94
94
  nokogiri (~> 1.14)
95
- railties (7.2.2)
96
- actionpack (= 7.2.2)
97
- activesupport (= 7.2.2)
95
+ railties (8.0.0)
96
+ actionpack (= 8.0.0)
97
+ activesupport (= 8.0.0)
98
98
  irb (~> 1.13)
99
99
  rackup (>= 1.0.0)
100
100
  rake (>= 12.2)
@@ -102,10 +102,10 @@ GEM
102
102
  zeitwerk (~> 2.6)
103
103
  rainbow (3.1.1)
104
104
  rake (13.2.1)
105
- rdoc (6.7.0)
105
+ rdoc (6.8.1)
106
106
  psych (>= 4.0.0)
107
107
  regexp_parser (2.9.2)
108
- reline (0.5.10)
108
+ reline (0.5.11)
109
109
  io-console (~> 0.5)
110
110
  rspec (3.13.0)
111
111
  rspec-core (~> 3.13.0)
@@ -130,9 +130,9 @@ GEM
130
130
  rubocop-ast (>= 1.32.2, < 2.0)
131
131
  ruby-progressbar (~> 1.7)
132
132
  unicode-display_width (>= 2.4.0, < 3.0)
133
- rubocop-ast (1.34.0)
133
+ rubocop-ast (1.36.1)
134
134
  parser (>= 3.3.1.0)
135
- rubocop-performance (1.22.1)
135
+ rubocop-performance (1.23.0)
136
136
  rubocop (>= 1.48.1, < 2.0)
137
137
  rubocop-ast (>= 1.31.1, < 2.0)
138
138
  rubocop-rake (0.6.0)
@@ -140,14 +140,15 @@ GEM
140
140
  rubocop-rspec (3.2.0)
141
141
  rubocop (~> 1.61)
142
142
  ruby-progressbar (1.13.0)
143
- securerandom (0.3.1)
144
- sqlite3 (2.2.0)
143
+ securerandom (0.3.2)
144
+ sqlite3 (2.3.0)
145
145
  mini_portile2 (~> 2.8.0)
146
- stringio (3.1.1)
146
+ stringio (3.1.2)
147
147
  thor (1.3.2)
148
148
  tzinfo (2.0.6)
149
149
  concurrent-ruby (~> 1.0)
150
150
  unicode-display_width (2.6.0)
151
+ uri (1.0.2)
151
152
  useragent (0.16.10)
152
153
  zeitwerk (2.7.1)
153
154
 
@@ -34,7 +34,7 @@ module Lite
34
34
  def delegates(*attributes, from: :context)
35
35
  attributes.each do |method_name|
36
36
  define_method(method_name) do
37
- return unless respond_to?(from)
37
+ return unless respond_to?(from, true)
38
38
 
39
39
  Utils.cmd_try(send(from), method_name)
40
40
  end
@@ -40,6 +40,8 @@ module Lite
40
40
  end
41
41
 
42
42
  def freeze_execution_objects
43
+ return if (ENV.fetch("RAILS_ENV", nil) || ENV.fetch("RACK_ENV", nil)) == "test"
44
+
43
45
  context.freeze if index == 1
44
46
  freeze
45
47
  end
@@ -3,7 +3,7 @@
3
3
  module Lite
4
4
  module Command
5
5
 
6
- VERSION = "3.3.1"
6
+ VERSION = "3.3.3"
7
7
 
8
8
  end
9
9
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: lite-command
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.3.1
4
+ version: 3.3.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Juan Gomez
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-11-06 00:00:00.000000000 Z
11
+ date: 2024-11-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activemodel
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  - !ruby/object:Gem::Version
230
230
  version: '0'
231
231
  requirements: []
232
- rubygems_version: 3.5.22
232
+ rubygems_version: 3.5.23
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: Ruby Command based framework (aka service objects)