jenkins 0.6.2 → 0.6.3

Sign up to get free protection for your applications and to get access to all the features.
data/Changelog.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Changelog
2
2
 
3
+ ## 0.6.3 - 2011/04/12
4
+
5
+ * fixes for ruby 1.9
6
+
3
7
  ## 0.6.2 - 2011/03/17
4
8
 
5
9
  * add `build_details` command for fetching the result of a particular build.
data/Gemfile.lock CHANGED
@@ -1,18 +1,19 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- jenkins (0.6.2)
5
- builder (>= 2.1.2)
4
+ jenkins (0.6.3)
5
+ builder (~> 2.1.2)
6
6
  hpricot
7
7
  httparty (~> 0.6.1)
8
+ json (>= 1.4.6)
8
9
  term-ansicolor (>= 1.0.4)
9
10
  thor (~> 0.14.2)
10
11
 
11
12
  GEM
12
13
  remote: http://rubygems.org/
13
14
  specs:
14
- awesome_print (0.2.1)
15
- builder (3.0.0)
15
+ awesome_print (0.3.2)
16
+ builder (2.1.2)
16
17
  crack (0.1.8)
17
18
  cucumber (0.10.0)
18
19
  builder (>= 2.1.2)
@@ -26,7 +27,7 @@ GEM
26
27
  hpricot (0.8.4)
27
28
  httparty (0.6.1)
28
29
  crack (= 0.1.8)
29
- jenkins-war (1.396)
30
+ jenkins-war (1.401)
30
31
  json (1.4.6)
31
32
  rake (0.8.7)
32
33
  rspec (2.0.1)
@@ -50,6 +51,5 @@ DEPENDENCIES
50
51
  cucumber (~> 0.10.0)
51
52
  jenkins!
52
53
  jenkins-war (>= 1.396)
53
- json (~> 1.4.0)
54
54
  rake (~> 0.8.7)
55
55
  rspec (~> 2.0.0)
data/Rakefile CHANGED
@@ -50,7 +50,7 @@ namespace :jenkins do
50
50
  namespace :server do
51
51
  require 'fileutils'
52
52
 
53
- directory plugin_dir = File.expand_path("var/jenkins/plugins")
53
+ directory plugin_dir = File.expand_path("../var/jenkins/plugins", __FILE__)
54
54
  desc "Run a server for tests"
55
55
  task :test => plugin_dir do
56
56
  port = 3010
@@ -59,7 +59,7 @@ namespace :jenkins do
59
59
  Dir["fixtures/jenkins/*.hpi"].each do |plugin|
60
60
  FileUtils.cp plugin, plugin_dir
61
61
  end
62
- logfile = File.expand_path("var/jenkins/test.log")
62
+ logfile = File.expand_path("../var/jenkins/test.log", __FILE__)
63
63
  puts "Launching jenkins test server at http://localhost:#{port}..."
64
64
  puts " output will be logged to #{logfile}"
65
65
  `ruby bin/jenkins server --home #{File.dirname(plugin_dir)} --port #{port} --control #{control} --daemon --logfile #{logfile}`
@@ -1,6 +1,6 @@
1
1
  module JenkinsHelper
2
2
  def test_jenkins_path
3
- "var/jenkins"
3
+ @test_jenkins_path ||= File.expand_path("../../../var/jenkins", __FILE__)
4
4
  end
5
5
  end
6
6
  World(JenkinsHelper)
data/jenkins.gemspec CHANGED
@@ -21,13 +21,13 @@ Gem::Specification.new do |s|
21
21
 
22
22
  s.add_dependency("term-ansicolor", [">= 1.0.4"])
23
23
  s.add_dependency("httparty", ["~> 0.6.1"])
24
- s.add_dependency("builder", [">= 2.1.2"])
24
+ s.add_dependency("builder", ["~> 2.1.2"])
25
25
  s.add_dependency("thor", ["~> 0.14.2"])
26
26
  s.add_dependency("hpricot")
