rake-xpi 0.0.9 → 0.0.10

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: 1b6aa79b6cb97154aef73f48d45498559935b6e3
4
- data.tar.gz: 7d10367b9b0efa17fcef2fa410c2a8df13e2bf7d
3
+ metadata.gz: 4567ca075629457c833c159e08894780919d6ed6
4
+ data.tar.gz: 984963fee639aed5ec1a035cd7f58d898863673b
5
5
  SHA512:
6
- metadata.gz: 405ed492deed46dc74c2f20c5ffb12d4c2e1a2a0070f7b02a76611754b2440c51e359d5b3f29495b5f1306f6dc98014994c851603855955abc1176dd77e9acfc
7
- data.tar.gz: 8fbfb211c95a3a92f164ddc57fd5c2c3dc23fa5ffc87344f1f36e7e6e0b0e691fd6c9b0c44ee04f60268d3bde82c6faf2afee93a742a971de09e555cf4759ed8
6
+ metadata.gz: 11f6726843f8c77b161fd2e8d24ec620a1c0ea94cefa40cd68306013f75a967393d99d807260a4bb875f2fafb6bcf20288624475c5d62ad7ea4e72d895d53ccd
7
+ data.tar.gz: 083d6e6c96d96ef6c45f52579fdd496d6a0be1a7dd939a0fa8bae1aed2b02bba3a3100551d5b47053980cf230d172d0090916e6f0416ac628dac16066e84fe43
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rake-xpi (0.0.9)
4
+ rake-xpi (0.0.10)
5
5
  aws-sdk
6
6
  github_api
7
7
  jwt
data/lib/rake/xpi.rb CHANGED
@@ -148,10 +148,12 @@ module Rake
148
148
 
149
149
  releasemsg = "#{commit} #{release_message}"
150
150
 
151
- STDERR.puts "#{self.release}"
152
- STDERR.puts " committed = #{commitmsg}"
153
- STDERR.puts " release = #{releasemsg}"
154
- STDERR.puts " branch = #{branch}"
151
+ if ENV['VERBOSE'] != 'false'
152
+ STDERR.puts "#{self.release}"
153
+ STDERR.puts " committed = #{commitmsg}"
154
+ STDERR.puts " release = #{releasemsg}"
155
+ STDERR.puts " branch = #{branch}"
156
+ end
155
157
 
156
158
  @release_build = (commitmsg == releasemsg && branch == 'master')
157
159
  end
@@ -240,7 +242,7 @@ module Rake
240
242
  sources = (@config.test.xpis.download || []).collect{|s| resolvexpi(s) }
241
243
 
242
244
  (installed - sources.collect{|s| s.xpi}).each{|xpi|
243
- STDERR.puts "Removing #{xpi}"
245
+ STDERR.puts "Removing #{xpi}" unless ENV['VERBOSE'] == 'false'
244
246
  File.unlink("#{dir}/#{xpi}")
245
247
  }
