zotplus-rakehelper 0.0.101 → 0.0.102
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 +6 -2
- 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: 2f08b6e9e3574e448bfbb0a6f9ce18ea88b73af9
|
|
4
|
+
data.tar.gz: 400817598d2547ab8330df70db0f8ce1dd5f26cd
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d5414944784388ec614a8c661e7f066caa3396a2a8f6ea3f1d23fe0c54b84dc4a080d6c7ea36bea903c692f557ac633d5b7978d4977daab1d4aac2ccf04d643
|
|
7
|
+
data.tar.gz: ab7b00bbd73f434555ca05ae315431f8e3213d9ad427f48926d5617c90d2301f7cb5cb484cd6c7207232b8db71ba457edb7122a4c23ddf35040980259318623c
|
data/lib/zotplus-rakehelper.rb
CHANGED
|
@@ -172,7 +172,11 @@ module ZotPlus
|
|
|
172
172
|
url = final_uri.to_s
|
|
173
173
|
elsif source =~ /^https:\/\/github\.com\/zotero\/([^\/]+)\/zipball\/master$/
|
|
174
174
|
url = source
|
|
175
|
-
xpi =
|
|
175
|
+
xpi = $1
|
|
176
|
+
Dir.chdir(xpi) {
|
|
177
|
+
rev = `git log -n 1 --pretty=format:"%h"`
|
|
178
|
+
xpi = "#{xpi}-master-#{rev}.xpi"
|
|
179
|
+
}
|
|
176
180
|
elsif source =~ /^file:/ || source =~ /\.xpi(\?|$)/
|
|
177
181
|
url = source
|
|
178
182
|
else
|
|
@@ -197,7 +201,7 @@ module ZotPlus
|
|
|
197
201
|
File.unlink("#{dir}/#{xpi}")
|
|
198
202
|
}
|
|
199
203
|
sources.reject{|s| installed.include?(s.xpi) && s.url !~ /^file:/ }.each{|s|
|
|
200
|
-
if s.xpi =~ /(.*)-master
|
|
204
|
+
if s.xpi =~ /(.*)-master-.*.xpi$/
|
|
201
205
|
src = $1
|
|
202
206
|
STDERR.puts "Zipping #{s.xpi}"
|
|
203
207
|
Dir.chdir(src){|path|
|