bard 0.23.1 → 0.24.0

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 (5) hide show
  1. checksums.yaml +4 -4
  2. data/lib/bard.rb +12 -0
  3. data/lib/bard/version.rb +1 -1
  4. metadata +1 -2
  5. data/.document +0 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 07d5c93a6df172df91066f90c0bc8832aeb68b80
4
- data.tar.gz: fceecc7432bd7e7fed5e6f43efae4a44b02662cf
3
+ metadata.gz: e5731507283c3bf5a89b7e1587c28c515b5ec497
4
+ data.tar.gz: 139650175645c902fb00f334841e3ebb84d4bf0a
5
5
  SHA512:
6
- metadata.gz: 716ea0db922225e502aeacefff4e53d2d45e29d455ff62c2008be67d82420f5517d299da35e293216a38990eefb94d786451cd7408e4f33d463e3815a1f5170a
7
- data.tar.gz: 66847050ea9676a3f92f541e49a4101aa7bd36f3c50098f92f11ada2f5ca97ceb67d00c40e271920fa499628cc2f53b25fed24fd5fd7ee1024241e652c0371a8
6
+ metadata.gz: dbfd742357fcfbb9d6f9ce4ae7d726d61e31862752f824ef5ae16c8c26d4d7044eb2f35f83b7a258e541a6477fa0fcb575e58adebb9c931e946c27ba61ab9fc5
7
+ data.tar.gz: 099933305e26d9acca29225b73d45a8ccd39845ca51834954b4f2ff71403b637dba2a3becf265f1f8e8bc8e1e5b7dc63292e394a4732b325f822cfa477dbd1e3
@@ -97,5 +97,17 @@ class Bard::CLI < Thor
97
97
  puts "Automated tests failed!"
98
98
  end
99
99
  end
100
+
101
+ desc "hurt", "reruns a command until it fails"
102
+ def hurt *args
103
+ 1.upto(Float::INFINITY) do |count|
104
+ puts "Running attempt #{count}"
105
+ system *args
106
+ unless $?.success?
107
+ puts "Ran #{count-1} times before failing"
108
+ break
109
+ end
110
+ end
111
+ end
100
112
  end
101
113
 
@@ -1,4 +1,4 @@
1
1
  module Bard
2
- VERSION = "0.23.1"
2
+ VERSION = "0.24.0"
3
3
  end
4
4
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bard
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.23.1
4
+ version: 0.24.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel
@@ -144,7 +144,6 @@ executables:
144
144
  extensions: []
145
145
  extra_rdoc_files: []
146
146
  files:
147
- - ".document"
148
147
  - ".gitignore"
149
148
  - ".gitmodules"
150
149
  - ".ruby-gemset"
data/.document DELETED
@@ -1,5 +0,0 @@
1
- README.rdoc
2
- lib/**/*.rb
3
- bin/*
4
- features/**/*.feature
5
- LICENSE