246
248
  sources.reject{|s| installed.include?(s.xpi) && s.url !~ /^file:/ }.each{|s|
@@ -248,7 +250,7 @@ module Rake
248
250
  if s.xpi =~ /(.*)-master-.*.xpi$/
249
251
  src = $1
250
252
  tgt = "#{dir}/#{s.xpi}"
251
- STDERR.puts "Zipping #{s.xpi} to #{tgt}"
253
+ STDERR.puts "Zipping #{s.xpi} to #{tgt}" unless ENV['VERBOSE'] == 'false'
252
254
  Dir.chdir(src){|path|
253
255
  Zip::File.open(tgt, 'w') do |zipfile|
254
256
  Dir["**/*"].sort.each{|file|
@@ -257,14 +259,14 @@ module Rake
257
259
  end
258
260
  }
259
261
  else
260
- STDERR.puts "Downloading #{s.xpi}"
262
+ STDERR.puts "Downloading #{s.xpi}" unless ENV['VERBOSE'] == 'false'
261
263
  download(s.url, "#{dir}/#{s.xpi}")
262
264
  end
263
265
  }
264
266
  end
265
267
 
266
268
  def resolvexpi(source)
267
- STDERR.puts "Resolving #{source}"
269
+ STDERR.puts "Resolving #{source}" unless ENV['VERBOSE'] == 'false'
268
270
 
269
271
  xpi = nil
270
272
 
@@ -301,7 +303,7 @@ module Rake
301
303
  end
302
304
 
303
305
  xpi ||= url.sub(/.*\//, '').sub(/\?.*$/, '')
304
- STDERR.puts "Resolved to #{url}"
306
+ STDERR.puts "Resolved to #{url}" unless ENV['VERBOSE'] == 'false'
305
307
  return OpenStruct.new(url: url, xpi: xpi)
306
308
  end
307
309
 
@@ -316,7 +318,7 @@ task :default => XPI.xpi do
316
318
  end
317
319
 
318
320
  file XPI.xpi => XPI.files do |t|
319
- STDERR.puts "Building #{t.name}"
321
+ STDERR.puts "Building #{t.name}" unless ENV['VERBOSE'] == 'false'
320
322
  Dir["*.xpi"].each{|f| File.unlink(f) }
321
323
 
322
324
  Zip::File.open(t.name, 'w') do |zipfile|
@@ -366,8 +368,8 @@ end
366
368
 
367
369
  task :publish => XPI.xpi do
368
370
  if !XPI.pull_request
369
- STDERR.puts "Publishing #{XPI.release_build? ? 'release' : 'debug'} build #{XPI.versioned_xpi}"
371
+ STDERR.puts "Publishing #{XPI.release_build? ? 'release' : 'debug'} build #{XPI.versioned_xpi}" unless ENV['VERBOSE'] == 'false'
370
372
  XPI.publish
371
- STDERR.puts "Published to #{XPI.xpi_url}"
373
+ STDERR.puts "Published to #{XPI.xpi_url}" unless ENV['VERBOSE'] == 'false'
372
374
  end
373
375
  end
@@ -19,7 +19,6 @@ module Rake
19
19
  class Config
20
20
  def publish
21
21
  raise "Bintray publishing not configured" unless @config.bintray && @config.bintray.secret
22
- STDERR.puts "Publishing #{self.versioned_xpi} to Bintray"
23
22
  #RestClient.log = 'stdout'
24
23
 
25
24
  secret = ENV[@config.bintray.secret]
data/lib/rake/xpi/s3.rb CHANGED
@@ -19,7 +19,6 @@ module Rake
19
19
  class Config
20
20
  def publish
21
21
  raise "S3 publishing not configured" unless @config.s3 && @config.s3.id && @config.s3.secret
22
- STDERR.puts "Publishing #{self.versioned_xpi} to S3"
23
22
  id = ENV[@config.s3.id]
24
23
  secret = ENV[@config.s3.secret]
25
24
  return false unless id && secret
@@ -10,8 +10,6 @@ module Rake
10
10
  def publish
11
11
  raise "Sourceforge publishing not configured" unless @config.sourceforge && @config.sourceforge.project && @config.sourceforge.user && @config.sourceforge.key
12
12
 
13
- STDERR.puts "Publishing #{self.versioned_xpi} to sourceforge"
14
-
15
13
  builds = 'builds'
16
14
  download = "http://downloads.sourceforge.net/project/#{@config.sourceforge.project}/#{self.release_build? ? self.release : builds}/#{self.versioned_xpi}"
17
15
  latest = nil
@@ -24,7 +22,7 @@ module Rake
24
22
  begin
25
23
  sftp.mkdir!(dir)
26
24
  rescue => e
27
- STDERR.puts "#{dir} exists: #{e}"
25
+ STDERR.puts "#{dir} exists: #{e}" unless ENV['VERBOSE'] == 'false'
28
26
  end
29
27
  end
30
28
 
@@ -38,7 +36,7 @@ module Rake
38
36
  begin
39
37
  latest = Nokogiri::XML(sftp.download!("#{root}/update/update.rdf")).at('//em:version').inner_text
40
38
  rescue => e
41
- STDERR.puts "no existing release (#{e})"
39
+ STDERR.puts "no existing release (#{e})" unless ENV['VERBOSE'] == 'false'
42
40
  end
43
41
  end
44
42
 
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.9'
7
+ spec.version = '0.0.10'
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.9
4
+ version: 0.0.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emiliano Heyns