27
+ s.add_dependency("json", ">= 1.4.6")
27
28
  s.add_development_dependency("jenkins-war", ">= 1.396")
28
29
  s.add_development_dependency("rake", ["~> 0.8.7"])
29
30
  s.add_development_dependency("cucumber", ["~> 0.10.0"])
30
31
  s.add_development_dependency("rspec", ["~> 2.0.0"])
31
- s.add_development_dependency("json", ["~>1.4.0"])
32
32
  s.add_development_dependency("awesome_print")
33
33
  end
data/lib/jenkins/api.rb CHANGED
@@ -204,10 +204,16 @@ module Jenkins
204
204
  end
205
205
 
206
206
  # Helper for POST that don't barf at Jenkins's crappy API responses
207
- def self.post_plain(path, options = {})
207
+ def self.post_plain(path, data = "", options = {})
208
208
  options = options.with_clean_keys
209
209
  uri = URI.parse base_uri
210
- res = Net::HTTP.start(uri.host, uri.port) { |http| http.post(path, options) }
210
+ res = Net::HTTP.start(uri.host, uri.port) do |http|
211
+ if RUBY_VERSION =~ /1.8/
212
+ http.post(path, options)
213
+ else
214
+ http.post(path, data, options)
215
+ end
216
+ end
211
217
  end
212
218
 
213
219
  # Helper for GET that don't barf at Jenkins's crappy API responses
@@ -1,3 +1,3 @@
1
1
  module Jenkins
2
- VERSION = "0.6.2"
2
+ VERSION = "0.6.3"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jenkins
3
3
  version: !ruby/object:Gem::Version
4
- hash: 3
4
+ hash: 1
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 6
9
- - 2
10
- version: 0.6.2
9
+ - 3
10
+ version: 0.6.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Charles Lowell
@@ -16,12 +16,13 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2011-03-18 00:00:00 -05:00
19
+ date: 2011-04-13 00:00:00 -07:00
20
20
  default_executable:
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
23
  name: term-ansicolor
24
24
  prerelease: false
25
+ type: :runtime
25
26
  requirement: &id001 !ruby/object:Gem::Requirement
26
27
  none: false
27
28
  requirements:
@@ -33,11 +34,11 @@ dependencies:
33
34
  - 0
34
35
  - 4
35
36
  version: 1.0.4
36
- type: :runtime
37
37
  version_requirements: *id001
38
38
  - !ruby/object:Gem::Dependency
39
39
  name: httparty
40
40
  prerelease: false
41
+ type: :runtime
41
42
  requirement: &id002 !ruby/object:Gem::Requirement
42
43
  none: false
43
44
  requirements:
@@ -49,15 +50,15 @@ dependencies:
49
50
  - 6
50
51
  - 1
51
52
  version: 0.6.1
52
- type: :runtime
53
53
  version_requirements: *id002
54
54
  - !ruby/object:Gem::Dependency
55
55
  name: builder
56
56
  prerelease: false
57
+ type: :runtime
57
58
  requirement: &id003 !ruby/object:Gem::Requirement
58
59
  none: false
59
60
  requirements:
60
- - - ">="
61
+ - - ~>
61
62
  - !ruby/object:Gem::Version
62
63
  hash: 15
63
64
  segments:
@@ -65,11 +66,11 @@ dependencies:
65
66
  - 1
66
67
  - 2
67
68
  version: 2.1.2
68
- type: :runtime
69
69
  version_requirements: *id003
70
70
  - !ruby/object:Gem::Dependency
71
71
  name: thor
72
72
  prerelease: false
73
+ type: :runtime
73
74
  requirement: &id004 !ruby/object:Gem::Requirement
74
75
  none: false
75
76
  requirements:
@@ -81,11 +82,11 @@ dependencies:
81
82
  - 14
82
83
  - 2
83
84
  version: 0.14.2
84
- type: :runtime
85
85
  version_requirements: *id004
86
86
  - !ruby/object:Gem::Dependency
87
87
  name: hpricot
88
88
  prerelease: false
89
+ type: :runtime
89
90
  requirement: &id005 !ruby/object:Gem::Requirement
