coffee-script 2.1.1 → 2.1.2
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 +5 -6
- metadata +6 -6
data/lib/coffee_script.rb
CHANGED
@@ -89,18 +89,17 @@ module CoffeeScript
|
|
89
89
|
|
90
90
|
module Node
|
91
91
|
class << self
|
92
|
-
|
92
|
+
|
93
93
|
def binary
|
94
|
-
@binary ||=
|
94
|
+
@binary ||= `which nodejs node`.split("\n").first
|
95
95
|
end
|
96
|
-
|
96
|
+
|
97
97
|
def binary=(value)
|
98
98
|
@binary = value.nil? ? nil : value.to_s
|
99
99
|
end
|
100
|
-
|
100
|
+
|
101
101
|
def supported?
|
102
|
-
|
103
|
-
$?.success?
|
102
|
+
binary
|
104
103
|
end
|
105
104
|
|
106
105
|
def compile(script, options = {})
|
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:
|
5
|
-
prerelease:
|
4
|
+
hash: 15
|
5
|
+
prerelease:
|
6
6
|
segments:
|
7
7
|
- 2
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 2.1.
|
9
|
+
- 2
|
10
|
+
version: 2.1.2
|
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-
|
20
|
+
date: 2010-02-06 00:00:00 -06:00
|
21
21
|
default_executable:
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|
@@ -91,7 +91,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
91
91
|
requirements: []
|
92
92
|
|
93
93
|
rubyforge_project: coffee-script
|
94
|
-
rubygems_version: 1.
|
94
|
+
rubygems_version: 1.4.1
|
95
95
|
signing_key:
|
96
96
|
specification_version: 3
|
97
97
|
summary: Ruby CoffeeScript Compiler
|