cake 0.4.0 → 0.4.1
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/cake +14 -8
- data/lib/bake.jar +0 -0
- data/lib/cake.jar +0 -0
- metadata +3 -3
data/bin/cake
CHANGED
|
@@ -10,7 +10,13 @@ require 'io/wait'
|
|
|
10
10
|
require 'pp'
|
|
11
11
|
|
|
12
12
|
if RUBY_PLATFORM =~ /(mingw|mswin)(32|64)$/
|
|
13
|
-
|
|
13
|
+
begin
|
|
14
|
+
require 'win32/process'
|
|
15
|
+
rescue LoadError
|
|
16
|
+
puts 'cake requires win32/process. use "gem install win32-process" to install'
|
|
17
|
+
exit
|
|
18
|
+
end
|
|
19
|
+
|
|
14
20
|
TERM = 1
|
|
15
21
|
KILL = 'KILL'
|
|
16
22
|
PATH_SEP = ';'
|
|
@@ -87,15 +93,15 @@ class Object
|
|
|
87
93
|
def to_clj(unquote = false)
|
|
88
94
|
if unquote
|
|
89
95
|
case self
|
|
90
|
-
when Array
|
|
91
|
-
when String
|
|
96
|
+
when Array then return collect {|i| i.to_clj(true)}.join(' ')
|
|
97
|
+
when String then return self
|
|
92
98
|
end
|
|
93
99
|
end
|
|
94
100
|
case self
|
|
95
|
-
when Hash
|
|
96
|
-
when Array
|
|
97
|
-
when Symbol
|
|
98
|
-
else
|
|
101
|
+
when Hash then '{' + collect {|k,v| k.to_clj + ' ' + v.to_clj}.join(' ') + '}'
|
|
102
|
+
when Array then '[' + collect {|i| i.to_clj}.join(' ') + ']'
|
|
103
|
+
when Symbol then ":#{to_s}"
|
|
104
|
+
else inspect.gsub(/(\\a|\\e|\\v)/) {|c| CLJ_SUB[c]}
|
|
99
105
|
end
|
|
100
106
|
end
|
|
101
107
|
|
|
@@ -124,7 +130,7 @@ end
|
|
|
124
130
|
|
|
125
131
|
begin
|
|
126
132
|
require 'readline'
|
|
127
|
-
rescue LoadError
|
|
133
|
+
rescue LoadError
|
|
128
134
|
module Readline
|
|
129
135
|
HISTORY = []
|
|
130
136
|
attr_accessor :basic_word_break_characters, :completion_proc
|
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: 13
|
|
5
5
|
prerelease: false
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 4
|
|
9
|
-
-
|
|
10
|
-
version: 0.4.
|
|
9
|
+
- 1
|
|
10
|
+
version: 0.4.1
|
|
11
11
|
platform: ruby
|
|
12
12
|
authors:
|
|
13
13
|
- Justin Balthrop
|