zotplus-rakehelper 0.0.81 → 0.0.82
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/zotplus-rakehelper/version.rb +1 -1
- data/lib/zotplus-rakehelper.rb +16 -10
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: b97113e94bb02be0da7ac2cc33dd7740819d1de1
|
4
|
+
data.tar.gz: b7bfdc64451f48093505327c28db788e7d293d60
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c915b7c7de84220ee64520b2b514f0033ea5a0ebf39b11445c2d3655330f4e5d3362a61a18af62ae40aad753661894fb85c4cba9a50d383916f4d32e947c4003
|
7
|
+
data.tar.gz: 650e5ed1cbbf3e4d9163e816c9b3e9160edfbc91c9d42d17ff5139f8940206822d4b15df65fd578499481433f182a0ae3a9fe6754b8900f1db0dc55b24af73d8
|
data/lib/zotplus-rakehelper.rb
CHANGED
@@ -12,7 +12,7 @@ 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
14
|
|
15
|
-
|
15
|
+
file 'README.md' => ["www/#{EXTENSION}/index.md", 'install.rdf'] do |t|
|
16
16
|
puts "Updating #{t.name}"
|
17
17
|
|
18
18
|
md = open(t.source).read
|
@@ -64,7 +64,7 @@ task :bump, :what do |t, args|
|
|
64
64
|
end
|
65
65
|
|
66
66
|
GR="bin/github-release"
|
67
|
-
|
67
|
+
file GR do
|
68
68
|
FileUtils.mkdir_p('bin')
|
69
69
|
FileUtils.mkdir_p('tmp')
|
70
70
|
tmp = 'tmp/github-release.tar.bz2'
|
@@ -88,6 +88,18 @@ task :deploy => [XPI, GR] do
|
|
88
88
|
end
|
89
89
|
end
|
90
90
|
|
91
|
+
task :plugins
|
92
|
+
if File.file?('features/plugins.yml')
|
93
|
+
plugins = YAML.load_file('features/plugins.yml')
|
94
|
+
else
|
95
|
+
plugins = []
|
96
|
+
end
|
97
|
+
plugins << 'https://zotplus.github.io/debug-bridge/update.rdf'
|
98
|
+
plugins << 'https://www.zotero.org/download/update.rdf'
|
99
|
+
plugins.uniq!
|
100
|
+
ZotPlus::RakeHelper.getxpis(plugins, 'test/fixtures/plugins')
|
101
|
+
end
|
102
|
+
|
91
103
|
module ZotPlus
|
92
104
|
class RakeHelper
|
93
105
|
|
@@ -144,14 +156,8 @@ module ZotPlus
|
|
144
156
|
File.unlink("#{dir}/#{xpi}")
|
145
157
|
}
|
146
158
|
sources.reject{|s| installed.include?(s.xpi) && s.url !~ /^file:/ }.each{|s|
|
147
|
-
|
148
|
-
|
149
|
-
path = s.url.sub(/^file:/, '')
|
150
|
-
FileUtils.cp(path, "#{dir}/#{s.xpi}")
|
151
|
-
else
|
152
|
-
puts "Downloading #{s.xpi}"
|
153
|
-
self.download(s.url, "#{dir}/#{s.xpi}")
|
154
|
-
end
|
159
|
+
puts "Downloading #{s.xpi}"
|
160
|
+
download(s.url, "#{dir}/#{s.xpi}")
|
155
161
|
}
|
156
162
|
end
|
157
163
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zotplus-rakehelper
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.82
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Emiliano Heyns
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-05-05 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|