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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f56afcc959a7efe7d755a042b36779a110860bb3
4
- data.tar.gz: fa51e1c791fd903d23007b56c12c1adc8f3cf9c4
3
+ metadata.gz: 75ed4bdec6a699c4b27e3b4fb5ba82c62ebec216
4
+ data.tar.gz: 09c7a12a7694ea0a99119ade0cc1a22bd98b8c35
5
5
  SHA512:
6
- metadata.gz: 2906513649cd6cf546dd1303c6fc547183c0af70bd0fe4caac17b8afc4a4bca0970735046d283c718c043062809c60f3198564d308deea70ceaa41b749cbd3c3
7
- data.tar.gz: c0f9325c4113772d14372241aaf35118e5066ceb1b57faab960e60e3072004b95721beb761c361ed28f5b8d2c3493ae98d402793e65ce2c7229669ff77ad0bfb
6
+ metadata.gz: 3e4cce4f7555886fa8e7255f00f25e63356491725434aca9a71130829975bcff9d42e5a0833b07e2eff8e1f35d49b782e92898afc18f5ed7fd41baf341d1bea8
7
+ data.tar.gz: 7046d7b72f280fc4df3f7c37f1dafba9bf613e444771ded4aeedd202eeed0b1dfc304f75a64cbb0b01bc71eaa922c51cac99ca0eb4091f56f63854d50472d9ed
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake-xpi (0.0.39)
4
+ rake-xpi (0.0.40)
5
5
  aws-sdk
6
6
  faraday-http-cache
7
7
  jwt
@@ -238,21 +238,22 @@ module Rake
238
238
  installed = Dir["#{dir}/*.xpi"].collect{|f| File.basename(f) }
239
239
 
240
240
  xpis = []
241
- optional = {}
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
- optional[env] ||= []
248
- optional[env] << link
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
- optional.delete('default') if optional.keys.length > 1
255
- xpis << optional.values
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
 
@@ -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.39'
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}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rake-xpi
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.39
4
+ version: 0.0.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emiliano Heyns