coffee-rails 4.2.2 → 5.0.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 3baf3a35ae9b39785fc2cd22057541973db1dbcd
4
- data.tar.gz: a36de744d3e1aabab21e30ca789d20f8521c7d90
2
+ SHA256:
3
+ metadata.gz: 05af68564132741dd759635fe78e98f543ddec852831eec635e8332410f63406
4
+ data.tar.gz: 2d6d6b72ed14b06da73d464ba810708c0d242339e285ed8533bda0f4de50fe03
5
5
  SHA512:
6
- metadata.gz: e2dbffe9a2275488155f6cfe95cd39768a4eab5162b0ad9f200de9dc7470056bcecbb2d6701aa7a82388c2a65a3f028bdb9aee3226267e7028e32a6cde229a20
7
- data.tar.gz: 88fed759a018c12fed99938cecb869dfc7a9fc2dca6e4ab84601f80f3d910091433cc99f0359aaa62f04479042aafd0353c66e45531b4e9355cbf51d34c6f502
6
+ metadata.gz: f10c8185d038247c63cfbe41bf8410ca291a6c3cef0ca28cefb0d4f9120e22bc256821d59e92d161bdc1f24dab94126bef0042ac95090c9b93d0e93e5b490a94
7
+ data.tar.gz: b050ed5ca415e6c0c8f873763b2ac32148afd22d283a09b9678f87800fc501056ef3c5f446608eb20d871f106361acc69ff6efa56f7bc11961c678e1b5e80cd5
@@ -1,3 +1,8 @@
1
+ ## 5.0.0 (Apr 23, 2019) ##
2
+
3
+ * Remove support to Rails < 5.2.
4
+ * Support Rails 6.
5
+
1
6
  ## 4.2.2 (May 24, 2017) ##
2
7
 
3
8
  * Support digest resolution for coffee templates.
data/README.md CHANGED
@@ -21,4 +21,3 @@ If you need to test against local gems, use Bundler's gem `:path` option in the
21
21
 
22
22
  * [![Travis CI](https://api.travis-ci.org/rails/coffee-rails.png)](http://travis-ci.org/rails/coffee-rails)
23
23
  * [![Gem Version](https://badge.fury.io/rb/coffee-rails.png)](http://badge.fury.io/rb/coffee-rails)
24
- * [![Dependencies](https://gemnasium.com/rails/coffee-rails.png)](https://gemnasium.com/rails/coffee-rails)
@@ -5,6 +5,7 @@ require 'coffee/rails/js_hook'
5
5
  module Coffee
6
6
  module Rails
7
7
  class Engine < ::Rails::Engine
8
+ config.app_generators.javascripts true
8
9
  config.app_generators.javascript_engine :coffee
9
10
 
10
11
  if config.respond_to?(:annotations)
@@ -5,8 +5,12 @@ module Coffee
5
5
  @@erb_handler ||= ActionView::Template.registered_template_handler(:erb)
6
6
  end
7
7
 
8
- def self.call(template)
9
- compiled_source = erb_handler.call(template)
8
+ def self.call(template, source = nil)
9
+ compiled_source = if source
10
+ erb_handler.call(template, source)
11
+ else
12
+ erb_handler.call(template)
13
+ end
10
14
  "CoffeeScript.compile(begin;#{compiled_source};end)"
11
15
  end
12
16
  end
@@ -1,5 +1,5 @@
1
1
  module Coffee
2
2
  module Rails
3
- VERSION = "4.2.2"
3
+ VERSION = "5.0.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.2.2
4
+ version: 5.0.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: 2017-05-24 00:00:00.000000000 Z
11
+ date: 2019-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: coffee-script
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: 4.0.0
33
+ version: 5.2.0
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: 4.0.0
40
+ version: 5.2.0
41
41
  description: CoffeeScript adapter for the Rails asset pipeline.
42
42
  email:
43
43
  - santiago@wyeworks.com
@@ -75,8 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  - !ruby/object:Gem::Version
76
76
  version: '0'
77
77
  requirements: []
78
- rubyforge_project: coffee-rails
79
- rubygems_version: 2.6.11
78
+ rubygems_version: 3.0.1
80
79
  signing_key:
81
80
  specification_version: 4
82
81
  summary: CoffeeScript adapter for the Rails asset pipeline.