rake-xpi 0.0.39 → 0.0.40
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 +6 -5
- data/rake-xpi.gemspec +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: 75ed4bdec6a699c4b27e3b4fb5ba82c62ebec216
|
|
4
|
+
data.tar.gz: 09c7a12a7694ea0a99119ade0cc1a22bd98b8c35
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3e4cce4f7555886fa8e7255f00f25e63356491725434aca9a71130829975bcff9d42e5a0833b07e2eff8e1f35d49b782e92898afc18f5ed7fd41baf341d1bea8
|
|
7
|
+
data.tar.gz: 7046d7b72f280fc4df3f7c37f1dafba9bf613e444771ded4aeedd202eeed0b1dfc304f75a64cbb0b01bc71eaa922c51cac99ca0eb4091f56f63854d50472d9ed
|
data/Gemfile.lock
CHANGED
data/lib/rake/xpi.rb
CHANGED
|
@@ -238,21 +238,22 @@ module Rake
|
|
|
238
238
|
installed = Dir["#{dir}/*.xpi"].collect{|f| File.basename(f) }
|
|
239
239
|
|
|
240
240
|
xpis = []
|
|
241
|
-
|
|
241
|
+
conditional = {}
|
|
242
242
|
(@config.test.xpis.download || []).each{|xpi|
|
|
243
243
|
if xpi.is_a?(Hash) || xpi.is_a?(RecursiveOpenStruct)
|
|
244
244
|
xpi.each_pair{|env, link|
|
|
245
245
|
env = env.to_s
|
|
246
246
|
next unless ENV[env.upcase] == 'true' || env == 'default'
|
|
247
|
-
|
|
248
|
-
|
|
247
|
+
puts "Conditional XPI: #{env.inspect} => #{link}"
|
|
248
|
+
conditional[env] ||= []
|
|
249
|
+
conditional[env] << link
|
|
249
250
|
}
|
|
250
251
|
else
|
|
251
252
|
xpis << xpi
|
|
252
253
|
end
|
|
253
254
|
}
|
|
254
|
-
|
|
255
|
-
xpis <<
|
|
255
|
+
conditional.delete('default') if conditional.keys.length > 1
|
|
256
|
+
xpis << conditional.values
|
|
256
257
|
xpis.flatten!
|
|
257
258
|
xpis = xpis.collect{|url| resolvexpi(url)}
|
|
258
259
|
|
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.40'
|
|
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}
|