coffee-rails-source-paths 0.0.1 → 0.0.2
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 +3 -3
- 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: 7d9186d1f4af3e0a6a3324dddf6ed33d0253ccc9
|
4
|
+
data.tar.gz: e27ee721db6fa884821ec92353ac41e7a164786e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: e5541935e2c1d073140cd31397246040c009e66b8304f6298b767bdf653f75ea26948c040e6dc31bb5799c0800008cda4fda4dda4ba4c8781ff7995929b8653e
|
7
|
+
data.tar.gz: 712b11d0398b2a9443b678740145de260544993cf60f0f557bfda0bbf98be0e1ef461d58d7e08c8297ebb7941224c19dbf895c1bad0ec5696cc3fd518ecfc6aa
|
@@ -54,15 +54,15 @@ if Rails.env.development?
|
|
54
54
|
})
|
55
55
|
WRAPPER
|
56
56
|
|
57
|
-
|
57
|
+
file_path = "var sourcePath='#{pathname.basename}';\n"
|
58
|
+
ret = Source.context.call(wrapper, file_path + script, options)
|
58
59
|
|
59
60
|
coffee_file.open('w') {|f| f.puts script }
|
60
61
|
map_file.open('w') {|f| f.puts ret["v3SourceMap"]}
|
61
62
|
|
62
63
|
comment = "//# sourceMappingURL=/#{map_file.relative_path_from(Rails.root.join("public"))}\n"
|
63
64
|
# This will add file source that can be used in directives or controllers
|
64
|
-
|
65
|
-
return filePath + ret['js'] + comment
|
65
|
+
return ret['js'] + comment
|
66
66
|
end
|
67
67
|
|
68
68
|
end
|