coffee-rails-source-maps 1.3.1 → 1.3.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +8 -3
- data/lib/coffee-rails-source-maps.rb +2 -1
- data/lib/coffee-rails-source-maps/version.rb +1 -1
- metadata +2 -8
data/README.md
CHANGED
@@ -11,6 +11,9 @@ Add this line to your application's Gemfile:
|
|
11
11
|
And then execute:
|
12
12
|
|
13
13
|
$ bundle
|
14
|
+
$ rm -rf tmp/cache/assets
|
15
|
+
|
16
|
+
Removing `tmp/cache/assets` will cause the asset pipeline to recompile all your coffeescripts on the next page load. This will ensure all source maps are generated.
|
14
17
|
|
15
18
|
## Usage
|
16
19
|
|
@@ -22,7 +25,7 @@ group :development do
|
|
22
25
|
end
|
23
26
|
```
|
24
27
|
|
25
|
-
This gem will create a folder called `source_maps` in the Rails `public` directory. I would recommend adding this to your `.gitignore` file so you don't check this folder into git.
|
28
|
+
This gem will create a folder called `assets/source_maps` in the Rails `public` directory. I would recommend adding this to your `.gitignore` file so you don't check this folder into git.
|
26
29
|
|
27
30
|
```
|
28
31
|
public/source_maps/
|
@@ -42,7 +45,7 @@ Finally to see your CoffeeScript code in the Chrome console just add a `debugger
|
|
42
45
|
|
43
46
|
## Help! I'm Not Seeing Maps!
|
44
47
|
|
45
|
-
|
48
|
+
Make sure you've deleted `tmp/cache/assets`, restarted your server, enabled source maps in Chrome, and cleared its cache.
|
46
49
|
|
47
50
|
Good luck!
|
48
51
|
|
@@ -62,6 +65,8 @@ This gem is based on the following Gist: [https://gist.github.com/naan/5096056](
|
|
62
65
|
|
63
66
|
* Mark Bates
|
64
67
|
* Raymond Vellener
|
65
|
-
* Curtis Steckel
|
66
68
|
* Alexey Chernenkov
|
69
|
+
* Brent Dillingham
|
70
|
+
* Curtis Steckel
|
71
|
+
* Sean Santry
|
67
72
|
* Thomas Walpole
|
@@ -59,7 +59,8 @@ if Rails.env.development?
|
|
59
59
|
module Tilt
|
60
60
|
class CoffeeScriptTemplate < Template
|
61
61
|
def evaluate(scope, locals, &block)
|
62
|
-
|
62
|
+
pathname = scope.respond_to?(:pathname) ? scope.pathname : nil
|
63
|
+
@output ||= CoffeeScript.compile(data, options.merge(:pathname => pathname))
|
63
64
|
end
|
64
65
|
end
|
65
66
|
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.3.
|
4
|
+
version: 1.3.2
|
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-
|
12
|
+
date: 2013-04-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: coffee-script-source
|
@@ -72,18 +72,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
72
72
|
- - ! '>='
|
73
73
|
- !ruby/object:Gem::Version
|
74
74
|
version: '0'
|
75
|
-
segments:
|
76
|
-
- 0
|
77
|
-
hash: 3804960167039426062
|
78
75
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
79
76
|
none: false
|
80
77
|
requirements:
|
81
78
|
- - ! '>='
|
82
79
|
- !ruby/object:Gem::Version
|
83
80
|
version: '0'
|
84
|
-
segments:
|
85
|
-
- 0
|
86
|
-
hash: 3804960167039426062
|
87
81
|
requirements: []
|
88
82
|
rubyforge_project:
|
89
83
|
rubygems_version: 1.8.25
|