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 +4 -4
- data/lib/coffee-rails-source-maps.rb +2 -1
- data/lib/coffee-rails-source-maps/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 975276a6f1b0e7448feb40e788826fd291059939
|
4
|
+
data.tar.gz: 4a0f0fb6fb4c8e261ca8e02dc1becd92894abe44
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|