jenkins-plugin 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/jenkins/plugin/tools/hpi.rb +4 -3
- data/lib/jenkins/plugin/version.rb +1 -1
- metadata +4 -4
@@ -52,8 +52,9 @@ module Jenkins
|
|
52
52
|
FileUtils.mkdir_p(File.dirname(cache))
|
53
53
|
open(cache+".tmp","wb") do |f|
|
54
54
|
puts "Downloading #{short_name} #{version}"
|
55
|
-
url = "
|
56
|
-
|
55
|
+
url = "http://updates.jenkins-ci.org/download/plugins/#{short_name}/#{version}/#{short_name}.hpi?for=ruby-plugin"
|
56
|
+
puts " from #{url}"
|
57
|
+
f.write fetch(url).body
|
57
58
|
end
|
58
59
|
FileUtils.mv cache+".tmp", cache
|
59
60
|
|
@@ -61,7 +62,7 @@ module Jenkins
|
|
61
62
|
end
|
62
63
|
|
63
64
|
# download with redirect support
|
64
|
-
def fetch(uri, limit = 10)
|
65
|
+
def self.fetch(uri, limit = 10)
|
65
66
|
# You should choose better exception.
|
66
67
|
raise ArgumentError, 'HTTP redirect too deep' if limit == 0
|
67
68
|
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: jenkins-plugin
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 25
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 1
|
10
|
+
version: 0.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Charles Lowell
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-09-
|
18
|
+
date: 2011-09-09 00:00:00 -05:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|