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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: c4adc99098a6f604e991f7728b02d638a4aea55c
4
- data.tar.gz: 234537504ce18ba4067e278269b3a675fac87a0e
3
+ metadata.gz: 95ed035eb0cd8008b5288981b2a1f2868cb297f1
4
+ data.tar.gz: 66eb63b15f2cca7c0eef5d132b968353c21af653
5
5
  SHA512:
6
- metadata.gz: 2d30c1fc63d834e1011fd1263b2a124092c6fe49a592ee1f6bb2445992bdba9881b665f8c28bf70d41e83cb0ec4156fde003f23a4a348d274a8fd9b89fffd64c
7
- data.tar.gz: 4bc221697759a0d4c95a2895bec66fe2581a27eef180afc7c5a01dbd6ce6b73f390ef3b23f6ff479726ff16214963eef26fcfd0bb5ba75e45f191300b85bfebf
6
+ metadata.gz: f5aa84cea98e36edb23119c6d520ee9372cddc274905e86e7939221d51a949760e3be16bacbd3ddbcf64d9ef07a17752824b9f1b7643ad588ed92c53b12d9a46
7
+ data.tar.gz: 1e75f14cd716b66ea2f798cd4e0e6d6eaf303bd69631154a4e3b06b57f84fbe5f75a9b26ffb2a9ff93b206f247a87e4913680753b06232ec72e0b3c558c15957
@@ -4,11 +4,13 @@ before_install:
4
4
  rvm:
5
5
  - 1.9.3
6
6
  - 2.0.0
7
- - jruby-19mode
8
- - rbx-19mode
7
+ - 2.1.0
8
+ - jruby
9
+ - rbx
9
10
  gemfile:
10
11
  - Gemfile
11
12
  - gemfiles/Gemfile-4-0-stable
13
+ - gemfiles/Gemfile-4-1-stable
12
14
  notifications:
13
15
  email: false
14
16
  campfire:
@@ -1,3 +1,13 @@
1
+ ## unreleased ##
2
+
3
+ * Default to .coffee extension instead of .js.coffee
4
+
5
+ *Joshua Peek*
6
+
7
+ * Register coffee extension for rake notes.
8
+
9
+ *Roberto Miranda*
10
+
1
11
  ## 4.0.1 (October 17, 2013) ##
2
12
 
3
13
  * Drop support to Rails `4.0.0.rc` releases
data/Gemfile CHANGED
@@ -5,5 +5,7 @@ gemspec
5
5
 
6
6
  gem "rails", github: "rails/rails"
7
7
 
8
- # To use debugger
9
- # gem 'debugger'
8
+ platforms :rbx do
9
+ gem "rubysl", "~> 2.0"
10
+ gem "racc", "~> 1.4"
11
+ end
@@ -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.js.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.js.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.js.coffee","test/template_handler_test.rb","test/test_helper.rb"]
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"
@@ -3,3 +3,9 @@ source 'https://rubygems.org'
3
3
  gemspec path: '..'
4
4
 
5
5
  gem 'rails', github: 'rails/rails', branch: '4-0-stable'
6
+
7
+ platforms :rbx do
8
+ gem "rubysl", "~> 2.0"
9
+ gem "racc", "~> 1.4"
10
+ gem "json"
11
+ end
@@ -0,0 +1,11 @@
1
+ source 'https://rubygems.org'
2
+
3
+ gemspec path: '..'
4
+
5
+ gem 'rails', github: 'rails/rails', branch: '4-1-stable'
6
+
7
+ platforms :rbx do
8
+ gem "rubysl", "~> 2.0"
9
+ gem "racc", "~> 1.4"
10
+ gem "json"
11
+ end
@@ -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
@@ -1,5 +1,5 @@
1
1
  module Coffee
2
2
  module Rails
3
- VERSION = "4.0.1"
3
+ VERSION = "4.1.0"
4
4
  end
5
5
  end
@@ -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.js.coffee", File.join('app/assets/javascripts', class_path, "#{file_name}.js.coffee")
9
+ template "javascript.coffee", File.join('app/assets/javascripts', class_path, "#{file_name}.coffee")
10
10
  end
11
11
  end
12
12
  end
@@ -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.js.coffee"
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.js.coffee"
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.js.coffee"
17
+ assert_file "app/assets/javascripts/posts.coffee"
18
18
  end
19
19
  end
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.1
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: 2013-10-17 00:00:00.000000000 Z
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.js.coffee
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.js.coffee
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.0.6
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.js.coffee
110
+ - test/support/site/index.coffee
110
111
  - test/template_handler_test.rb
111
112
  - test/test_helper.rb