rake-xpi 0.0.37 → 0.0.38
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/Gemfile.lock +1 -1
- data/lib/rake/xpi.rb +17 -15
- data/rake-xpi.gemspec +1 -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: a460c4e48abf36806dd929705990b586bbaa1d19
|
4
|
+
data.tar.gz: b42a72652f3055d3e84b2b932f85a831d1e36404
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 258d3c5e77a9088e378230fb53b52921719971306d13ab89b5e1130c24e8afbbfcf6164cd102a7593addbaff3ec876fdbe2b667c00ba702298a49d892d242c5f
|
7
|
+
data.tar.gz: a245c340fbcdb1c37376ccb22343cd844f6d5069e48c9b51949e8ccd49951379c1b7c1d99dedb520de8d4b5dc923b29a440c972a16ac1c75edd6c5c258c9be70
|
data/Gemfile.lock
CHANGED
data/lib/rake/xpi.rb
CHANGED
@@ -237,27 +237,29 @@ module Rake
|
|
237
237
|
FileUtils.mkdir_p(dir)
|
238
238
|
installed = Dir["#{dir}/*.xpi"].collect{|f| File.basename(f) }
|
239
239
|
|
240
|
-
|
241
|
-
|
242
|
-
(@config.test.xpis.download || []).each{|
|
243
|
-
if
|
244
|
-
|
245
|
-
|
246
|
-
|
247
|
-
|
248
|
-
|
249
|
-
|
240
|
+
xpis = []
|
241
|
+
optional = {}
|
242
|
+
(@config.test.xpis.download || []).each{|xpi|
|
243
|
+
if xpi.is_a?(Hash) || xpi.is_a?(RecursiveOpenStruct)
|
244
|
+
xpi.each_pair{|env, link|
|
245
|
+
next unless ENV[env.upcase] == 'true' || env == 'default'
|
246
|
+
optional[env] ||= []
|
247
|
+
optional[env] << link
|
248
|
+
}
|
249
|
+
else
|
250
|
+
xpis << xpi
|
250
251
|
end
|
251
|
-
sources = sources.concat(source)
|
252
252
|
}
|
253
|
-
|
254
|
-
|
253
|
+
optional.delete('default') if optional.keys.length > 1
|
254
|
+
xpis << optional.values
|
255
|
+
xpis.flatten!
|
256
|
+
xpis = xpis.collect{|url| resolvexpi(url)}
|
255
257
|
|
256
|
-
(installed -
|
258
|
+
(installed - xpis.collect{|s| s.xpi}).each{|xpi|
|
257
259
|
STDERR.puts "Removing #{xpi}" unless ENV['VERBOSE'] == 'false'
|
258
260
|
File.unlink("#{dir}/#{xpi}")
|
259
261
|
}
|
260
|
-
|
262
|
+
xpis.reject{|s| installed.include?(s.xpi) && s.url !~ /^file:/ }.each{|s|
|
261
263
|
# https://github.com/zotero/zotero/zipball/master for zotero master
|
262
264
|
if s.xpi =~ /(.*)-master-.*.xpi$/
|
263
265
|
src = $1
|
data/rake-xpi.gemspec
CHANGED
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
6
|
spec.name = "rake-xpi"
|
7
|
-
spec.version = '0.0.
|
7
|
+
spec.version = '0.0.38'
|
8
8
|
spec.authors = ["Emiliano Heyns"]
|
9
9
|
spec.email = ["Emiliano.Heyns@iris-advies.com"]
|
10
10
|
spec.description = %q{rake helper to build XPI files}
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rake-xpi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.38
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emiliano Heyns
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-11-
|
11
|
+
date: 2016-11-11 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|