zotplus-rakehelper 0.0.125 → 0.0.126

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 60d879e34d26cfa82e1069174b1d4bf4e7fd3f6c
4
- data.tar.gz: cba5769a6dd4fb027d0c5c20faa61395552aaf59
3
+ metadata.gz: 4c8f41edb5ce424b69803302dc77c5f0098af23d
4
+ data.tar.gz: cae5ca4ac65e62168d39c6c601912a9280849a87
5
5
  SHA512:
6
- metadata.gz: 4ab0e87c3ab9768df5f6739ad5ee0656dbcb886df03bee4017bf85f608aa9d814bdab68b3478ed34cb2ac3130418271bcacc0907a322e0dc76aa7eb639eb0c86
7
- data.tar.gz: 8dffb1360a3d9a09321a4e6b5df33bbd3b2f3776c200cfd104f7d7320f4e112b4a6bcb3571a8fd1c53cbd7b8d175a8ad1599a2dcc2ec1703d6c9e658b4370e4b
6
+ metadata.gz: 590d1aec9b70670ede7a65dff3564ab7e358bbf05bdc94323790fda2b1b7bb1e06f5d9907e097d6cb2bd56445d91dc3ad6d0b2f562ddcda6d3c1df6f2b89d381
7
+ data.tar.gz: e134fc02c70189609e444e2afbb82f57d2a28d089ba27b26c721e52c3f5724edb28dd1fde5254a1b03701c681117ab3e3307d079ddcefb0a2aa13a87827bdc3d
@@ -1,5 +1,5 @@
1
1
  module ZotPlus
2
2
  class RakeHelper
3
- VERSION = "0.0.125"
3
+ VERSION = "0.0.126"
4
4
  end
5
5
  end
@@ -32,21 +32,25 @@ task XPI => ZIPFILES do
32
32
  STDERR.puts "Building #{XPI}"
33
33
  Dir["*.xpi"].each{|f| File.unlink(f) }
34
34
 
35
- Zip::File.open(XPI, 'w') do |zipfile|
36
- ZIPFILES.uniq.sort.each{|src|
37
- if DEBUGBUILD != '' && File.basename(src) == 'install.rdf'
38
- Tempfile.open('install.rdf') {|f|
39
- install_rdf = Nokogiri::XML(File.open(src))
40
- install_rdf.at('//em:version').content = RELEASE
41
- install_rdf.at('//em:updateURL').content = "https://zotplus.github.io/#{EXTENSION}/update.rdf"
42
- install_rdf.write_xml_to f
43
- zipfile.add(src, f.path)
44
- }
45
- else
46
- zipfile.add(src, src)
47
- end
48
- }
49
- end
35
+
36
+ Tempfile.open('install.rdf') {|f|
37
+ if DEBUGBUILD == ''
38
+ install_rdf = 'install.rdf'
39
+ else
40
+ install_rdf = Nokogiri::XML(File.open('install.rdf'))
41
+ install_rdf.at('//em:version').content = RELEASE
42
+ install_rdf.at('//em:updateURL').content = "https://zotplus.github.io/#{EXTENSION}/update.rdf"
43
+ install_rdf.write_xml_to f
44
+ install_rdf = f.path
45
+ end
46
+
47
+ Zip::File.open(XPI, 'w') do |zipfile|
48
+ ZIPFILES.uniq.sort.each{|tgt|
49
+ src = File.basename(src) == 'install.rdf' ? install_rdf : src
50
+ zipfile.add(tgt, src)
51
+ }
52
+ end
53
+ }
50
54
  end
51
55
 
52
56
  rule '.js' => '.pegjs' do |t|
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zotplus-rakehelper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.125
4
+ version: 0.0.126
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emiliano Heyns
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-05 00:00:00.000000000 Z
11
+ date: 2015-12-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler