please_retry 1.0.0 → 1.1.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 1104f568b7c7b98aab1d18ef2adc00c06dce6582fecdc7174b7ca3bffe6b1dd2
4
- data.tar.gz: 25c2d25de922a14a6070eff64e4cc7ac4ddef281fb98d413357f71825b2fd20b
3
+ metadata.gz: d0a019302ffbcc89985587cf25a26090929aec06df3478d35a76267def8b86b4
4
+ data.tar.gz: 8dfe3a0b8bd2db4913c7da7c76fe831bea8b8ab2fa0d15397a1416db097ed066
5
5
  SHA512:
6
- metadata.gz: 4aa127745b3d8c0c66e948ae1212265ea70d152e4ade4acd2b6ee3fa9c691ffc65a50e07d72e5d45b2887843a4d2269f5144e1770cdba193162dea965ddbe172
7
- data.tar.gz: 60f4c94dff927fdf789c266234b6fe71fa27e71a9f7f9d6eba0835f3cfa3ea92a0ee8407d61a8211b4849a768e7b62defefd3362fcfd8e069530cf0488d2de5a
6
+ metadata.gz: 7ec4f257e798440cdee87d762e6750b18c919f4d2b2c9aea11cca11715b907f464523a4e8ed68023b5a952974a607ed134ac6cc0d6ef97fc1584e83acc12c2ae
7
+ data.tar.gz: dc5935f0a8a7546a304f8e58ded3ea9d9f28dd54efa8b67295e8b879e27f5ac9048af76d48b42887ba3e38f8c9cde205417658207db033e614099deb644ff87d
data/README.md CHANGED
@@ -1,28 +1,13 @@
1
1
  # PleaseRetry
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/please_retry`. To experiment with that code, run `bin/console` for an interactive prompt.
4
-
5
- TODO: Delete this and the text above, and describe your gem
6
-
7
- ## Installation
8
-
9
- Add this line to your application's Gemfile:
10
-
11
- ```ruby
12
- gem 'please_retry'
13
- ```
14
-
15
- And then execute:
16
-
17
- $ bundle
18
-
19
- Or install it yourself as:
20
-
21
- $ gem install please_retry
3
+ A useful tool for retrying a script as much as you want.
22
4
 
23
5
  ## Usage
24
6
 
25
- TODO: Write usage instructions here
7
+ $ gem install please_retry
8
+ $ retry some_command_that_might_fail
9
+ # or
10
+ $ RETRY_ATTEMPTS=10 retry some_command_that_might_fail
26
11
 
27
12
  ## Development
28
13
 
data/exe/retry CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  count = 1
4
- attempts = (ENV['TRAVIS_RETRY'] || 3).to_i
4
+ attempts = (ENV['RETRY_ATTEMPTS'] || 3).to_i
5
5
  command = ARGV.join(" ")
6
6
 
7
7
  if command.empty?
@@ -1,3 +1,3 @@
1
1
  module PleaseRetry
2
- VERSION = "1.0.0"
2
+ VERSION = "1.1.0"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: please_retry
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.0
4
+ version: 1.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Will Lewis