dorian-eval 1.4.1 → 1.4.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/VERSION +1 -1
- data/bin/eval +17 -13
- data/lib/dorian/eval.rb +5 -4
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9d7a272daa6fb5f6fb24e3befe68aeb8d998f98c04ec2e836123000eb64451bd
|
4
|
+
data.tar.gz: '0955b048336373365f83d14a5b9e9ac7ba5e4feb46ae9fe3af1f26cbd7df4e5a'
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6dfb7752e53f551933c41e7ca4957701f1d68378100487b1bf8257896212d7d2fbe9d645e3606ac3ad0fad1f6a529a72a6f2b7915e0d4bf992987aa88691c541
|
7
|
+
data.tar.gz: 83f1f5e00173244d0f08922d963ba84cb563b8bf9e6524b855af001b7bee6059ef56c6da46e6ca0f3ad6083b4fd22dbc1cdf721bdba8427390bf9043fc5c625d
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.4.
|
1
|
+
1.4.2
|
data/bin/eval
CHANGED
@@ -28,8 +28,12 @@ parsed =
|
|
28
28
|
rails: {
|
29
29
|
alias: :r
|
30
30
|
},
|
31
|
-
returns: {
|
32
|
-
|
31
|
+
returns: {
|
32
|
+
alias: :return
|
33
|
+
},
|
34
|
+
fast: {
|
35
|
+
alias: :f
|
36
|
+
},
|
33
37
|
version: {
|
34
38
|
alias: :v
|
35
39
|
},
|
@@ -44,14 +48,14 @@ if parsed.options.version
|
|
44
48
|
abort File.read(File.expand_path("../VERSION", __dir__))
|
45
49
|
end
|
46
50
|
|
47
|
-
Dorian::Eval.eval(
|
48
|
-
|
49
|
-
|
50
|
-
|
51
|
-
|
52
|
-
|
53
|
-
|
54
|
-
|
55
|
-
|
56
|
-
|
57
|
-
)
|
51
|
+
p Dorian::Eval.eval(
|
52
|
+
ruby: parsed.arguments.join(" "),
|
53
|
+
it: parsed.options.it,
|
54
|
+
debug: parsed.options.debug,
|
55
|
+
stdout: parsed.options.stdout,
|
56
|
+
stderr: parsed.options.stderr,
|
57
|
+
colorize: parsed.options.colorize,
|
58
|
+
rails: parsed.options.rails,
|
59
|
+
returns: parsed.options.returns,
|
60
|
+
fast: parsed.options.fast
|
61
|
+
)
|
data/lib/dorian/eval.rb
CHANGED
@@ -4,11 +4,12 @@ require "yaml"
|
|
4
4
|
|
5
5
|
class Dorian
|
6
6
|
class Eval
|
7
|
-
Return =
|
8
|
-
|
9
|
-
|
7
|
+
Return =
|
8
|
+
Data.define(:stdout, :stderr, :returned) do
|
9
|
+
def initialize(stdout: "", stderr: "", returned: nil)
|
10
|
+
super
|
11
|
+
end
|
10
12
|
end
|
11
|
-
end
|
12
13
|
|
13
14
|
attr_reader :ruby,
|
14
15
|
:it,
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dorian-eval
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.4.
|
4
|
+
version: 1.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dorian Marié
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-
|
11
|
+
date: 2024-09-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: yaml
|
@@ -46,16 +46,16 @@ require_paths:
|
|
46
46
|
- lib
|
47
47
|
required_ruby_version: !ruby/object:Gem::Requirement
|
48
48
|
requirements:
|
49
|
-
- -
|
49
|
+
- - ">="
|
50
50
|
- !ruby/object:Gem::Version
|
51
|
-
version: 3
|
51
|
+
version: '3'
|
52
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
53
53
|
requirements:
|
54
54
|
- - ">="
|
55
55
|
- !ruby/object:Gem::Version
|
56
56
|
version: '0'
|
57
57
|
requirements: []
|
58
|
-
rubygems_version: 3.5.
|
58
|
+
rubygems_version: 3.5.16
|
59
59
|
signing_key:
|
60
60
|
specification_version: 4
|
61
61
|
summary: evaluates ruby
|