guard-coffeescript 0.1.3 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -43,7 +43,7 @@ module Guard
43
43
  def process_compile_result(content, file, directory, errors, success)
44
44
  if success
45
45
  FileUtils.mkdir_p(directory) if !File.directory?(directory)
46
- File.open(File.join(directory, File.basename(file)), 'w') { |f| f.write(content) }
46
+ File.open(File.join(directory, File.basename(file.gsub(/coffee$/, 'js'))), 'w') { |f| f.write(content) }
47
47
  else
48
48
  errors << file + ': ' + content.split("\n").select { |line| line =~ /^Error:/ }.join("\n")
49
49
  ::Guard::UI.error(content)
@@ -1,5 +1,5 @@
1
1
  module Guard
2
2
  module CoffeeScriptVersion
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
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: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Kessler