coffee-rails-source-maps 1.2.3 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +2 -1
- data/lib/coffee-rails-source-maps.rb +4 -4
- data/lib/coffee-rails-source-maps/version.rb +1 -1
- metadata +4 -4
data/README.md
CHANGED
@@ -34,8 +34,8 @@ if Rails.env.development?
|
|
34
34
|
else
|
35
35
|
pathname.relative_path_from(Rails.root).dirname
|
36
36
|
end
|
37
|
-
|
38
|
-
map_dir = Rails.root.join("public", "source_maps", rel_path)
|
37
|
+
|
38
|
+
map_dir = Rails.root.join("public/" + Rails.configuration.assets.prefix, "source_maps", rel_path)
|
39
39
|
map_dir.mkpath
|
40
40
|
|
41
41
|
map_file = map_dir.join("#{clean_name}.map")
|
@@ -47,7 +47,7 @@ if Rails.env.development?
|
|
47
47
|
comment = "//@ sourceMappingURL=/#{map_file.relative_path_from(Rails.root.join("public"))}\n"
|
48
48
|
return comment + ret['js']
|
49
49
|
end
|
50
|
-
|
50
|
+
|
51
51
|
end
|
52
52
|
|
53
53
|
end
|
@@ -59,7 +59,7 @@ if Rails.env.development?
|
|
59
59
|
module Tilt
|
60
60
|
class CoffeeScriptTemplate < Template
|
61
61
|
def evaluate(scope, locals, &block)
|
62
|
-
@output ||= CoffeeScript.compile(data, options.merge(pathname
|
62
|
+
@output ||= CoffeeScript.compile(data, options.merge(:pathname => scope.pathname))
|
63
63
|
end
|
64
64
|
end
|
65
65
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coffee-rails-source-maps
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2013-03-
|
12
|
+
date: 2013-03-16 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coffee-script-source
|
@@ -74,7 +74,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
74
74
|
version: '0'
|
75
75
|
segments:
|
76
76
|
- 0
|
77
|
-
hash: -
|
77
|
+
hash: -1607949065737824908
|
78
78
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
79
|
none: false
|
80
80
|
requirements:
|
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
83
83
|
version: '0'
|
84
84
|
segments:
|
85
85
|
- 0
|
86
|
-
hash: -
|
86
|
+
hash: -1607949065737824908
|
87
87
|
requirements: []
|
88
88
|
rubyforge_project:
|
89
89
|
rubygems_version: 1.8.25
|