run_tasks 3.2.6 → 3.2.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/src/run/core.rb +10 -5
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: '08041c87a941616b45fcbab38e5873b3b726c7f4be7e458b8ae24e5e26c845c5'
4
- data.tar.gz: cabbf4e5a35336181d68f33aa713967e1e465da50276809eb9b8654e3c1d2a0b
3
+ metadata.gz: 8e555958efc86d7844123107f0292ca6ed17b031fe2eaf97ab90e92a3cd2af1a
4
+ data.tar.gz: 6368108584d16bf4bc26008abfad9c6ffe35a7cd412ea302ee5e4d06f4973c2f
5
5
  SHA512:
6
- metadata.gz: 507949a5c939349c5d43d12dbc032eaca4d0816bf0ed718a9ced17bb5362879568f52930578782a14f336a8674aa1c83be29b0585875fae48e49f6c6d0c67600
7
- data.tar.gz: 60ebf9ac0fba1f51cc3573256f917ff72d186f6a3a61de9a24c146c4bea235f8a94d14e786ab24584ee03a89d835ae74aabf5e1774fa7eaee6f01a4bf5bd6b39
6
+ metadata.gz: 666dad6bf1e5a1c3d9cebbc2c73f1c81786a3efefb426d653856de32dc29b37f048fa4dfa6b6ac8412545af6332e736dd0cf3b5e357ef3245e58f192827371e4
7
+ data.tar.gz: 84d029de83a9f21b3a4775108678b48eb0b4befb9afdecb66b30346c68872c964e8860ca4c5b9afe0ce19f082f914bdea25b28a2a2b95dac575e8636fda205e6
data/src/run/core.rb CHANGED
@@ -117,18 +117,23 @@ module Run
117
117
  ARGV.slice(1, ARGV.size - 1).each do |arg|
118
118
  if (match = arg.match(/^\+([a-zA-Z_]\w*)$/))
119
119
  options[match[1].to_sym] = true
120
+ next
120
121
  elsif (match = arg.match(/^-([a-zA-Z_]\w*)$/))
121
122
  options[match[1].to_sym] = false
123
+ next
122
124
  elsif arg.match?(/^-?\d+$/)
123
125
  args << Integer(arg)
126
+ next
124
127
  elsif arg.match?(/^-?\d+\.\d+$/)
125
128
  args << Float(arg)
126
- else
127
- next args << true if arg == "true"
128
- next args << false if arg == "false"
129
- next args << arg.to_sym if arg.match?(/^\w+$/)
130
- args << arg
129
+ next
131
130
  end
131
+ raise
132
+ rescue
133
+ next args << true if arg == "true"
134
+ next args << false if arg == "false"
135
+ next args << arg.to_sym if arg.match?(/^\w+$/)
136
+ args << arg
132
137
  end
133
138
 
134
139
  run name, *args, **options
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: run_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.6
4
+ version: 3.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aurélien Delogu