zotplus-rakehelper 0.0.96 → 0.0.97

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: db141e2e19d2b962c47869d33bc11c63ff425fe8
4
- data.tar.gz: 5504c618141c615cc8b7a83453924b0e6ccbdc60
3
+ metadata.gz: d6a678cde3e49fd40942aa0138d5c507087efbb6
4
+ data.tar.gz: 77ef6be92862e376dd2d43126cb973f2b2146922
5
5
  SHA512:
6
- metadata.gz: 3c5b0004b04f3d0c35a516f35cde4b1177ea33b0298fa1f4cd4e0ce6b55abfe70f18ef8f488a161f48d76dda61d452ce6426df5891fd26a37d7498631f74fe6a
7
- data.tar.gz: f0de0499d860f7e742b26b5c8abd5776a866e2dc66f5de44642b5c4648bef357769e119b1b9e7c69936cc562fb9ad452feea3a21218e62e63db21e171128e179
6
+ metadata.gz: 98dfe45d2a4b48ecae2cb60638ef301b8318f175500d41a4df44a869009ccc9a584f14d2483928caa94fab7af358443551c27190fe8ca1717945052a9d075dab
7
+ data.tar.gz: f2a1e21b81cefe8bb0432f44f1929f25f2f0ce8f980c739a6935881f848373a759339ddf388f0f6ba845b148eb8d32148148dfbb9f58efad21d2cd14e183e7e5
@@ -11,6 +11,7 @@ ID = Nokogiri::XML(File.open('install.rdf')).at('//em:id').inner_text
11
11
  EXTENSION = ID.gsub(/@.*/, '')
12
12
  RELEASE = Nokogiri::XML(File.open('install.rdf')).at('//em:version').inner_text
13
13
  XPI = "zotero-#{EXTENSION}-#{RELEASE}.xpi"
14
+ NODEBIN="node_modules/.bin"
14
15
 
15
16
  file 'README.md' => ["www/#{EXTENSION}/index.md", 'install.rdf'] do |t|
16
17
  STDERR.puts "Updating #{t.name}"
@@ -42,6 +43,19 @@ task XPI => ZIPFILES do
42
43
  end
43
44
  end
44
45
 
46
+ rule '.js' => '.pegjs' do |t|
47
+ sh "#{NODEBIN}/pegjs -e #{File.basename(t.source, File.extname(t.source))} #{t.source.shellescape} #{t.name.shellescape}"
48
+ end
49
+
50
+ task :npm do
51
+ sh "npm install --save coffee-script coffeelint pegjs"
52
+ end
53
+
54
+ rule '.js' => '.coffee' do |t|
55
+ sh "#{NODEBIN}/coffeelint #{t.source.shellescape}"
56
+ sh "#{NODEBIN}/coffee -bc #{t.source.shellescape}"
57
+ end
58
+
45
59
  task :bump, :what do |t, args|
46
60
  modified = `git ls-files -m`.split(/\n/).reject{|f| f == 'www'}
47
61
  throw "#{modified.length} modified files not checked in" unless modified.length == 0
@@ -1,5 +1,5 @@
1
1
  module ZotPlus
2
2
  class RakeHelper
3
- VERSION = "0.0.96"
3
+ VERSION = "0.0.97"
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.96
4
+ version: 0.0.97
5
5
  platform: ruby
6
6
  authors:
7
7
  - Emiliano Heyns