zotplus-rakehelper 0.0.128 → 0.0.129

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: eb225a71d06c031e6e0c756248ba6782a4f3ead2
4
- data.tar.gz: 1456cb4f88dda8c2f615e8166342239783c68d13
3
+ metadata.gz: 8eb399fb603e5b8bb52ce8bed6fb465b2d63a6b4
4
+ data.tar.gz: 994ffc3bc20579f005c76194beb7670f80b4fdb7
5
5
  SHA512:
6
- metadata.gz: 463eaa508b5faabc836610a7383e0c191223d972f7a2a438d3ac9191ff779600764bf6d5d19ef8b66c9475abf7be906e98b48a6f9f012e1d3cd2b7624c0aa7b8
7
- data.tar.gz: 1bf26278cbc6bf74b5c253ca79c9bffef58d34e80e174ec5eeb8465bbf1db6c0069251250f81aef57afd64ddcf9187d3e675a55dcdddc865a77ae2b647519df3
6
+ metadata.gz: cd38a0b80e411a6b0a86d8eea330784c4141d2a0712a4cfc72e64d6723a705342d8d9184d106585cb60b950c95ff6f0ee2ea345c745f570b9de1bf909693f984
7
+ data.tar.gz: d6e829e70a986e95834a60dd970ec34f0f090201fab5920e4abc04f5742777486e8701fdcf64c3f563ab6251c797ea690d58703e5193d8fdd485b013ef363bf0
@@ -1,5 +1,5 @@
1
1
  module ZotPlus
2
2
  class RakeHelper
3
- VERSION = "0.0.128"
3
+ VERSION = "0.0.129"
4
4
  end
5
5
  end
@@ -32,25 +32,19 @@ task XPI => ZIPFILES do
32
32
  STDERR.puts "Building #{XPI}"
33
33
  Dir["*.xpi"].each{|f| File.unlink(f) }
34
34
 
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(tgt) == 'install.rdf' ? install_rdf : tgt
50
- zipfile.add(tgt, src)
51
- }
52
- end
53
- }
35
+ Zip::File.open(XPI, 'w') do |zipfile|
36
+ ZIPFILES.uniq.sort.each{|src|
37
+ if File.basename(src) == 'install.rdf' && DEBUGBUILD != ''
38
+ install_rdf = Nokogiri::XML(File.open('install.rdf'))
39
+ install_rdf.at('//em:version').content = RELEASE
40
+ install_rdf.at('//em:updateURL').content = "https://zotplus.github.io/#{EXTENSION}/update.rdf"
41
+
42
+ zipfile.get_output_stream(src){|f| install_rdf.write_xml_to f }
43
+ else
44
+ zipfile.add(src, src)
45
+ end
46
+ }
47
+ end
54
48
  end
55
49
 
56
50
  rule '.js' => '.pegjs' do |t|
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zotplus-rakehelper
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.128
4
+ version: 0.0.129
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emiliano Heyns