zotplus-rakehelper 0.0.129 → 0.0.130
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/zotplus-rakehelper/version.rb +1 -1
- data/lib/zotplus-rakehelper.rb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6cda1fe39f347320346385995bd7b1cd139fcf96
|
|
4
|
+
data.tar.gz: f007f63dbbcf9d103581d6dd92f798d885632ac6
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9494fef7606188be893840ee43b341901f33954ed358804e741cc664f258c9124a1d87ce0e8ffb0e3e69d07d851df80e166b38a4e279bd871922c3c3806bfbb
|
|
7
|
+
data.tar.gz: e5697b6d31486ec95d2ea97eb361abbe7f64e4fd2bd62283ecbd18073d065afe50438fd27867cee0fb2a6e86159580592ed89aebb828c25487bd4a8425f5b845
|
data/lib/zotplus-rakehelper.rb
CHANGED
|
@@ -137,6 +137,7 @@ file SIGNED => XPI do
|
|
|
137
137
|
begin
|
|
138
138
|
puts "Submit #{XPI} to #{url} for signing"
|
|
139
139
|
RestClient.put(url, {upload: File.new(XPI)}, { 'Authorization' => "JWT #{token.call}", 'Content-Type' => 'multipart/form-data' })
|
|
140
|
+
sleep 10
|
|
140
141
|
rescue RestClient::Conflict
|
|
141
142
|
puts "#{XPI} already signed"
|
|
142
143
|
end
|
|
@@ -144,12 +145,12 @@ file SIGNED => XPI do
|
|
|
144
145
|
status = {}
|
|
145
146
|
wait = Time.now.to_i
|
|
146
147
|
(1..100).each{|attempt|
|
|
147
|
-
sleep 10
|
|
148
148
|
status = JSON.parse(RestClient.get(url, { 'Authorization' => "JWT #{token.call}"} ).to_s)
|
|
149
149
|
files = (status['files'] || []).length
|
|
150
150
|
signed = (files > 0 ? status['files'][0]['signed'] : false)
|
|
151
151
|
puts "attempt #{attempt} after #{duration.call(Time.now.to_i - wait)}, #{files} files, signed: #{signed}"
|
|
152
152
|
break if signed
|
|
153
|
+
sleep 5
|
|
153
154
|
}
|
|
154
155
|
|
|
155
156
|
raise "Unexpected response: #{status['files'].inspect}" if !status['files'] || status['files'].length != 1 || !status['files'][0]['download_url']
|
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: zotplus-rakehelper
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.130
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Emiliano Heyns
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-12-
|
|
11
|
+
date: 2015-12-09 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|