zotplus-rakehelper 0.0.102 → 0.0.103

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
  SHA1:
3
- metadata.gz: 2f08b6e9e3574e448bfbb0a6f9ce18ea88b73af9
4
- data.tar.gz: 400817598d2547ab8330df70db0f8ce1dd5f26cd
3
+ metadata.gz: cc43473f849ba8509ecba6a34bac1b6d3533f6b6
4
+ data.tar.gz: fde527bdb7534d9c11d92ac3496a8c646b3cda7a
5
5
  SHA512:
6
- metadata.gz: 8d5414944784388ec614a8c661e7f066caa3396a2a8f6ea3f1d23fe0c54b84dc4a080d6c7ea36bea903c692f557ac633d5b7978d4977daab1d4aac2ccf04d643
7
- data.tar.gz: ab7b00bbd73f434555ca05ae315431f8e3213d9ad427f48926d5617c90d2301f7cb5cb484cd6c7207232b8db71ba457edb7122a4c23ddf35040980259318623c
6
+ metadata.gz: 581023f674b466b10183967d5f059b97400e97d25f4b2766d42f9c30bcc67b7e01b75628ca51f28cf40cd7242877f43fc428c40a9638df25d0c8f7b9db012622
7
+ data.tar.gz: afa872cf2b2d361089ff969754aaea6a608305c33ed1f47e7605e83233ef48a65eaab9bbb1d6c0c27b1d97bfe4ba3073056a7e2e2d54ca777c51f62830699300
@@ -1,5 +1,5 @@
1
1
  module ZotPlus
2
2
  class RakeHelper
3
- VERSION = "0.0.102"
3
+ VERSION = "0.0.103"
4
4
  end
5
5
  end
@@ -172,10 +172,10 @@ 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 = $1
176
- Dir.chdir(xpi) {
175
+ src = $1
176
+ Dir.chdir(src) {
177
177
  rev = `git log -n 1 --pretty=format:"%h"`
178
- xpi = "#{xpi}-master-#{rev}.xpi"
178
+ xpi = "#{src}-master-#{rev}.xpi"
179
179
  }
180
180
  elsif source =~ /^file:/ || source =~ /\.xpi(\?|$)/
181
181
  url = source
@@ -203,9 +203,10 @@ module ZotPlus
203
203
  sources.reject{|s| installed.include?(s.xpi) && s.url !~ /^file:/ }.each{|s|
204
204
  if s.xpi =~ /(.*)-master-.*.xpi$/
205
205
  src = $1
206
- STDERR.puts "Zipping #{s.xpi}"
206
+ tgt = "#{dir}/#{s.xpi}"
207
+ STDERR.puts "Zipping #{s.xpi} to #{tgt}"
207
208
  Dir.chdir(src){|path|
208
- Zip::File.open("#{dir}/#{s.xpi}", 'w') do |zipfile|
209
+ Zip::File.open(tgt, 'w') do |zipfile|
209
210
  Dir["**/*"].sort.each{|file|
210
211
  zipfile.add(file, file)
211
212
  }
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zotplus-rakehelper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.102
4
+ version: 0.0.103
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emiliano Heyns