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.
@@ -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 = "https://updates.jenkins-ci.org/download/plugins/#{short_name}/#{version}/#{short_name}.hpi?for=ruby-plugin"
56
- f.write fetch(url).body
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
 
@@ -1,5 +1,5 @@
1
1
  module Jenkins
2
2
  class Plugin
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
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: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
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-02 00:00:00 -05:00
18
+ date: 2011-09-09 00:00:00 -05:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency