guard-coffeescript 0.1.1 → 0.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.
@@ -1,10 +1,7 @@
|
|
1
|
-
require 'open3'
|
2
|
-
|
3
1
|
module Guard
|
4
2
|
class CoffeeScript
|
5
3
|
module Runner
|
6
4
|
class << self
|
7
|
-
include Open3
|
8
5
|
|
9
6
|
def run(paths, options = {})
|
10
7
|
|
@@ -12,11 +9,11 @@ module Guard
|
|
12
9
|
message = options[:message] || "Compile #{paths.join(' ')}"
|
13
10
|
::Guard::UI.info message, :reset => true
|
14
11
|
|
15
|
-
output
|
12
|
+
output = `#{ coffee_script_command(paths, options) } 2>&1`
|
16
13
|
|
17
14
|
puts output
|
18
15
|
|
19
|
-
if
|
16
|
+
if $?.to_i == 0
|
20
17
|
message = message.gsub(/^Compile/, 'Successfully compiled')
|
21
18
|
::Guard::Notifier.notify(message, :title => 'CoffeeScript results')
|
22
19
|
else
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: guard-coffeescript
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 31
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 2
|
10
|
+
version: 0.1.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Michael Kessler
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-10-
|
18
|
+
date: 2010-10-29 00:00:00 +02:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|