cake 0.4.16 → 0.4.17
Sign up to get free protection for your applications and to get access to all the features.
- data/bin/cake +4 -3
- data/lib/bake.jar +0 -0
- data/lib/cake.jar +0 -0
- metadata +4 -4
data/bin/cake
CHANGED
@@ -101,7 +101,7 @@ class Object
|
|
101
101
|
when Hash then '{' + collect {|k,v| k.to_clj + ' ' + v.to_clj}.join(' ') + '}'
|
102
102
|
when Array then '[' + collect {|i| i.to_clj}.join(' ') + ']'
|
103
103
|
when Symbol then ":#{to_s}"
|
104
|
-
else inspect.gsub(/(\\a|\\e|\\v|\\x)/) {|c| CLJ_SUB[c]}
|
104
|
+
else inspect.gsub(/(\\a|\\e|\\v|\\x|\\#)/) {|c| CLJ_SUB[c]}
|
105
105
|
end
|
106
106
|
end
|
107
107
|
|
@@ -109,6 +109,7 @@ class Object
|
|
109
109
|
'\a' => '\007',
|
110
110
|
'\e' => '\033',
|
111
111
|
'\v' => '\013',
|
112
|
+
'\#' => '#',
|
112
113
|
'\x' => 'x', # This will mangle some strings in ruby 1.9.1, but it is better than breaking altogether.
|
113
114
|
}
|
114
115
|
|
@@ -409,7 +410,7 @@ class JVM
|
|
409
410
|
else
|
410
411
|
log(:start, "starting #{type} jvm") if verbose? or ($command == :start and not $opts[:silent])
|
411
412
|
@port = rand(MAX_PORT - MIN_PORT) + MIN_PORT
|
412
|
-
@pid = daemon %{java #{vm_opts} -Dcake.project="#{$bakedir}" #{java_opts} clojure.main -e "(
|
413
|
+
@pid = daemon %{java #{vm_opts} -Dcake.project="#{$bakedir}" #{java_opts} clojure.main -e "(require '#{type}.core) (#{type}.core/start-server #{port})"}
|
413
414
|
File.open(pidfile, 'w') {|f| f.write("#{pid}\n#{port}\n#{$version}\n") }
|
414
415
|
end
|
415
416
|
rescue Errno::EADDRNOTAVAIL => e # port already in use
|
@@ -728,8 +729,8 @@ $config = Configuration.new("#{$home}/.cake/config", ".cake/config")
|
|
728
729
|
$vars = {:shellenv => ENV.to_hash, :pwd => $pwd, :args => ARGV, :opts => $opts, :script => $0}.to_clj
|
729
730
|
$timeout = ($config['connect.timeout'] || 20).to_i
|
730
731
|
|
731
|
-
Dir.chdir($bakedir)
|
732
732
|
initialize_cake_dirs
|
733
|
+
Dir.chdir($bakedir)
|
733
734
|
|
734
735
|
if debug?
|
735
736
|
puts "config: #{$config.inspect}"
|
data/lib/bake.jar
CHANGED
Binary file
|
data/lib/cake.jar
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cake
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 45
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 4
|
9
|
-
-
|
10
|
-
version: 0.4.
|
9
|
+
- 17
|
10
|
+
version: 0.4.17
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Justin Balthrop
|
@@ -16,7 +16,7 @@ autorequire:
|
|
16
16
|
bindir: bin
|
17
17
|
cert_chain: []
|
18
18
|
|
19
|
-
date: 2010-09-
|
19
|
+
date: 2010-09-22 00:00:00 -07:00
|
20
20
|
default_executable: cake
|
21
21
|
dependencies: []
|
22
22
|
|