redcar 0.5.4dev → 0.5.5dev
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/Rakefile +1 -1
- data/lib/redcar.rb +1 -1
- data/lib/redcar/installer.rb +2 -2
- data/lib/redcar/runner.rb +8 -2
- metadata +4 -4
data/Rakefile
CHANGED
data/lib/redcar.rb
CHANGED
data/lib/redcar/installer.rb
CHANGED
@@ -10,7 +10,7 @@ end
|
|
10
10
|
module Redcar
|
11
11
|
class Installer
|
12
12
|
def initialize
|
13
|
-
|
13
|
+
if ENV['http_proxy']
|
14
14
|
proxy = URI.parse(ENV['http_proxy'])
|
15
15
|
@connection = Net::HTTP::Proxy(proxy.host, proxy.port, proxy.user, proxy.password)
|
16
16
|
else
|
@@ -19,7 +19,7 @@ module Redcar
|
|
19
19
|
puts "found latest XULRunner release version: #{xulrunner_version}" if Redcar.platform == :windows
|
20
20
|
end
|
21
21
|
|
22
|
-
|
22
|
+
def install
|
23
23
|
Redcar.environment = :user
|
24
24
|
puts "Downloading >10MB of binary assets. This may take a while the first time."
|
25
25
|
fetch_all_assets
|
data/lib/redcar/runner.rb
CHANGED
@@ -41,7 +41,7 @@ module Redcar
|
|
41
41
|
return if jruby and not osx
|
42
42
|
|
43
43
|
construct_command do |command|
|
44
|
-
exec(
|
44
|
+
exec(command.join(" "))
|
45
45
|
end
|
46
46
|
end
|
47
47
|
|
@@ -57,7 +57,13 @@ module Redcar
|
|
57
57
|
exit 1
|
58
58
|
end
|
59
59
|
ENV['RUBYOPT'] = nil # disable other native args
|
60
|
-
|
60
|
+
|
61
|
+
# Windows XP updates
|
62
|
+
if [:windows].include?(Redcar.platform)
|
63
|
+
bin = "\"#{bin}\""
|
64
|
+
jruby_complete = "\"#{jruby_complete}\""
|
65
|
+
end
|
66
|
+
|
61
67
|
# unfortuanately, ruby doesn't support [a, *b, c]
|
62
68
|
command = ["java"]
|
63
69
|
command.push(*java_args)
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: redcar
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash: -
|
4
|
+
hash: -769080784
|
5
5
|
prerelease: true
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 5dev
|
10
|
+
version: 0.5.5dev
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Daniel Lucraft
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-09-
|
18
|
+
date: 2010-09-06 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|