cake 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/bin/cake +14 -8
  2. data/lib/bake.jar +0 -0
  3. data/lib/cake.jar +0 -0
  4. 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
- require 'win32/process'
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 : return collect {|i| i.to_clj(true)}.join(' ')
91
- when String : return self
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 : '{' + collect {|k,v| k.to_clj + ' ' + v.to_clj}.join(' ') + '}'
96
- when Array : '[' + collect {|i| i.to_clj}.join(' ') + ']'
97
- when Symbol : ":#{to_s}"
98
- else inspect.gsub(/(\\a|\\e|\\v)/) {|c| CLJ_SUB[c]}
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 => e
133
+ rescue LoadError
128
134
  module Readline
129
135
  HISTORY = []
130
136
  attr_accessor :basic_word_break_characters, :completion_proc
Binary file
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: 15
4
+ hash: 13
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 0
10
- version: 0.4.0
9
+ - 1
10
+ version: 0.4.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Justin Balthrop