coffee-script 2.1.1 → 2.1.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/coffee_script.rb +5 -6
  2. metadata +6 -6
@@ -89,18 +89,17 @@ module CoffeeScript
89
89
 
90
90
  module Node
91
91
  class << self
92
-
92
+
93
93
  def binary
94
- @binary ||= 'node'
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
- `which '#{binary}'`
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: 9
5
- prerelease: false
4
+ hash: 15
5
+ prerelease:
6
6
  segments:
7
7
  - 2
8
8
  - 1
9
- - 1
10
- version: 2.1.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-11-24 00:00:00 -06:00
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.3.7
94
+ rubygems_version: 1.4.1
95
95
  signing_key:
96
96
  specification_version: 3
97
97
  summary: Ruby CoffeeScript Compiler