run_tasks 1.7.0 → 1.7.2

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.rb +9 -4
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 4d28b64a797694474cb625f1359e5ba0cf58316c
4
- data.tar.gz: a5de99dc39b841f4a215818410803a777b558dea
3
+ metadata.gz: c47ce0b315fb725790ca73c756fb07e4df07cfee
4
+ data.tar.gz: 3ccc2f2e12b3f0dd678c64d6e1712d99e925fb00
5
5
  SHA512:
6
- metadata.gz: 31fa21481a39c615caa2663f9673717250a2b0ba12c52998d73ea6cbeaf69d4e1797fc0173c765f78aa0df46fbd1f7d6f6ad9d807eb2aa25c5f3b3663fd88cb8
7
- data.tar.gz: 585078fa341b255f561951ed5ed9056d73c2d2e79c27d3c6a9b9bf6583facecb7f3184ed6d82799db9491d6381cb324a4996b1b8cabac9db562ad73b9535e6c7
6
+ metadata.gz: ea175977e51c22670c14404e2c1809ef557ad3ed36109a1f3d115ba44e71169b8d9c5b3d118e940c9147cce309c137ae2235af7734fc93c58452e410cfa14a16
7
+ data.tar.gz: 4db07004a077200b2b6d5b252c906e92745d4c6f16f0929911ea78fafe196b89d77ae9a2095c8fc818ec372b99f2a9df1035040cad2a078b0ccd4a62c781f860
data/src/run.rb CHANGED
@@ -122,6 +122,7 @@ def menu(text, choices)
122
122
  choice = STDIN.gets.chomp.to_i
123
123
  break if !values[choice - 1].nil?
124
124
  end
125
+ puts
125
126
 
126
127
  values[choice - 1]
127
128
  end
@@ -129,7 +130,7 @@ end
129
130
  # @param uri [String]
130
131
  def require_remote(uri)
131
132
  cache_path = "/tmp/run_cache_#{Digest::MD5.hexdigest(uri)}"
132
- if !File.exists? cache_path
133
+ if !File.exist? cache_path
133
134
  File.write(cache_path, URI.parse(uri).open.read)
134
135
  end
135
136
  eval File.read(cache_path)
@@ -150,7 +151,7 @@ end
150
151
 
151
152
  RUNFILE = "Runfile.rb"
152
153
 
153
- if !File.exists?(RUNFILE)
154
+ if !File.exist?(RUNFILE)
154
155
  puts
155
156
  puts "#{RUNFILE} does not exist".red
156
157
  exit 7
@@ -208,7 +209,7 @@ if VERSION && HOMEPAGE
208
209
  .read
209
210
  version = /^\s*s.version\s*=\s*"(.+?)"\s*$/.match(contents)
210
211
  if !version.nil?
211
- next if File.exists?("/tmp/run_dismiss_#{version}")
212
+ next if File.exist?("/tmp/run_dismiss_#{version}")
212
213
  current = VERSION.split "."
213
214
  latest = version[1].split "."
214
215
  if current[0].to_i < latest[0].to_i ||
@@ -240,6 +241,10 @@ rescue Interrupt
240
241
  rescue => error
241
242
  puts
242
243
  puts "· #{error.message}".red
243
- puts "· #{error.backtrace.first}".red
244
+ puts "· #{error.backtrace[0]}".red
245
+ puts "· #{error.backtrace[1]}".red if error.backtrace[1]
246
+ puts "· #{error.backtrace[2]}".red if error.backtrace[2]
247
+ puts "· #{error.backtrace[3]}".red if error.backtrace[3]
248
+ puts "· #{error.backtrace[4]}".red if error.backtrace[4]
244
249
  exit 4
245
250
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: run_tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.7.0
4
+ version: 1.7.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Aurélien Delogu
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-07-28 00:00:00.000000000 Z
11
+ date: 2023-08-13 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: aurelien.delogu@gmail.com