coffee-rails 3.1.0.rc.6 → 3.1.0.rc.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,22 @@
1
+ # Coffee-Rails
2
+
3
+ Coffee Script adapter for the Rails asset pipeline. Also adds support to use CoffeeScript to respond to JavaScript requests (use .js.coffee views).
4
+
5
+ ## Installation
6
+
7
+ Since Rails 3.1 Coffee-Rails is included in the default Gemfile when you create a new application. If you are upgrading to Rails 3.1 you must add the coffee-rails to your Gemfile:
8
+
9
+ gem 'coffee-rails'
10
+
11
+ If you are precompiling your assets (with rake assets:precompile) before run your application in production, you might want add it to the assets group to prevent the gem being required in the production environment.
12
+
13
+ group :assets do
14
+ gem 'coffee-rails'
15
+ end
16
+
17
+ ## Running tests
18
+
19
+ $ bundle install
20
+ $ bundle exec rake test
21
+
22
+ If you need to test against local gems, use Bundler's gem :path option in the Gemfile.
@@ -13,4 +13,6 @@ module Coffee
13
13
  end
14
14
  end
15
15
 
16
- ActionView::Template.register_template_handler :coffee, Coffee::Rails::TemplateHandler
16
+ ActiveSupport.on_load(:action_view) do
17
+ ActionView::Template.register_template_handler :coffee, Coffee::Rails::TemplateHandler
18
+ end
@@ -1,5 +1,5 @@
1
1
  module Coffee
2
2
  module Rails
3
- VERSION = "3.1.0.rc.6"
3
+ VERSION = "3.1.0.rc.7"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,102 +1,95 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: coffee-rails
3
- version: !ruby/object:Gem::Version
3
+ version: !ruby/object:Gem::Version
4
+ version: 3.1.0.rc.7
4
5
  prerelease: 6
5
- version: 3.1.0.rc.6
6
6
  platform: ruby
7
- authors:
8
- - Santiago Pastorino
7
+ authors:
8
+ - Santiago Pastorino
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
-
13
- date: 2011-08-16 00:00:00 -03:00
12
+ date: 2011-08-28 00:00:00.000000000 -03:00
14
13
  default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
17
- name: coffee-script
18
- prerelease: false
19
- requirement: &id001 !ruby/object:Gem::Requirement
20
- none: false
21
- requirements:
22
- - - ">="
23
- - !ruby/object:Gem::Version
24
- version: 2.2.0
25
- type: :runtime
26
- version_requirements: *id001
27
- - !ruby/object:Gem::Dependency
28
- name: railties
29
- prerelease: false
30
- requirement: &id002 !ruby/object:Gem::Requirement
31
- none: false
32
- requirements:
33
- - - ~>
34
- - !ruby/object:Gem::Version
35
- version: 3.1.0.rc1
36
- type: :runtime
37
- version_requirements: *id002
14
+ dependencies:
15
+ - !ruby/object:Gem::Dependency
16
+ name: coffee-script
17
+ requirement: &2164478800 !ruby/object:Gem::Requirement
18
+ none: false
19
+ requirements:
20
+ - - ! '>='
21
+ - !ruby/object:Gem::Version
22
+ version: 2.2.0
23
+ type: :runtime
24
+ prerelease: false
25
+ version_requirements: *2164478800
26
+ - !ruby/object:Gem::Dependency
27
+ name: railties
28
+ requirement: &2164478180 !ruby/object:Gem::Requirement
29
+ none: false
30
+ requirements:
31
+ - - ~>
32
+ - !ruby/object:Gem::Version
33
+ version: 3.1.0.rc1
34
+ type: :runtime
35
+ prerelease: false
36
+ version_requirements: *2164478180
38
37
  description: Coffee Script adapter for the Rails asset pipeline.
39
- email:
40
- - santiago@wyeworks.com
38
+ email:
39
+ - santiago@wyeworks.com
41
40
  executables: []
42
-
43
41
  extensions: []
44
-
45
42
  extra_rdoc_files: []
46
-
47
- files:
48
- - .gitignore
49
- - Gemfile
50
- - Gemfile.lock
51
- - README.markdown
52
- - Rakefile
53
- - coffee-rails.gemspec
54
- - lib/coffee-rails.rb
55
- - lib/coffee/rails/railtie.rb
56
- - lib/coffee/rails/template_handler.rb
57
- - lib/coffee/rails/version.rb
58
- - lib/rails/generators/coffee/assets/assets_generator.rb
59
- - lib/rails/generators/coffee/assets/templates/javascript.js.coffee
60
- - test/assets_generator_test.rb
61
- - test/controller_generator_test.rb
62
- - test/scaffold_generator_test.rb
63
- - test/support/routes.rb
64
- - test/support/site/index.js.coffee
65
- - test/template_handler_test.rb
66
- - test/test_helper.rb
43
+ files:
44
+ - .gitignore
45
+ - Gemfile
46
+ - Gemfile.lock
47
+ - README.markdown
48
+ - Rakefile
49
+ - coffee-rails.gemspec
50
+ - lib/coffee-rails.rb
51
+ - lib/coffee/rails/railtie.rb
52
+ - lib/coffee/rails/template_handler.rb
53
+ - lib/coffee/rails/version.rb
54
+ - lib/rails/generators/coffee/assets/assets_generator.rb
55
+ - lib/rails/generators/coffee/assets/templates/javascript.js.coffee
56
+ - test/assets_generator_test.rb
57
+ - test/controller_generator_test.rb
58
+ - test/scaffold_generator_test.rb
59
+ - test/support/routes.rb
60
+ - test/support/site/index.js.coffee
61
+ - test/template_handler_test.rb
62
+ - test/test_helper.rb
67
63
  has_rdoc: true
68
- homepage: ""
64
+ homepage: ''
69
65
  licenses: []
70
-
71
66
  post_install_message:
72
67
  rdoc_options: []
73
-
74
- require_paths:
75
- - lib
76
- required_ruby_version: !ruby/object:Gem::Requirement
68
+ require_paths:
69
+ - lib
70
+ required_ruby_version: !ruby/object:Gem::Requirement
77
71
  none: false
78
- requirements:
79
- - - ">="
80
- - !ruby/object:Gem::Version
81
- version: "0"
82
- required_rubygems_version: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ! '>='
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ required_rubygems_version: !ruby/object:Gem::Requirement
83
77
  none: false
84
- requirements:
85
- - - ">"
86
- - !ruby/object:Gem::Version
87
- version: 1.3.1
78
+ requirements:
79
+ - - ! '>'
80
+ - !ruby/object:Gem::Version
81
+ version: 1.3.1
88
82
  requirements: []
89
-
90
83
  rubyforge_project: coffee-rails
91
- rubygems_version: 1.5.1
84
+ rubygems_version: 1.5.2
92
85
  signing_key:
93
86
  specification_version: 3
94
87
  summary: Coffee Script adapter for the Rails asset pipeline.
95
- test_files:
96
- - test/assets_generator_test.rb
97
- - test/controller_generator_test.rb
98
- - test/scaffold_generator_test.rb
99
- - test/support/routes.rb
100
- - test/support/site/index.js.coffee
101
- - test/template_handler_test.rb
102
- - test/test_helper.rb
88
+ test_files:
89
+ - test/assets_generator_test.rb
90
+ - test/controller_generator_test.rb
91
+ - test/scaffold_generator_test.rb
92
+ - test/support/routes.rb
93
+ - test/support/site/index.js.coffee
94
+ - test/template_handler_test.rb
95
+ - test/test_helper.rb