goat 0.3.37 → 0.3.39

Sign up to get free protection for your applications and to get access to all the features.
data/goat.gemspec CHANGED
@@ -1,6 +1,6 @@
1
1
  spec = Gem::Specification.new do |s|
2
2
  s.name = 'goat'
3
- s.version = '0.3.37'
3
+ s.version = '0.3.39'
4
4
  s.summary = 'Pre-release beta version of Goat'
5
5
  s.author = 'Patrick Collison'
6
6
  s.email = 'patrick@collison.ie'
@@ -35,6 +35,14 @@ module Goat
35
35
  self.new(dir, interval).schedule
36
36
  end
37
37
 
38
+ def self.command=(c)
39
+ @command = c
40
+ end
41
+
42
+ def self.command
43
+ @command || "ruby #{$0} #{ARGV.join(' ')}"
44
+ end
45
+
38
46
  def initialize(dir, interval)
39
47
  @dir = dir
40
48
  @interval = interval
@@ -58,7 +66,7 @@ module Goat
58
66
  def reload
59
67
  EM.stop
60
68
  IO.closefrom(3)
61
- Kernel.exec("ruby #{$0} #{ARGV.join(' ')}") # no execv in ruby :/
69
+ Kernel.exec(self.class.command)
62
70
  end
63
71
 
64
72
  def maybe_reload
data/lib/goat/goat.js CHANGED
@@ -36,7 +36,7 @@
36
36
 
37
37
  /* don't break in browsers without console */
38
38
  if(typeof(console) === 'undefined' || typeof(console.log) === 'undefined')
39
- var console = {log: function() {}};
39
+ var console = {log: function() {}, error: function() {}};
40
40
 
41
41
  String.random = function string_random(len, pref) {
42
42
  var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: goat
3
3
  version: !ruby/object:Gem::Version
4
- hash: 89
4
+ hash: 93
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 37
10
- version: 0.3.37
9
+ - 39
10
+ version: 0.3.39
11
11
  platform: ruby
12
12
  authors:
13
13
  - Patrick Collison
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-04 00:00:00 +00:00
18
+ date: 2011-02-07 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency