dorian-eval 1.4.1 → 1.4.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/VERSION +1 -1
  3. data/bin/eval +17 -13
  4. data/lib/dorian/eval.rb +5 -4
  5. metadata +5 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 6703e36e324b4d2bfb01ea10df40e58cc6e9d71361a360e96046ecf7cd63b1ec
4
- data.tar.gz: 87724996f3b92701a0804331ba24d539ec2ebba7400221582214394228c8aa6f
3
+ metadata.gz: '038de198256b896cb637183032a92eb151d5e3e1790ec43a01d250409787557a'
4
+ data.tar.gz: efaad5e5c13cd8556fc183a60f748f45583bb9fa230446f83fa858b72e1e3ed3
5
5
  SHA512:
6
- metadata.gz: 48749012f9b6a5c9312a6390588565d519abab6efd462de2d0bbc8879efe8d0e69e6d48d8b7378ac5dc43b642c352edbb3397a9c580dc92395a4b9b70d1f7949
7
- data.tar.gz: 9af9ad5cd930bf83101b7960fc6dbd18686002bc6109377733403fe28897bd29c1c83eb5fe9a552d73003592f09deeda338d0cc8b57dcb8a792d7d46685f1b14
6
+ metadata.gz: 9d68748405bb6a7921ce4fbeed66f029a8526f4e460ef7c84f8b7e9a5462e6c2c6c41e3c8aef5c32a0288d299c1e64af091c436dd7c1e9d1507befcf7e183f7d
7
+ data.tar.gz: 645be168642cfacb0ed2b008d25157b511af395dd8dced06228cb061fd70b9b8feb58c4af21244344e3b7145d6bc4c02c47c720e70a30fb6225708a7c6254fdc
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 1.4.3
data/bin/eval CHANGED
@@ -28,8 +28,12 @@ parsed =
28
28
  rails: {
29
29
  alias: :r
30
30
  },
31
- returns: { alias: :return },
32
- fast: { alias: :f },
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
- ruby: parsed.arguments.join(" "),
49
- it: parsed.options.it,
50
- debug: parsed.options.debug,
51
- stdout: parsed.options.stdout,
52
- stderr: parsed.options.stderr,
53
- colorize: parsed.options.colorize,
54
- rails: parsed.options.rails,
55
- returns: parsed.options.returns,
56
- fast: parsed.options.fast
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 = Data.define(:stdout, :stderr, :returned) do
8
- def initialize(stdout: "", stderr: "", returned: nil)
9
- super(stdout:, stderr:, returned:)
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.1
4
+ version: 1.4.3
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-08-31 00:00:00.000000000 Z
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.3.4
51
+ version: 3.3.0
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.11
58
+ rubygems_version: 3.5.16
59
59
  signing_key:
60
60
  specification_version: 4
61
61
  summary: evaluates ruby