zotplus-rakehelper 0.0.30 → 0.0.31

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: d1d7562fb96b3bb727a2c93e49ea676813f49886
4
- data.tar.gz: aa883dcdfbc89cf095b15c93dcfb0be571d7f3c5
3
+ metadata.gz: e8614bd2dbfc34eec31eeeb875a24c5154e2f265
4
+ data.tar.gz: e8ae2dbd19dc966624ef5ef4b4c75e03988e9c19
5
5
  SHA512:
6
- metadata.gz: a4aea95bff2b61ee95b4c5e46603c28a1560999632f2fcf21ab59e48114f293a4104635f2639a469924e9de5c0ef6b38cc7dfe472da5c79bc6e4ed188361b224
7
- data.tar.gz: 33516678a1fcb0a26f89d0968ec8d90d66a3920d4a93cb1b6132e9caef723313b649983380663d0ffb6bec107d88ef1d0ce3cf36ea0efa7be5a99293b4732098
6
+ metadata.gz: abc5be41f546ab61cc1fee459ddf7864799cce800e12491508010924f55b30502d0966acfdc1817f0bb6c44b10e084e45f0e7af8bebd107c153b977e6a36f2c4
7
+ data.tar.gz: e8ca49ab5e0c04efea1e8b52e458e494b9f8da21793d636fb0773cda19f7043a5a1052f8889044f21dbf06aaf83356be82bc4e80f80a860779d7749a1ba758bf
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zotplus-rakehelper (0.0.30)
4
+ zotplus-rakehelper (0.0.31)
5
5
  nokogiri
6
6
  rake
7
7
  rickshaw
@@ -43,15 +43,7 @@ task 'update.rdf' => [XPI, 'install.rdf'] do |t|
43
43
  rdf.at('//RDF:Description')['about'] = "urn:mozilla:extension:#{ID}"
44
44
  rdf.xpath('//em:updateLink').each{|link| link.content = "https://zotplus.github.io/#{EXTENSION}/#{XPI}" }
45
45
  rdf.xpath('//em:updateInfoURL').each{|link| link.content = "https://zotplus.github.io/#{EXTENSION}" }
46
- rdf.xpath('//RDF:Description').each{|desc|
47
- hash = desc.at('./em:updateHash')
48
- if !hash
49
- hash = Nokogiri::XML::Node.new('updateHash', rdf)
50
- hash.namespace = rdf.root.namespace_definitions.find{|ns| ns.prefix=='em' }
51
- desc.add_child(hash)
52
- end
53
- hash.content = "sha1:#{Rickshaw::SHA1.hash(XPI)}"
54
- }
46
+ rdf.xpath('//em:updateHash').each{|hash| hash.content = "sha1:#{Rickshaw::SHA1.hash(XPI)}" }
55
47
  File.open(t.name) {|f| rdf.write_xml_to f}
56
48
  end
57
49
 
@@ -1,5 +1,5 @@
1
1
  module ZotPlus
2
2
  class RakeHelper
3
- VERSION = "0.0.30"
3
+ VERSION = "0.0.31"
4
4
  end
5
5
  end
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.30
4
+ version: 0.0.31
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emiliano Heyns