zenkeeper 0.0.2 → 0.0.3
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 +4 -4
- data/lib/commands/push.rb +16 -0
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7af0e48c087900032baf26e8febb91b5aa02ca62
|
4
|
+
data.tar.gz: 2e0652496f126d8b72e5d7bf6a8133e468d27250
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5b8cf405a515a22898091d167139afe6db05b04620810ed7cdf341302c889901d324ea7c928ad72b15a7cb2a420bfeca9070338da1c0bac05f973b73d7541a2
|
7
|
+
data.tar.gz: 439cf6f6f1b1c07ab43b82c62873628eddb2a7ab1a67ad55247280e6a0d1eb5c1d585ff3415e918061afc88e81c1cb44ec5daf66b7769fe3ddaebf913468bf4b
|
data/lib/commands/push.rb
CHANGED
@@ -4,7 +4,23 @@ class Commands::Push < Clamp::Command
|
|
4
4
|
|
5
5
|
parameter "project_token", "Your project API token"
|
6
6
|
|
7
|
+
option "--safe", :flag, "never fail even when it fails"
|
8
|
+
|
7
9
|
def execute
|
10
|
+
if safe?
|
11
|
+
begin
|
12
|
+
Timeout::timeout(4){ upload }
|
13
|
+
rescue Exception => e
|
14
|
+
puts "An exception occured: #{e.class}"
|
15
|
+
end
|
16
|
+
else
|
17
|
+
upload
|
18
|
+
end
|
19
|
+
end
|
20
|
+
|
21
|
+
private
|
22
|
+
|
23
|
+
def upload
|
8
24
|
Uploader.upload(
|
9
25
|
project_token: project_token
|
10
26
|
)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zenkeeper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Michael Bensoussan
|
@@ -26,7 +26,7 @@ dependencies:
|
|
26
26
|
- !ruby/object:Gem::Version
|
27
27
|
version: 1.0.0
|
28
28
|
description: Zenkeeper
|
29
|
-
email: contact@zenkeeper.
|
29
|
+
email: contact@zenkeeper.io
|
30
30
|
executables:
|
31
31
|
- zenkeeper
|
32
32
|
extensions: []
|
@@ -58,7 +58,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
58
58
|
version: '0'
|
59
59
|
requirements: []
|
60
60
|
rubyforge_project:
|
61
|
-
rubygems_version: 2.4.
|
61
|
+
rubygems_version: 2.4.5.1
|
62
62
|
signing_key:
|
63
63
|
specification_version: 4
|
64
64
|
summary: Zenkeeper
|