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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 56e7551c0d633c47385c03db675900615dcbe73c
4
- data.tar.gz: ba68df340e586c3b42a15596264d05ecc258483c
3
+ metadata.gz: b97113e94bb02be0da7ac2cc33dd7740819d1de1
4
+ data.tar.gz: b7bfdc64451f48093505327c28db788e7d293d60
5
5
  SHA512:
6
- metadata.gz: dfb6627c949f9be27e03be18cfea95039b015b01cff9af9c287b539329d17eecd06b7b01c371264fc906e6e614b3bc15a66997815691688860a2191df7bdd089
7
- data.tar.gz: 2306722a074b7b96b78bdcf426bc2121979c56758dd38cec709c24a1e38b81ec1c605582f4b296336e1c519dbf0f54af6eddc114ad464e0de3d85b700d22daa8
6
+ metadata.gz: c915b7c7de84220ee64520b2b514f0033ea5a0ebf39b11445c2d3655330f4e5d3362a61a18af62ae40aad753661894fb85c4cba9a50d383916f4d32e947c4003
7
+ data.tar.gz: 650e5ed1cbbf3e4d9163e816c9b3e9160edfbc91c9d42d17ff5139f8940206822d4b15df65fd578499481433f182a0ae3a9fe6754b8900f1db0dc55b24af73d8
@@ -1,5 +1,5 @@
1
1
  module ZotPlus
2
2
  class RakeHelper
3
- VERSION = "0.0.81"
3
+ VERSION = "0.0.82"
4
4
  end
5
5
  end
@@ -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
- task 'README.md' => ["www/#{EXTENSION}/index.md", 'install.rdf'] do |t|
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
- task GR do
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
- if s.url =~ /^file:/
148
- puts "Copying #{s.xpi}"
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.81
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-04-28 00:00:00.000000000 Z
11
+ date: 2015-05-05 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler