zotplus-rakehelper 0.0.121 → 0.0.122
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zotplus-rakehelper.rb +3 -1
- data/lib/zotplus-rakehelper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f9f2d86e1e5b55e44fd951fe1f8bdda1108087be
|
4
|
+
data.tar.gz: f451f0c2abcc6fd95f41b36d01494986319c4b3f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a50573aa51df43ab69cc136c95589f4d72eeb0ba2882e236e6b7af4fe30425362366a13950411b638cd8a0ab6f5eec8cbcca0e1bb198db167af5559206562826
|
7
|
+
data.tar.gz: c1ca65e02e44b338b4e79a69c21f622d3fbe20986ea15739de42a6669c81aed74aa81a435ad393ac5d0459c0cb754602d8c91fa1cda12bb29bb1dc7741cd1dc5
|
data/lib/zotplus-rakehelper.rb
CHANGED
@@ -113,6 +113,8 @@ task :deploy => [XPI, GR] do
|
|
113
113
|
sha1 = keys.detect{|key| key != ''}
|
114
114
|
throw "No SHA1 found in #{keys.inspect}" unless sha1
|
115
115
|
|
116
|
+
xpi = File.exists?(SIGNED) ? SIGNED : XPI
|
117
|
+
|
116
118
|
release = "#{sha1} release: #{XPI}"
|
117
119
|
STDERR.puts "#{RELEASE}"
|
118
120
|
STDERR.puts " checkin=#{checkin}"
|
@@ -121,7 +123,7 @@ task :deploy => [XPI, GR] do
|
|
121
123
|
STDERR.puts "Deploying #{RELEASE} (#{sha1})"
|
122
124
|
|
123
125
|
sh "#{GR} release --user ZotPlus --repo zotero-#{EXTENSION} --tag #{RELEASE} --name 'v#{RELEASE}'"
|
124
|
-
sh "#{GR} upload --user ZotPlus --repo zotero-#{EXTENSION} --tag #{RELEASE} --name '#{XPI}' --file '#{
|
126
|
+
sh "#{GR} upload --user ZotPlus --repo zotero-#{EXTENSION} --tag #{RELEASE} --name '#{XPI}' --file '#{xpi}'"
|
125
127
|
|
126
128
|
open("www/_includes/#{EXTENSION}-version.html", 'w'){|f| f.write(RELEASE) }
|
127
129
|
Dir.chdir('www'){
|