coffee-rails-source-paths 0.0.2 → 0.0.3

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7d9186d1f4af3e0a6a3324dddf6ed33d0253ccc9
4
- data.tar.gz: e27ee721db6fa884821ec92353ac41e7a164786e
3
+ metadata.gz: 975276a6f1b0e7448feb40e788826fd291059939
4
+ data.tar.gz: 4a0f0fb6fb4c8e261ca8e02dc1becd92894abe44
5
5
  SHA512:
6
- metadata.gz: e5541935e2c1d073140cd31397246040c009e66b8304f6298b767bdf653f75ea26948c040e6dc31bb5799c0800008cda4fda4dda4ba4c8781ff7995929b8653e
7
- data.tar.gz: 712b11d0398b2a9443b678740145de260544993cf60f0f557bfda0bbf98be0e1ef461d58d7e08c8297ebb7941224c19dbf895c1bad0ec5696cc3fd518ecfc6aa
6
+ metadata.gz: ce254e70f5868125a6d03f8e77fd88d5d629a97454c5b44fda28e2cc33f67243ed249f2002d0c9f77e3c1c783e4ac4bdc6e6db44c139da37ceac16ff733d6edf
7
+ data.tar.gz: 25c2657e2f75922859475272ac491b309652d5eca5b286c75febb5c401aae504eed977d49319434b15016fe2606d040872cd7c95d4c09ae58062ecb6e2998e8b
@@ -57,12 +57,13 @@ if Rails.env.development?
57
57
  file_path = "var sourcePath='#{pathname.basename}';\n"
58
58
  ret = Source.context.call(wrapper, file_path + script, options)
59
59
 
60
+ puts file_path
60
61
  coffee_file.open('w') {|f| f.puts script }
61
62
  map_file.open('w') {|f| f.puts ret["v3SourceMap"]}
62
63
 
63
64
  comment = "//# sourceMappingURL=/#{map_file.relative_path_from(Rails.root.join("public"))}\n"
64
65
  # This will add file source that can be used in directives or controllers
65
- return ret['js'] + comment
66
+ return file_path + ret['js'] + comment
66
67
  end
67
68
 
68
69
  end
@@ -1,3 +1,3 @@
1
1
  module CoffeeRailsSourceMaps
2
- VERSION = "0.0.2"
2
+ VERSION = "0.0.3"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: coffee-rails-source-paths
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Damian Trojnar