coffee-script 2.1.0 → 2.1.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/lib/coffee_script.rb +11 -2
- metadata +4 -4
data/lib/coffee_script.rb
CHANGED
@@ -89,13 +89,22 @@ module CoffeeScript
|
|
89
89
|
|
90
90
|
module Node
|
91
91
|
class << self
|
92
|
+
|
93
|
+
def binary
|
94
|
+
@binary ||= 'node'
|
95
|
+
end
|
96
|
+
|
97
|
+
def binary=(value)
|
98
|
+
@binary = value.nil? ? nil : value.to_s
|
99
|
+
end
|
100
|
+
|
92
101
|
def supported?
|
93
|
-
`which
|
102
|
+
`which '#{binary}'`
|
94
103
|
$?.success?
|
95
104
|
end
|
96
105
|
|
97
106
|
def compile(script, options = {})
|
98
|
-
ExternalEngine.compile(
|
107
|
+
ExternalEngine.compile(binary, script, options) do |f|
|
99
108
|
f.puts Source.contents
|
100
109
|
f.puts "var CoffeeScript = this.CoffeeScript, print = console.log;"
|
101
110
|
end
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coffee-script
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 9
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 2.1.
|
9
|
+
- 1
|
10
|
+
version: 2.1.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Jeremy Ashkenas
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-11-
|
20
|
+
date: 2010-11-24 00:00:00 -06:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|