dorian-each 1.1.1 → 1.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/each +3 -2
- metadata +4 -4
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4757ed8c123f24f083dcf3bd57f9acddafb2917c70ccf82e28befcb8b03c18c
|
4
|
+
data.tar.gz: 58209da8fea2eaba5ff8eb3df14495173be740b025857236afefe073314d6a8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3f5a5c1db1a4e2e40bc3ea4eeca6b410d36b3571b317f550f2a0a6d08ec566ee8db8b018f36e521bebc88b55ec05b52e4c40197942f5d6d0f4ccca25bb7ad697
|
7
|
+
data.tar.gz: db7f1086c7b5274f46a30570120a00445152dc3ac5156f1fbb17d25d2ffa2eb65ddc6020acae6fe1cbc852aecc7fbd143eeb23e84e5d7916a872a816077494db
|
data/bin/each
CHANGED
@@ -44,7 +44,7 @@ parsed =
|
|
44
44
|
abort parsed.help if parsed.options.help
|
45
45
|
|
46
46
|
if parsed.options.version
|
47
|
-
abort File.read(File.expand_path("
|
47
|
+
abort File.read(File.expand_path("../VERSION", __dir__))
|
48
48
|
end
|
49
49
|
|
50
50
|
input = parsed.files.map { |file| File.read(file) }.join("\n")
|
@@ -59,8 +59,9 @@ colorize = parsed.options.colorize
|
|
59
59
|
total = inputs.size
|
60
60
|
format = parsed.options.progress_format
|
61
61
|
progress = progress ? Dorian::Progress.create(total:, format:) : nil
|
62
|
+
rails = parsed.options.rails
|
62
63
|
|
63
64
|
inputs.each do |it|
|
64
|
-
Dorian::Eval.eval(it:, ruby:, debug:, stdout:, stderr:, colorize:)
|
65
|
+
Dorian::Eval.eval(it:, ruby:, debug:, stdout:, stderr:, colorize:, rails:)
|
65
66
|
progress&.increment
|
66
67
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dorian-each
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.2.1
|
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: dorian-arguments
|
@@ -73,14 +73,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
73
73
|
requirements:
|
74
74
|
- - ">="
|
75
75
|
- !ruby/object:Gem::Version
|
76
|
-
version: '
|
76
|
+
version: '3'
|
77
77
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
78
78
|
requirements:
|
79
79
|
- - ">="
|
80
80
|
- !ruby/object:Gem::Version
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
|
-
rubygems_version: 3.5.
|
83
|
+
rubygems_version: 3.5.16
|
84
84
|
signing_key:
|
85
85
|
specification_version: 4
|
86
86
|
summary: evaluates some code on each line of the input
|