guard-coffeescript 0.1.7 → 0.1.8

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/README.rdoc CHANGED
@@ -20,10 +20,15 @@ Add guard definition to your Guardfile by running this command:
20
20
 
21
21
  guard init coffeescript
22
22
 
23
+ == JSON
24
+
25
+ The json library is also required but is not explicitly stated as a gem dependency. If you're on Ruby 1.8 you'll need
26
+ to install the json or json_pure gem. On Ruby 1.9, json is included in the standard library.
27
+
23
28
  == CoffeeScript
24
29
 
25
- Guard::CoffeeScript uses {Ruby CoffeeScript}[http://github.com/josh/ruby-coffee-script/] to compile the CoffeeScripts.
26
- This enables the guard to compile the CoffeeScripts with node.js, JavaScript Core or V8
30
+ Guard::CoffeeScript uses {Ruby CoffeeScript}[http://github.com/josh/ruby-coffee-script/] to compile the CoffeeScripts,
31
+ that in turn uses {ExecJS}[https://github.com/sstephenson/execjs] to pick the best runtime to evaluate the JavaScript.
27
32
 
28
33
  === node.js
29
34
 
@@ -44,6 +49,19 @@ and the V8 engine, that will be automatically installed by the Ruby Racer.
44
49
  gem 'therubyracer'
45
50
  end
46
51
 
52
+ === Mozilla Rhino
53
+
54
+ If you're using JRuby, you can embed the Mozilla Rhino runtime by adding `therubyrhino` to your Gemfile:
55
+
56
+ group :development do
57
+ gem 'therubyrhino'
58
+ end
59
+
60
+ === Microsoft Windows Script Host
61
+
62
+ {Microsoft Windows Script Host}[http://msdn.microsoft.com/en-us/library/9bbdkx3k.aspx] is available on any Microsoft
63
+ Windows operating systems.
64
+
47
65
  == Usage
48
66
 
49
67
  Please read {guard usage doc}[http://github.com/guard/guard#readme]
@@ -103,10 +121,14 @@ be compiled directly to the output directory.
103
121
 
104
122
  Pull requests are very welcome! Make sure your patches are well tested.
105
123
 
106
- == Authors
124
+ == Author
107
125
 
108
126
  {Michael Kessler}[http://github.com/netzpirat]
109
127
 
128
+ == Contributors
129
+
130
+ {Aaron Jensen}[https://github.com/aaronjensen]
131
+
110
132
  == Acknowledgment
111
133
 
112
134
  Many thanks to the {Guard Team}[https://github.com/guard/guard/contributors] and all the authors of the numerous {Guards}[http://github.com/guard]
@@ -1,5 +1,5 @@
1
1
  module Guard
2
- class CoffeeScriptGuard
2
+ class CoffeeScript
3
3
  module Inspector
4
4
  class << self
5
5
 
@@ -1,7 +1,7 @@
1
1
  require 'coffee_script'
2
2
 
3
3
  module Guard
4
- class CoffeeScriptGuard
4
+ class CoffeeScript
5
5
  module Runner
6
6
  class << self
7
7
 
@@ -11,7 +11,7 @@ module Guard
11
11
  notify_result(changed_files, errors)
12
12
 
13
13
  changed_files
14
- rescue CoffeeScript::EngineError => e
14
+ rescue ::CoffeeScript::EngineError => e
15
15
  ::Guard::UI.error "CoffeeScript engine error: " + e.message
16
16
  end
17
17
 
@@ -32,7 +32,7 @@ module Guard
32
32
  begin
33
33
  content = compile(file, options)
34
34
  changed_files << process_compile_result(content, file, directory)
35
- rescue CoffeeScript::CompilationError => e
35
+ rescue ::CoffeeScript::CompilationError => e
36
36
  error_message = file + ': ' + e.message
37
37
  errors << error_message
38
38
  ::Guard::UI.error(error_message)
@@ -44,7 +44,7 @@ module Guard
44
44
  end
45
45
 
46
46
  def compile(file, options)
47
- CoffeeScript.compile(File.read(file), options)
47
+ ::CoffeeScript.compile(File.read(file), options)
48
48
  end
49
49
 
50
50
  def process_compile_result(content, file, directory)
@@ -86,4 +86,4 @@ module Guard
86
86
  end
87
87
  end
88
88
  end
89
- end
89
+ end
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module CoffeeScriptVersion
3
- VERSION = '0.1.7'
3
+ VERSION = '0.1.8'
4
4
  end
5
5
  end
@@ -3,7 +3,7 @@ require 'guard/guard'
3
3
  require 'guard/watcher'
4
4
 
5
5
  module Guard
6
- class CoffeeScriptGuard < Guard
6
+ class CoffeeScript < Guard
7
7
 
8
8
  autoload :Inspector, 'guard/coffeescript/inspector'
9
9
  autoload :Runner, 'guard/coffeescript/runner'
metadata CHANGED
@@ -1,12 +1,8 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: guard-coffeescript
3
3
  version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 1
8
- - 7
9
- version: 0.1.7
4
+ prerelease:
5
+ version: 0.1.8
10
6
  platform: ruby
11
7
  authors:
12
8
  - Michael Kessler
@@ -14,83 +10,63 @@ autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
12
 
17
- date: 2011-01-26 00:00:00 +01:00
13
+ date: 2011-03-12 00:00:00 +01:00
18
14
  default_executable:
19
15
  dependencies:
20
16
  - !ruby/object:Gem::Dependency
21
17
  name: guard
18
+ prerelease: false
22
19
  requirement: &id001 !ruby/object:Gem::Requirement
23
20
  none: false
24
21
  requirements:
25
22
  - - ~>
26
23
  - !ruby/object:Gem::Version
27
- segments:
28
- - 0
29
- - 3
30
- - 0
31
24
  version: 0.3.0
32
25
  type: :runtime
33
- prerelease: false
34
26
  version_requirements: *id001
35
27
  - !ruby/object:Gem::Dependency
36
28
  name: coffee-script
29
+ prerelease: false
37
30
  requirement: &id002 !ruby/object:Gem::Requirement
38
31
  none: false
39
32
  requirements:
40
33
  - - ~>
41
34
  - !ruby/object:Gem::Version
42
- segments:
43
- - 2
44
- - 1
45
- - 1
46
- version: 2.1.1
35
+ version: 2.2.0
47
36
  type: :runtime
48
- prerelease: false
49
37
  version_requirements: *id002
50
38
  - !ruby/object:Gem::Dependency
51
39
  name: bundler
40
+ prerelease: false
52
41
  requirement: &id003 !ruby/object:Gem::Requirement
53
42
  none: false
54
43
  requirements:
55
44
  - - ~>
56
45
  - !ruby/object:Gem::Version
57
- segments:
58
- - 1
59
- - 0
60
- - 9
61
- version: 1.0.9
46
+ version: 1.0.10
62
47
  type: :development
63
- prerelease: false
64
48
  version_requirements: *id003
65
49
  - !ruby/object:Gem::Dependency
66
50
  name: guard-rspec
51
+ prerelease: false
67
52
  requirement: &id004 !ruby/object:Gem::Requirement
68
53
  none: false
69
54
  requirements:
70
55
  - - ~>
71
56
  - !ruby/object:Gem::Version
72
- segments:
73
- - 0
74
- - 1
75
- - 9
76
- version: 0.1.9
57
+ version: 0.2.0
77
58
  type: :development
78
- prerelease: false
79
59
  version_requirements: *id004
80
60
  - !ruby/object:Gem::Dependency
81
61
  name: rspec
62
+ prerelease: false
82
63
  requirement: &id005 !ruby/object:Gem::Requirement
83
64
  none: false
84
65
  requirements:
85
66
  - - ~>
86
67
  - !ruby/object:Gem::Version
87
- segments:
88
- - 2
89
- - 4
90
- - 0
91
- version: 2.4.0
68
+ version: 2.5.0
92
69
  type: :development
93
- prerelease: false
94
70
  version_requirements: *id005
95
71
  description: Guard::CoffeeScript automatically generates your JavaScripts from your CoffeeScripts
96
72
  email:
@@ -123,24 +99,17 @@ required_ruby_version: !ruby/object:Gem::Requirement
123
99
  requirements:
124
100
  - - ">="
125
101
  - !ruby/object:Gem::Version
126
- hash: 792439213645876000
127
- segments:
128
- - 0
129
102
  version: "0"
130
103
  required_rubygems_version: !ruby/object:Gem::Requirement
131
104
  none: false
132
105
  requirements:
133
106
  - - ">="
134
107
  - !ruby/object:Gem::Version
135
- segments:
136
- - 1
137
- - 3
138
- - 6
139
108
  version: 1.3.6
140
109
  requirements: []
141
110
 
142
111
  rubyforge_project: guard-coffeescript
143
- rubygems_version: 1.3.7
112
+ rubygems_version: 1.6.1
144
113
  signing_key:
145
114
  specification_version: 3
146
115
  summary: Guard gem for CoffeeScript