coffee-rails 4.0.1 → 4.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +4 -2
- data/CHANGELOG.md +10 -0
- data/Gemfile +4 -2
- data/coffee-rails.gemspec +2 -2
- data/gemfiles/Gemfile-4-0-stable +6 -0
- data/gemfiles/Gemfile-4-1-stable +11 -0
- data/lib/coffee/rails/engine.rb +4 -0
- data/lib/coffee/rails/version.rb +1 -1
- data/lib/rails/generators/coffee/assets/assets_generator.rb +1 -1
- data/lib/rails/generators/coffee/assets/templates/{javascript.js.coffee → javascript.coffee} +0 -0
- data/test/assets_generator_test.rb +1 -1
- data/test/controller_generator_test.rb +1 -1
- data/test/scaffold_generator_test.rb +1 -1
- data/test/support/site/{index.js.coffee → index.coffee} +0 -0
- metadata +17 -16
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 95ed035eb0cd8008b5288981b2a1f2868cb297f1
|
4
|
+
data.tar.gz: 66eb63b15f2cca7c0eef5d132b968353c21af653
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f5aa84cea98e36edb23119c6d520ee9372cddc274905e86e7939221d51a949760e3be16bacbd3ddbcf64d9ef07a17752824b9f1b7643ad588ed92c53b12d9a46
|
7
|
+
data.tar.gz: 1e75f14cd716b66ea2f798cd4e0e6d6eaf303bd69631154a4e3b06b57f84fbe5f75a9b26ffb2a9ff93b206f247a87e4913680753b06232ec72e0b3c558c15957
|
data/.travis.yml
CHANGED
data/CHANGELOG.md
CHANGED
data/Gemfile
CHANGED
data/coffee-rails.gemspec
CHANGED
@@ -16,8 +16,8 @@ Gem::Specification.new do |s|
|
|
16
16
|
s.add_runtime_dependency 'coffee-script', '>= 2.2.0'
|
17
17
|
s.add_runtime_dependency 'railties', '>= 4.0.0', '< 5.0'
|
18
18
|
|
19
|
-
s.files = [".gitignore",".travis.yml","CHANGELOG.md","Gemfile","MIT-LICENSE","README.md","Rakefile","coffee-rails.gemspec","coffee-rails.gemspec.erb","gemfiles/Gemfile-4-0-stable","lib/assets/javascripts/coffee-script.js.erb","lib/coffee-rails.rb","lib/coffee/rails/engine.rb","lib/coffee/rails/template_handler.rb","lib/coffee/rails/version.rb","lib/rails/generators/coffee/assets/assets_generator.rb","lib/rails/generators/coffee/assets/templates/javascript.
|
20
|
-
s.test_files = ["test/assets_generator_test.rb","test/assets_test.rb","test/controller_generator_test.rb","test/scaffold_generator_test.rb","test/support/routes.rb","test/support/site/index.
|
19
|
+
s.files = [".gitignore",".travis.yml","CHANGELOG.md","Gemfile","MIT-LICENSE","README.md","Rakefile","coffee-rails.gemspec","coffee-rails.gemspec.erb","gemfiles/Gemfile-4-0-stable","gemfiles/Gemfile-4-1-stable","lib/assets/javascripts/coffee-script.js.erb","lib/coffee-rails.rb","lib/coffee/rails/engine.rb","lib/coffee/rails/template_handler.rb","lib/coffee/rails/version.rb","lib/rails/generators/coffee/assets/assets_generator.rb","lib/rails/generators/coffee/assets/templates/javascript.coffee","test/assets_generator_test.rb","test/assets_test.rb","test/controller_generator_test.rb","test/scaffold_generator_test.rb","test/support/routes.rb","test/support/site/index.coffee","test/template_handler_test.rb","test/test_helper.rb"]
|
20
|
+
s.test_files = ["test/assets_generator_test.rb","test/assets_test.rb","test/controller_generator_test.rb","test/scaffold_generator_test.rb","test/support/routes.rb","test/support/site/index.coffee","test/template_handler_test.rb","test/test_helper.rb"]
|
21
21
|
s.executables = []
|
22
22
|
s.require_paths = ["lib"]
|
23
23
|
s.license = "MIT"
|
data/gemfiles/Gemfile-4-0-stable
CHANGED
data/lib/coffee/rails/engine.rb
CHANGED
@@ -4,6 +4,10 @@ module Coffee
|
|
4
4
|
module Rails
|
5
5
|
class Engine < ::Rails::Engine
|
6
6
|
config.app_generators.javascript_engine :coffee
|
7
|
+
|
8
|
+
if config.respond_to?(:annotations)
|
9
|
+
config.annotations.register_extensions("coffee") { |annotation| /#\s*(#{annotation}):?\s*(.*)$/ }
|
10
|
+
end
|
7
11
|
end
|
8
12
|
end
|
9
13
|
end
|
data/lib/coffee/rails/version.rb
CHANGED
@@ -6,7 +6,7 @@ module Coffee
|
|
6
6
|
source_root File.expand_path("../templates", __FILE__)
|
7
7
|
|
8
8
|
def copy_coffee
|
9
|
-
template "javascript.
|
9
|
+
template "javascript.coffee", File.join('app/assets/javascripts', class_path, "#{file_name}.coffee")
|
10
10
|
end
|
11
11
|
end
|
12
12
|
end
|
data/lib/rails/generators/coffee/assets/templates/{javascript.js.coffee → javascript.coffee}
RENAMED
File without changes
|
@@ -10,6 +10,6 @@ class AssetGeneratorTest < Rails::Generators::TestCase
|
|
10
10
|
def test_assets
|
11
11
|
run_generator %w(posts)
|
12
12
|
assert_no_file "app/assets/javascripts/posts.js"
|
13
|
-
assert_file "app/assets/javascripts/posts.
|
13
|
+
assert_file "app/assets/javascripts/posts.coffee"
|
14
14
|
end
|
15
15
|
end
|
@@ -14,6 +14,6 @@ class ControllerGeneratorTest < Rails::Generators::TestCase
|
|
14
14
|
def test_assets
|
15
15
|
run_generator %w(posts --javascript-engine=coffee --orm=false)
|
16
16
|
assert_no_file "app/assets/javascripts/posts.js"
|
17
|
-
assert_file "app/assets/javascripts/posts.
|
17
|
+
assert_file "app/assets/javascripts/posts.coffee"
|
18
18
|
end
|
19
19
|
end
|
@@ -14,6 +14,6 @@ class ScaffoldGeneratorTest < Rails::Generators::TestCase
|
|
14
14
|
def test_assets
|
15
15
|
run_generator %w(posts --javascript-engine=coffee --orm=false)
|
16
16
|
assert_no_file "app/assets/javascripts/posts.js"
|
17
|
-
assert_file "app/assets/javascripts/posts.
|
17
|
+
assert_file "app/assets/javascripts/posts.coffee"
|
18
18
|
end
|
19
19
|
end
|
File without changes
|
metadata
CHANGED
@@ -1,47 +1,47 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: coffee-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0
|
4
|
+
version: 4.1.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: 2014-10-13 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: coffee-script
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: 2.2.0
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: 2.2.0
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: railties
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
30
30
|
requirements:
|
31
|
-
- -
|
31
|
+
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: 4.0.0
|
34
|
-
- - <
|
34
|
+
- - "<"
|
35
35
|
- !ruby/object:Gem::Version
|
36
36
|
version: '5.0'
|
37
37
|
type: :runtime
|
38
38
|
prerelease: false
|
39
39
|
version_requirements: !ruby/object:Gem::Requirement
|
40
40
|
requirements:
|
41
|
-
- -
|
41
|
+
- - ">="
|
42
42
|
- !ruby/object:Gem::Version
|
43
43
|
version: 4.0.0
|
44
|
-
- - <
|
44
|
+
- - "<"
|
45
45
|
- !ruby/object:Gem::Version
|
46
46
|
version: '5.0'
|
47
47
|
description: CoffeeScript adapter for the Rails asset pipeline.
|
@@ -51,8 +51,8 @@ executables: []
|
|
51
51
|
extensions: []
|
52
52
|
extra_rdoc_files: []
|
53
53
|
files:
|
54
|
-
- .gitignore
|
55
|
-
- .travis.yml
|
54
|
+
- ".gitignore"
|
55
|
+
- ".travis.yml"
|
56
56
|
- CHANGELOG.md
|
57
57
|
- Gemfile
|
58
58
|
- MIT-LICENSE
|
@@ -61,19 +61,20 @@ files:
|
|
61
61
|
- coffee-rails.gemspec
|
62
62
|
- coffee-rails.gemspec.erb
|
63
63
|
- gemfiles/Gemfile-4-0-stable
|
64
|
+
- gemfiles/Gemfile-4-1-stable
|
64
65
|
- lib/assets/javascripts/coffee-script.js.erb
|
65
66
|
- lib/coffee-rails.rb
|
66
67
|
- lib/coffee/rails/engine.rb
|
67
68
|
- lib/coffee/rails/template_handler.rb
|
68
69
|
- lib/coffee/rails/version.rb
|
69
70
|
- lib/rails/generators/coffee/assets/assets_generator.rb
|
70
|
-
- lib/rails/generators/coffee/assets/templates/javascript.
|
71
|
+
- lib/rails/generators/coffee/assets/templates/javascript.coffee
|
71
72
|
- test/assets_generator_test.rb
|
72
73
|
- test/assets_test.rb
|
73
74
|
- test/controller_generator_test.rb
|
74
75
|
- test/scaffold_generator_test.rb
|
75
76
|
- test/support/routes.rb
|
76
|
-
- test/support/site/index.
|
77
|
+
- test/support/site/index.coffee
|
77
78
|
- test/template_handler_test.rb
|
78
79
|
- test/test_helper.rb
|
79
80
|
homepage: https://github.com/rails/coffee-rails
|
@@ -86,17 +87,17 @@ require_paths:
|
|
86
87
|
- lib
|
87
88
|
required_ruby_version: !ruby/object:Gem::Requirement
|
88
89
|
requirements:
|
89
|
-
- -
|
90
|
+
- - ">="
|
90
91
|
- !ruby/object:Gem::Version
|
91
92
|
version: '0'
|
92
93
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
93
94
|
requirements:
|
94
|
-
- -
|
95
|
+
- - ">="
|
95
96
|
- !ruby/object:Gem::Version
|
96
97
|
version: '0'
|
97
98
|
requirements: []
|
98
99
|
rubyforge_project: coffee-rails
|
99
|
-
rubygems_version: 2.
|
100
|
+
rubygems_version: 2.4.1
|
100
101
|
signing_key:
|
101
102
|
specification_version: 4
|
102
103
|
summary: CoffeeScript adapter for the Rails asset pipeline.
|
@@ -106,6 +107,6 @@ test_files:
|
|
106
107
|
- test/controller_generator_test.rb
|
107
108
|
- test/scaffold_generator_test.rb
|
108
109
|
- test/support/routes.rb
|
109
|
-
- test/support/site/index.
|
110
|
+
- test/support/site/index.coffee
|
110
111
|
- test/template_handler_test.rb
|
111
112
|
- test/test_helper.rb
|