coffee-rails 4.1.1 → 4.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +6 -1
- data/MIT-LICENSE +1 -1
- data/lib/coffee/rails/engine.rb +8 -0
- data/lib/coffee/rails/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0d683443097edaaf0474962450b19d28dbb31a6
|
4
|
+
data.tar.gz: cb282795f4d050de0243161f6c4c43d7d46e86de
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f33106e9ded82ca838c9a2aa96ad522d71089fcd05465c3bf8a3c465e0bccd341c2c231a195adcd42c1db9c2b56ddf763119656348556504b9ab47bb808fc992
|
7
|
+
data.tar.gz: 151fbca598aaa3c91352298209b7755913745e1b52022298b65d3fcabf3e37dd96efadcddfe7513d2634d5db392347e8d01753e3efe04960252575b63c80edd4
|
data/CHANGELOG.md
CHANGED
data/MIT-LICENSE
CHANGED
data/lib/coffee/rails/engine.rb
CHANGED
@@ -1,4 +1,6 @@
|
|
1
1
|
require 'rails/engine'
|
2
|
+
require 'rails/generators'
|
3
|
+
require 'coffee/rails/js_hook'
|
2
4
|
|
3
5
|
module Coffee
|
4
6
|
module Rails
|
@@ -8,6 +10,12 @@ module Coffee
|
|
8
10
|
if config.respond_to?(:annotations)
|
9
11
|
config.annotations.register_extensions("coffee") { |annotation| /#\s*(#{annotation}):?\s*(.*)$/ }
|
10
12
|
end
|
13
|
+
|
14
|
+
initializer 'override js_template hook' do |app|
|
15
|
+
if app.config.generators.rails[:javascript_engine] == :coffee
|
16
|
+
::Rails::Generators::NamedBase.send :include, Coffee::Rails::JsHook
|
17
|
+
end
|
18
|
+
end
|
11
19
|
end
|
12
20
|
end
|
13
21
|
end
|
data/lib/coffee/rails/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coffee-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.
|
4
|
+
version: 4.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Santiago Pastorino
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-06-30 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-script
|
@@ -33,7 +33,7 @@ dependencies:
|
|
33
33
|
version: 4.0.0
|
34
34
|
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
|
-
version: 5.
|
36
|
+
version: 5.2.x
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -43,7 +43,7 @@ dependencies:
|
|
43
43
|
version: 4.0.0
|
44
44
|
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
|
-
version: 5.
|
46
|
+
version: 5.2.x
|
47
47
|
description: CoffeeScript adapter for the Rails asset pipeline.
|
48
48
|
email:
|
49
49
|
- santiago@wyeworks.com
|
@@ -81,7 +81,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
version: '0'
|
82
82
|
requirements: []
|
83
83
|
rubyforge_project: coffee-rails
|
84
|
-
rubygems_version: 2.
|
84
|
+
rubygems_version: 2.6.6
|
85
85
|
signing_key:
|
86
86
|
specification_version: 4
|
87
87
|
summary: CoffeeScript adapter for the Rails asset pipeline.
|