goat 0.3.35 → 0.3.37

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.35'
3
+ s.version = '0.3.37'
4
4
  s.summary = 'Pre-release beta version of Goat'
5
5
  s.author = 'Patrick Collison'
6
6
  s.email = 'patrick@collison.ie'
@@ -21,7 +21,6 @@ module Goat
21
21
  if maybe.empty?
22
22
  $stderr.puts "Couldn't find #{f}"
23
23
  elsif maybe.size > 1
24
- #$stderr.puts "Ambiguous #{f}: #{maybe.inspect}"
25
24
  # ignore ambiguous files -- usually a gem or something
26
25
  else
27
26
  paths << maybe.first
@@ -57,7 +56,6 @@ module Goat
57
56
  end
58
57
 
59
58
  def reload
60
- #$server.stop!
61
59
  EM.stop
62
60
  IO.closefrom(3)
63
61
  Kernel.exec("ruby #{$0} #{ARGV.join(' ')}") # no execv in ruby :/
data/lib/goat/goat.js CHANGED
@@ -1,3 +1,4 @@
1
+ /* jresig object orientation */
1
2
  (function(){
2
3
  var initializing = false, fnTest = /xyz/.test(function(){xyz;}) ? /\b_super\b/ : /.*/;
3
4
  this.Class = function(){};
@@ -33,6 +34,10 @@
33
34
  };
34
35
  })();
35
36
 
37
+ /* don't break in browsers without console */
38
+ if(typeof(console) === 'undefined' || typeof(console.log) === 'undefined')
39
+ var console = {log: function() {}};
40
+
36
41
  String.random = function string_random(len, pref) {
37
42
  var chars = "0123456789ABCDEFGHIJKLMNOPQRSTUVWXTZabcdefghiklmnopqrstuvwxyz";
38
43
  var str = '';
@@ -202,7 +207,9 @@ Goat.LoadingIndicator = {
202
207
  return;
203
208
  }
204
209
  ld.indicator = $("<img id=\"loading_indicator\" src=\"" + ld.url + "\">");
205
- new Image(ld.url);
210
+ var img = new Image();
211
+ img.src = ld.url;
212
+ return img;
206
213
  }
207
214
 
208
215
  function show() {
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: 85
4
+ hash: 89
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 35
10
- version: 0.3.35
9
+ - 37
10
+ version: 0.3.37
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-01-25 00:00:00 +00:00
18
+ date: 2011-02-04 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency