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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6d10db1f8b2773dd6926f86a08532c5a12b411a9
4
- data.tar.gz: 105fcc06d65ebe9e591c14fcbdf17d1364c48fa9
3
+ metadata.gz: f0d683443097edaaf0474962450b19d28dbb31a6
4
+ data.tar.gz: cb282795f4d050de0243161f6c4c43d7d46e86de
5
5
  SHA512:
6
- metadata.gz: 7767da2d9d38ea81ec0eb57ab410cb0c09d6079007f9c4f0935b42ede4314c232ab2bfbe9e73f78b4280731aaa1b59390d16abd45dbc238724f3b32bf2b10c21
7
- data.tar.gz: 6b2705c144786fa5c4898945ed49d3fdc121105d2c03e880bc57dafe4ffed52a9590cd0a85fa6eef287c8d3e92fd29be9cf36be719808a40d4d9a6f57e2e0046
6
+ metadata.gz: f33106e9ded82ca838c9a2aa96ad522d71089fcd05465c3bf8a3c465e0bccd341c2c231a195adcd42c1db9c2b56ddf763119656348556504b9ab47bb808fc992
7
+ data.tar.gz: 151fbca598aaa3c91352298209b7755913745e1b52022298b65d3fcabf3e37dd96efadcddfe7513d2634d5db392347e8d01753e3efe04960252575b63c80edd4
@@ -1,4 +1,9 @@
1
- ## 4.1.1 (December 18, 2018) ##
1
+ ## 4.2.0 (June 30, 2016) ##
2
+
3
+ * Override `js_tempalte` hook in the Rails generator to allow Rails to
4
+ be CoffeeScript agnostic.
5
+
6
+ ## 4.1.1 (December 18, 2015) ##
2
7
 
3
8
  * Allow Rails 5.
4
9
 
@@ -1,4 +1,4 @@
1
- Copyright (c) 2011 Santiago Pastorino
1
+ Copyright (c) 2011-2016 Santiago Pastorino
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Coffee
2
2
  module Rails
3
- VERSION = "4.1.1"
3
+ VERSION = "4.2.0"
4
4
  end
5
5
  end
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.1.1
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: 2015-12-18 00:00:00.000000000 Z
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.1.x
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.1.x
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.5.1
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.