90
91
  none: false
91
92
  requirements:
@@ -95,12 +96,28 @@ dependencies:
95
96
  segments:
96
97
  - 0
97
98
  version: "0"
98
- type: :runtime
99
99
  version_requirements: *id005
100
100
  - !ruby/object:Gem::Dependency
101
- name: jenkins-war
101
+ name: json
102
102
  prerelease: false
103
+ type: :runtime
103
104
  requirement: &id006 !ruby/object:Gem::Requirement
105
+ none: false
106
+ requirements:
107
+ - - ">="
108
+ - !ruby/object:Gem::Version
109
+ hash: 11
110
+ segments:
111
+ - 1
112
+ - 4
113
+ - 6
114
+ version: 1.4.6
115
+ version_requirements: *id006
116
+ - !ruby/object:Gem::Dependency
117
+ name: jenkins-war
118
+ prerelease: false
119
+ type: :development
120
+ requirement: &id007 !ruby/object:Gem::Requirement
104
121
  none: false
105
122
  requirements:
106
123
  - - ">="
@@ -110,12 +127,12 @@ dependencies:
110
127
  - 1
111
128
  - 396
112
129
  version: "1.396"
113
- type: :development
114
- version_requirements: *id006
130
+ version_requirements: *id007
115
131
  - !ruby/object:Gem::Dependency
116
132
  name: rake
117
133
  prerelease: false
118
- requirement: &id007 !ruby/object:Gem::Requirement
134
+ type: :development
135
+ requirement: &id008 !ruby/object:Gem::Requirement
119
136
  none: false
120
137
  requirements:
121
138
  - - ~>
@@ -126,12 +143,12 @@ dependencies:
126
143
  - 8
127
144
  - 7
128
145
  version: 0.8.7
129
- type: :development
130
- version_requirements: *id007
146
+ version_requirements: *id008
131
147
  - !ruby/object:Gem::Dependency
132
148
  name: cucumber
133
149
  prerelease: false
134
- requirement: &id008 !ruby/object:Gem::Requirement
150
+ type: :development
151
+ requirement: &id009 !ruby/object:Gem::Requirement
135
152
  none: false
136
153
  requirements:
137
154
  - - ~>
@@ -142,12 +159,12 @@ dependencies:
142
159
  - 10
143
160
  - 0
144
161
  version: 0.10.0
145
- type: :development
146
- version_requirements: *id008
162
+ version_requirements: *id009
147
163
  - !ruby/object:Gem::Dependency
148
164
  name: rspec
149
165
  prerelease: false
150
- requirement: &id009 !ruby/object:Gem::Requirement
166
+ type: :development
167
+ requirement: &id010 !ruby/object:Gem::Requirement
151
168
  none: false
152
169
  requirements:
153
170
  - - ~>
@@ -158,27 +175,11 @@ dependencies:
158
175
  - 0
159
176
  - 0
160
177
  version: 2.0.0
161
- type: :development
162
- version_requirements: *id009
163
- - !ruby/object:Gem::Dependency
164
- name: json
165
- prerelease: false
166
- requirement: &id010 !ruby/object:Gem::Requirement
167
- none: false
168
- requirements:
169
- - - ~>
170
- - !ruby/object:Gem::Version
171
- hash: 7
172
- segments:
173
- - 1
174
- - 4
175
- - 0
176
- version: 1.4.0
177
- type: :development
178
178
  version_requirements: *id010
179
179
  - !ruby/object:Gem::Dependency
180
180
  name: awesome_print
181
181
  prerelease: false
182
+ type: :development
182
183
  requirement: &id011 !ruby/object:Gem::Requirement
183
184
  none: false
184
185
  requirements:
@@ -188,7 +189,6 @@ dependencies:
188
189
  segments:
189
190
  - 0
190
191
  version: "0"
191
- type: :development
192
192
  version_requirements: *id011
193
193
  description: A suite of utilities for bringing continous integration to your projects (not the other way around) with jenkins CI
194
194
  email: