cake 0.4.17 → 0.4.18

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 (4) hide show
  1. data/bin/cake +10 -4
  2. data/lib/bake.jar +0 -0
  3. data/lib/cake.jar +0 -0
  4. metadata +4 -4
data/bin/cake CHANGED
@@ -133,6 +133,7 @@ end
133
133
  begin
134
134
  require 'readline'
135
135
  rescue LoadError
136
+ $no_readline = true
136
137
  module Readline
137
138
  HISTORY = []
138
139
  attr_accessor :basic_word_break_characters, :completion_proc
@@ -390,7 +391,7 @@ class JVM
390
391
 
391
392
  def java_opts
392
393
  opts = %{-cp "#{classpath}" -Djava.library.path="#{libpath}"}
393
- opts << %{ -Djava.home="#{ENV['JAVA_HOME']}" -Djava.ext.dirs="#{ENV['JAVA_HOME']}/lib"} if ENV['JAVA_HOME']
394
+ opts << %{ -Djava.home="#{ENV['JAVA_HOME']}"} if ENV['JAVA_HOME']
394
395
  opts
395
396
  end
396
397
 
@@ -473,6 +474,7 @@ class JVM
473
474
 
474
475
  REPL_PROMPT = "REPL_PROMPT__#{rand}"
475
476
  def repl
477
+ puts ";; cannot find readline; your repl won't be very awesome without it" if $no_readline
476
478
  load_history
477
479
  loop do
478
480
  with_socket do |socket|
@@ -613,7 +615,11 @@ private
613
615
  Readline::HISTORY.push(input.join(' '))
614
616
  return input.join("\n")
615
617
  end
616
- prompt[-2] = ?*
618
+ if $config['repl.disable-secondary-prompt'] == 'true'
619
+ prompt = ' ' * prompt.length
620
+ else
621
+ prompt[-2] = ?*
622
+ end
617
623
  end
618
624
  rescue Interrupt => e
619
625
  return nil if input.empty?
@@ -726,7 +732,7 @@ $cakedir = File.dirname(File.dirname(readlink(__FILE__)))
726
732
  $github = "http://github.com/ninjudd/cake-standalone/raw/master"
727
733
  $m2 = "#{$home}/.m2/repository"
728
734
  $config = Configuration.new("#{$home}/.cake/config", ".cake/config")
729
- $vars = {:shellenv => ENV.to_hash, :pwd => $pwd, :args => ARGV, :opts => $opts, :script => $0}.to_clj
735
+ $vars = {:env => ENV.to_hash, :pwd => $pwd, :args => ARGV, :opts => $opts, :script => $0}.to_clj
730
736
  $timeout = ($config['connect.timeout'] || 20).to_i
731
737
 
732
738
  initialize_cake_dirs
@@ -809,7 +815,7 @@ cake = Cake.new(
809
815
  [$config['cake.library.path'], "lib/dev/native"]
810
816
  )
811
817
  bake = Bake.new(
812
- [bakepath, "src", "src/clj", "classes", "resources", "dev", "test", $config['project.classpath'], "lib/*", "lib/dev/*", "#{$home}/.cake/lib/dev/*"],
818
+ [bakepath, "src", "src/clj", "classes", "resources", "dev", "test", $config['project.classpath'], $opts[:cp], "lib/*", "lib/dev/*", "#{$home}/.cake/lib/dev/*"],
813
819
  [$config['project.library.path'], "lib/native", "lib/dev/native"]
814
820
  )
815
821
 
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: 45
4
+ hash: 43
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 17
10
- version: 0.4.17
9
+ - 18
10
+ version: 0.4.18
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-22 00:00:00 -07:00
19
+ date: 2010-09-25 00:00:00 -07:00
20
20
  default_executable: cake
21
21
  dependencies: []
22
22