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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/each +3 -2
  3. metadata +4 -4
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 44309e092f94e766bcf71b6aa5dfaf199f6a03d9c5c07b2f5230f1e7a5463313
4
- data.tar.gz: 63a19748a5f3883017241b1a878e7367efaa2cf06b0ba74d03391d30edd4f54e
3
+ metadata.gz: d4757ed8c123f24f083dcf3bd57f9acddafb2917c70ccf82e28befcb8b03c18c
4
+ data.tar.gz: 58209da8fea2eaba5ff8eb3df14495173be740b025857236afefe073314d6a8a
5
5
  SHA512:
6
- metadata.gz: fb106b922ffd95dafd6acc877c6a0d4b92a412895ad33dc8dca378f87a334314eb4e7560eb149469554f2a0a1e5969dd504fbff8fcc896b2209d8fcba374f547
7
- data.tar.gz: 70a8bdb382804b98de4063cec9d3792a4deb4119cbf2416e491f14f0d11f20c5c7782108f533aca20a357dff67d76d4cdc4907c5eb98b39ea90d448bdc244c4b
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("../../VERSION", __FILE__))
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.1.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-08-24 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: 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: '0'
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.11
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