six-launcher 0.2.1 → 0.2.2

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.
Files changed (3) hide show
  1. data/Rakefile +1 -1
  2. data/lib/six/launcher-app.rb +13 -5
  3. metadata +2 -2
data/Rakefile CHANGED
@@ -12,7 +12,7 @@ require 'rake/testtask'
12
12
 
13
13
  spec = Gem::Specification.new do |s|
14
14
  s.name = 'six-launcher'
15
- s.version = '0.2.1'
15
+ s.version = '0.2.2'
16
16
  s.has_rdoc = true
17
17
  s.extra_rdoc_files = ['README', 'LICENSE']
18
18
  s.summary = 'Your summary here'
@@ -9,7 +9,7 @@ require 'win32/process'
9
9
  class Setup
10
10
  RUBY = "tools/ruby/bin/ruby.exe"
11
11
  GEM = "tools/ruby/bin/gem"
12
- VERSION = "0.2.1"
12
+ VERSION = "0.2.2"
13
13
  #include Singleton
14
14
 
15
15
  BASE_PATH = if ENV['OCRA_EXECUTABLE']
@@ -90,12 +90,13 @@ class Setup
90
90
  system "#{RUBY} #{GEM} clean"
91
91
  end
92
92
 
93
- def start_updater_web(cl = nil)
93
+ def start_updater_web(cl = nil, uni = false)
94
94
  rubycheck
95
95
  update_gems
96
96
  puts "Starting Web-client..."
97
97
  # -U
98
98
  b = "-rubygems six-updater-web.rb"
99
+ b = "-U " + b if uni
99
100
  cl = if cl
100
101
  "#{b} #{cl}"
101
102
  else
@@ -104,12 +105,13 @@ class Setup
104
105
  detached(RUBY_BIN, cl, BASE_PATH)
105
106
  end
106
107
 
107
- def start_updater(params = nil)
108
+ def start_updater(params = nil, uni = false)
108
109
  rubycheck
109
110
  update_gems
110
111
  puts "Starting Updater..."
111
- # -U
112
- detached(RUBY_BIN, "-rubygems six-updater.rb #{params}", BASE_PATH)
112
+ b = "-rubygems six-updater.rb #{params}"
113
+ b = "-U " + b if uni
114
+ detached(RUBY_BIN, b, BASE_PATH)
113
115
  end
114
116
 
115
117
  def detached(app, cl, path)
@@ -151,6 +153,10 @@ class Setup
151
153
  start_updater("--join --wait")
152
154
  when "51"
153
155
  start_updater_web("--bind 0.0.0.0")
156
+ when "91"
157
+ start_updater_web(nil, true)
158
+ when "92"
159
+ start_updater("--wait", true)
154
160
  end
155
161
  bla
156
162
  end
@@ -172,6 +178,8 @@ please make sure you run this program 'As Administrator'
172
178
  ----- Special
173
179
  51 - Start web-client on public interface
174
180
  ----- Troubleshooting
181
+ 91 - Start web-client, Ruby Unicode mode
182
+ 92 - Start updater, Ruby Unicode mode
175
183
  100 - Install/Update Ruby
176
184
  101 - Install/Update Ruby Gems
177
185
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: six-launcher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - ""
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-12-09 00:00:00 +01:00
12
+ date: 2009-12-17 00:00:00 +01:00
13
13
  default_executable:
14
14
  dependencies: []
15
15