hudson 0.2.3 → 0.2.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/bin/hudson CHANGED
@@ -6,12 +6,13 @@ require 'optparse'
6
6
 
7
7
  options = {
8
8
  :port => 3001,
9
- :control => 3002
9
+ :control => 3002,
10
+ :home => File.join(ENV['HOME'], '.hudson')
10
11
  }
11
12
  args = ARGV.dup
12
13
 
13
14
  opts = OptionParser.new do |opts|
14
- opts.banner = "Usage: hudson [options] HUDSON_HOME"
15
+ opts.banner = "Usage: hudson [options] [HUDSON_HOME]"
15
16
 
16
17
  opts.on("-d", "--daemon", "fork into background and run as daemon") do
17
18
  options[:daemon] = true
@@ -44,11 +45,7 @@ opts = OptionParser.new do |opts|
44
45
 
45
46
  end
46
47
  opts.parse!(args)
47
- unless dir = args.shift
48
- puts "hudson: no directory specified to house hudson"
49
- puts opts
50
- exit(1)
51
- end
48
+ dir = args.shift || options[:home]
52
49
  FileUtils.mkdir_p dir
53
50
  FileUtils.cp_r Hudson::PLUGINS, dir
54
51
  ENV['HUDSON_HOME'] = dir
@@ -1,6 +1,6 @@
1
1
  module Hudson
2
- VERSION = "0.2.3"
3
- HUDSON_VERSION = "1.358"
2
+ VERSION = "0.2.4"
3
+ HUDSON_VERSION = "1.359"
4
4
  WAR = File.expand_path(File.dirname(__FILE__) + "/hudson/hudson.war")
5
5
  PLUGINS = File.expand_path(File.dirname(__FILE__) + "/hudson/plugins")
6
6
  end
Binary file
metadata CHANGED
@@ -1,12 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hudson
3
3
  version: !ruby/object:Gem::Version
4
+ hash: 31
4
5
  prerelease: false
5
6
  segments:
6
7
  - 0
7
8
  - 2
8
- - 3
9
- version: 0.2.3
9
+ - 4
10
+ version: 0.2.4
10
11
  platform: ruby
11
12
  authors:
12
13
  - Charles Lowell
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-05-17 00:00:00 +03:00
18
+ date: 2010-05-24 00:00:00 +03:00
18
19
  default_executable:
19
20
  dependencies: []
20
21
 
@@ -45,23 +46,27 @@ rdoc_options: []
45
46
  require_paths:
46
47
  - lib
47
48
  required_ruby_version: !ruby/object:Gem::Requirement
49
+ none: false
48
50
  requirements:
49
51
  - - ">="
50
52
  - !ruby/object:Gem::Version
53
+ hash: 3
51
54
  segments:
52
55
  - 0
53
56
  version: "0"
54
57
  required_rubygems_version: !ruby/object:Gem::Requirement
58
+ none: false
55
59
  requirements:
56
60
  - - ">="
57
61
  - !ruby/object:Gem::Version
62
+ hash: 3
58
63
  segments:
59
64
  - 0
60
65
  version: "0"
61
66
  requirements: []
62
67
 
63
68
  rubyforge_project:
64
- rubygems_version: 1.3.6
69
+ rubygems_version: 1.3.7
65
70
  signing_key:
66
71
  specification_version: 3
67
72
  summary: Run a Hudson continuous integration server