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 +4 -4
- data/lib/zotplus-rakehelper.rb +14 -0
- data/lib/zotplus-rakehelper/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d6a678cde3e49fd40942aa0138d5c507087efbb6
|
|
4
|
+
data.tar.gz: 77ef6be92862e376dd2d43126cb973f2b2146922
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 98dfe45d2a4b48ecae2cb60638ef301b8318f175500d41a4df44a869009ccc9a584f14d2483928caa94fab7af358443551c27190fe8ca1717945052a9d075dab
|
|
7
|
+
data.tar.gz: f2a1e21b81cefe8bb0432f44f1929f25f2f0ce8f980c739a6935881f848373a759339ddf388f0f6ba845b148eb8d32148148dfbb9f58efad21d2cd14e183e7e5
|
data/lib/zotplus-rakehelper.rb
CHANGED
|
@@ -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
|