zotplus-rakehelper 0.0.149 → 0.0.150

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: f872ed90390bf46279cf1dcdf0e583303dffe247
4
- data.tar.gz: 9aa00c111a77c62f16c25dca43c9a0d84fdcd4de
3
+ metadata.gz: e26ab44714c95b9995aaf337d81295f6f1e48992
4
+ data.tar.gz: 81121e366495d85b2e1dc230c9647fb217f4bbc0
5
5
  SHA512:
6
- metadata.gz: 4e14311aeb798a6a95fd246d39b324020bc3e7f31129c78c41f9274f60cbc629af5c50cdd7beba83067aea4d7460f20c0132ee26bf0737998df09d73e6e594bf
7
- data.tar.gz: 909dbd275e2db43adb84c66dd953e34d825d0cd81a29d065351287fe6ba9b12aa3881e9cec65546a42c952ec4fcab4c79c8b4331b31de9f7d7af11ed91794462
6
+ metadata.gz: a3a6934266a96ee7c068c58da145da6349a6585c81c9cbed9f11678d7b1143a7a192fb12f27db703494d8ed6e04111a1d07c8071a613dde21cb76db2c899440f
7
+ data.tar.gz: 04e187dd82bde44759fdca60c7b3b50109786fd6ceb419b6ca19d124a95deb3d6bae7f6274d91de65adbf1299c224721dabc20c82a5a6cf0a63eac2c901e2821
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- zotplus-rakehelper (0.0.149)
4
+ zotplus-rakehelper (0.0.150)
5
5
  front_matter_parser
6
6
  github_api
7
7
  nokogiri
@@ -1,5 +1,5 @@
1
1
  module ZotPlus
2
2
  class RakeHelper
3
- VERSION = "0.0.149"
3
+ VERSION = "0.0.150"
4
4
  end
5
5
  end
@@ -224,50 +224,10 @@ task :deploy => XPI do
224
224
  github.repos.releases.assets.delete 'ZotPlus', "zotero-#{EXTENSION}", asset.id
225
225
  }
226
226
 
227
- update_rdf = Nokogiri::XML::Builder.new { |xml|
228
- xml.RDF('xmlns:RDF'=>'http://www.w3.org/1999/02/22-rdf-syntax-ns#', 'xmlns:em' => 'http://www.mozilla.org/2004/em-rdf#') {
229
- xml.parent.namespace = xml.parent.namespace_definitions.find{|ns|ns.prefix=='RDF'}
230
- xml['RDF'].Description(about: "urn:mozilla:extension:#{ID}") {
231
- xml['em'].updates {
232
- xml['RDF'].Seq {
233
- xml['RDF'].li {
234
- xml['RDF'].Description {
235
- xml['em'].version { xml.text RELEASE }
236
- xml['em'].targetApplication {
237
- xml['RDF'].Description {
238
- xml['em'].id { xml.text "{ec8030f7-c20a-464f-9b0e-13a3a9e97384}" }
239
- xml['em'].minVersion { xml.text "17.0" }
240
- xml['em'].maxVersion { xml.text "43.*" }
241
- xml['em'].updateLink { xml.text "https://github.com/ZotPlus/zotero-better-bibtex/releases/download/#{RELEASE}/zotero-#{EXTENSION}-#{RELEASE}.xpi" }
242
- xml['em'].updateInfoURL { xml.text "https://zotplus.github.io/better-bibtex/CHANGELOG.html" }
243
- }
244
- }
245
- xml['em'].targetApplication {
246
- xml['RDF'].Description {
247
- xml['em'].id { xml.text "zotero@chnm.gmu.edu" }
248
- xml['em'].minVersion { "3.0" }
249
- xml['em'].maxVersion { "4.0.*" }
250
- xml['em'].updateLink{ xml.text "https://github.com/ZotPlus/zotero-better-bibtex/releases/download/#{RELEASE}/zotero-#{EXTENSION}-#{RELEASE}.xpi" }
251
- xml['em'].updateInfoURL { xml.text "https://zotplus.github.io/better-bibtex/CHANGELOG.html" }
252
- }
253
- }
254
- }
255
- }
256
- }
257
- }
258
- }
259
- }
260
- }
261
-
262
- Tempfile.create('update_rdf') do |tmp|
263
- File.open(tmp, 'wb') {|f| f.write update_rdf.to_xml }
264
-
265
- ## upload new update.rdf
266
- github.repos.releases.assets.upload('ZotPlus', "zotero-#{EXTENSION}", release.id, tmp.path, {
267
- name: 'update.rdf',
268
- content_type: 'application/rdf+xml'
269
- })
270
- end
227
+ github.repos.releases.assets.upload('ZotPlus', "zotero-#{EXTENSION}", release.id, 'site/update.rdf', {
228
+ name: 'update.rdf',
229
+ content_type: 'application/rdf+xml'
230
+ })
271
231
  else
272
232
  STDERR.puts "Not a tagged release"
273
233
  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.149
4
+ version: 0.0.150
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emiliano Heyns