dry-stack 0.0.65 → 0.0.66
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/dry-stack/command_line.rb +4 -1
- data/lib/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0744df1483b4323addc08c050c291eef4ad60cdd2a9f715cead6f5eca28a816b
|
4
|
+
data.tar.gz: f1f35fd550ad5d6b5f78d18aab2e9fb63ca53d8b419f6ba7b51114dbedc81cbf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: bf2be88c5378759774f873a3afcc54c9d625b83a7a8eb25b9375764914c79db07a7468a52065867aaea0f517e7dec3fddf0242fb8f22531acab8aa78ce3a998b
|
7
|
+
data.tar.gz: 99bddd3ffd562d103cf16e84a56b85166fd323e1a44e7fff6244345662b7043f39b2f7f792910c5b1b7929ccb4be3ccddab6467c036f5b59a6eac3a2a52df724
|
@@ -29,6 +29,8 @@ module Dry
|
|
29
29
|
raise 'Invalid .env file'
|
30
30
|
end
|
31
31
|
|
32
|
+
def safe_eval(str) = Dry::Stack() { eval str, self.binding }
|
33
|
+
|
32
34
|
def run(args)
|
33
35
|
params = {}
|
34
36
|
|
@@ -69,7 +71,8 @@ module Dry
|
|
69
71
|
stack_text = File.read(params[:stack]) if params[:stack]
|
70
72
|
stack_text ||= STDIN.read unless $stdin.tty?
|
71
73
|
|
72
|
-
|
74
|
+
safe_eval stack_text # isolate context
|
75
|
+
|
73
76
|
Stack.last_stack.name = params[:name] if params[:name]
|
74
77
|
COMMANDS[command.to_sym].run Stack.last_stack, params
|
75
78
|
rescue => e
|
data/lib/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dry-stack
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.66
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Artyom B
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2023-09-
|
11
|
+
date: 2023-09-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rake
|