coffee-rails 3.2.2 → 4.0.0.beta1

Sign up to get free protection for your applications and to get access to all the features.
data/.gitignore CHANGED
@@ -1,2 +1,3 @@
1
+ tmp/
1
2
  test/tmp
2
3
  Gemfile.lock
@@ -1,11 +1,11 @@
1
+ language: ruby
2
+ before_install:
3
+ - gem install bundler
1
4
  rvm:
2
- - 1.8.7
3
- - 1.9.2
4
5
  - 1.9.3
5
- - ree
6
- - jruby
7
- - rbx
8
- script: bundle exec rake test
6
+ - 2.0.0
7
+ - jruby-19mode
8
+ - rbx-19mode
9
9
  notifications:
10
10
  email: false
11
11
  campfire:
data/Gemfile CHANGED
@@ -3,8 +3,7 @@ source "http://rubygems.org"
3
3
  # Specify your gem's dependencies in coffee-rails.gemspec
4
4
  gemspec
5
5
 
6
- gem "rails", :git => "git://github.com/rails/rails"
6
+ gem "rails", path: '~/code/rails' #git: "git://github.com/rails/rails"
7
7
 
8
- # To use debugger (ruby-debug for Ruby 1.8.7+, ruby-debug19 for Ruby 1.9.2+)
9
- # gem 'ruby-debug'
10
- # gem 'ruby-debug19'
8
+ # To use debugger
9
+ # gem 'debugger'
@@ -1,6 +1,6 @@
1
1
  # Coffee-Rails
2
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).
3
+ CoffeeScript adapter for the Rails asset pipeline. Also adds support to use CoffeeScript to respond to JavaScript requests (use .js.coffee views).
4
4
 
5
5
  ## Installation
6
6
 
data/Rakefile CHANGED
@@ -10,3 +10,19 @@ Rake::TestTask.new(:test) do |t|
10
10
  t.verbose = false
11
11
  end
12
12
 
13
+ task default: :test
14
+
15
+ specname = "coffee-rails.gemspec"
16
+ deps = `git ls-files`.split("\n") - [specname]
17
+
18
+ file specname => deps do
19
+ files = `git ls-files`.split("\n")
20
+ test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
21
+ executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
22
+
23
+ require 'erb'
24
+
25
+ File.open specname, 'w:utf-8' do |f|
26
+ f.write ERB.new(File.read("#{specname}.erb")).result(binding)
27
+ end
28
+ end
@@ -7,17 +7,17 @@ Gem::Specification.new do |s|
7
7
  s.platform = Gem::Platform::RUBY
8
8
  s.authors = ["Santiago Pastorino"]
9
9
  s.email = ["santiago@wyeworks.com"]
10
- s.homepage = ""
11
- s.summary = %q{Coffee Script adapter for the Rails asset pipeline.}
12
- s.description = %q{Coffee Script adapter for the Rails asset pipeline.}
10
+ s.homepage = "https://github.com/rails/coffee-rails"
11
+ s.summary = %q{CoffeeScript adapter for the Rails asset pipeline.}
12
+ s.description = %q{CoffeeScript adapter for the Rails asset pipeline.}
13
13
 
14
14
  s.rubyforge_project = "coffee-rails"
15
15
 
16
16
  s.add_runtime_dependency 'coffee-script', '>= 2.2.0'
17
- s.add_runtime_dependency 'railties', '~> 3.2.0'
17
+ s.add_runtime_dependency 'railties', '>= 4.0.0.beta', '< 5.0'
18
18
 
19
- s.files = `git ls-files`.split("\n")
20
- s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
21
- s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
19
+ s.files = [".gitignore",".travis.yml","Gemfile","MIT-LICENSE","README.markdown","Rakefile","coffee-rails.gemspec","coffee-rails.gemspec.erb","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"]
21
+ s.executables = []
22
22
  s.require_paths = ["lib"]
23
23
  end
@@ -0,0 +1,23 @@
1
+ $:.push File.expand_path("../lib", __FILE__)
2
+ require "coffee/rails/version"
3
+
4
+ Gem::Specification.new do |s|
5
+ s.name = "coffee-rails"
6
+ s.version = Coffee::Rails::VERSION
7
+ s.platform = Gem::Platform::RUBY
8
+ s.authors = ["Santiago Pastorino"]
9
+ s.email = ["santiago@wyeworks.com"]
10
+ s.homepage = "https://github.com/rails/coffee-rails"
11
+ s.summary = %q{CoffeeScript adapter for the Rails asset pipeline.}
12
+ s.description = %q{CoffeeScript adapter for the Rails asset pipeline.}
13
+
14
+ s.rubyforge_project = "coffee-rails"
15
+
16
+ s.add_runtime_dependency 'coffee-script', '>= 2.2.0'
17
+ s.add_runtime_dependency 'railties', '>= 4.0.0.beta', '< 5.0'
18
+
19
+ s.files = [<%= files.map(&:inspect).join ',' %>]
20
+ s.test_files = [<%= test_files.map(&:inspect).join ',' %>]
21
+ s.executables = [<%= executables.map(&:inspect).join ',' %>]
22
+ s.require_paths = ["lib"]
23
+ end
@@ -1,5 +1,5 @@
1
1
  module Coffee
2
2
  module Rails
3
- VERSION = "3.2.2"
3
+ VERSION = "4.0.0.beta1"
4
4
  end
5
5
  end
@@ -1,3 +1,3 @@
1
1
  # Place all the behaviors and hooks related to the matching controller here.
2
2
  # All this logic will automatically be available in application.js.
3
- # You can use CoffeeScript in this file: http://jashkenas.github.com/coffee-script/
3
+ # You can use CoffeeScript in this file: http://coffeescript.org/
@@ -8,6 +8,7 @@ class AssetsTest < ActiveSupport::TestCase
8
8
  require "sprockets/railtie"
9
9
 
10
10
  @app = Class.new(Rails::Application)
11
+ @app.config.eager_load = false
11
12
  @app.config.active_support.deprecation = :stderr
12
13
  @app.config.assets.enabled = true
13
14
  @app.config.assets.cache_store = [ :file_store, "#{tmp_path}/cache" ]
@@ -25,7 +26,7 @@ class AssetsTest < ActiveSupport::TestCase
25
26
  @app.assets["coffee-script"].write_to("#{tmp_path}/coffee-script.js")
26
27
 
27
28
  assert_match "/lib/assets/javascripts/coffee-script.js.erb", @app.assets["coffee-script"].pathname.to_s
28
- assert_match "this.CoffeeScript", File.open("#{tmp_path}/coffee-script.js").read
29
+ assert_match "CoffeeScript Compiler", File.open("#{tmp_path}/coffee-script.js").read
29
30
  end
30
31
 
31
32
  def tmp_path
metadata CHANGED
@@ -1,65 +1,61 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: coffee-rails
3
- version: !ruby/object:Gem::Version
4
- hash: 11
5
- prerelease: false
6
- segments:
7
- - 3
8
- - 2
9
- - 2
10
- version: 3.2.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 4.0.0.beta1
5
+ prerelease: 6
11
6
  platform: ruby
12
- authors:
7
+ authors:
13
8
  - Santiago Pastorino
14
9
  autorequire:
15
10
  bindir: bin
16
11
  cert_chain: []
17
-
18
- date: 2012-01-26 00:00:00 -08:00
19
- default_executable:
20
- dependencies:
21
- - !ruby/object:Gem::Dependency
12
+ date: 2013-02-25 00:00:00.000000000 Z
13
+ dependencies:
14
+ - !ruby/object:Gem::Dependency
22
15
  name: coffee-script
23
- prerelease: false
24
- requirement: &id001 !ruby/object:Gem::Requirement
16
+ requirement: !ruby/object:Gem::Requirement
25
17
  none: false
26
- requirements:
27
- - - ">="
28
- - !ruby/object:Gem::Version
29
- hash: 7
30
- segments:
31
- - 2
32
- - 2
33
- - 0
18
+ requirements:
19
+ - - ! '>='
20
+ - !ruby/object:Gem::Version
34
21
  version: 2.2.0
35
22
  type: :runtime
36
- version_requirements: *id001
37
- - !ruby/object:Gem::Dependency
38
- name: railties
39
23
  prerelease: false
40
- requirement: &id002 !ruby/object:Gem::Requirement
24
+ version_requirements: !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ! '>='
28
+ - !ruby/object:Gem::Version
29
+ version: 2.2.0
30
+ - !ruby/object:Gem::Dependency
31
+ name: railties
32
+ requirement: !ruby/object:Gem::Requirement
41
33
  none: false
42
- requirements:
43
- - - ~>
44
- - !ruby/object:Gem::Version
45
- hash: 15
46
- segments:
47
- - 3
48
- - 2
49
- - 0
50
- version: 3.2.0
34
+ requirements:
35
+ - - ! '>='
36
+ - !ruby/object:Gem::Version
37
+ version: 4.0.0.beta
38
+ - - <
39
+ - !ruby/object:Gem::Version
40
+ version: '5.0'
51
41
  type: :runtime
52
- version_requirements: *id002
53
- description: Coffee Script adapter for the Rails asset pipeline.
54
- email:
42
+ prerelease: false
43
+ version_requirements: !ruby/object:Gem::Requirement
44
+ none: false
45
+ requirements:
46
+ - - ! '>='
47
+ - !ruby/object:Gem::Version
48
+ version: 4.0.0.beta
49
+ - - <
50
+ - !ruby/object:Gem::Version
51
+ version: '5.0'
52
+ description: CoffeeScript adapter for the Rails asset pipeline.
53
+ email:
55
54
  - santiago@wyeworks.com
56
55
  executables: []
57
-
58
56
  extensions: []
59
-
60
57
  extra_rdoc_files: []
61
-
62
- files:
58
+ files:
63
59
  - .gitignore
64
60
  - .travis.yml
65
61
  - Gemfile
@@ -67,6 +63,7 @@ files:
67
63
  - README.markdown
68
64
  - Rakefile
69
65
  - coffee-rails.gemspec
66
+ - coffee-rails.gemspec.erb
70
67
  - lib/assets/javascripts/coffee-script.js.erb
71
68
  - lib/coffee-rails.rb
72
69
  - lib/coffee/rails/engine.rb
@@ -82,41 +79,31 @@ files:
82
79
  - test/support/site/index.js.coffee
83
80
  - test/template_handler_test.rb
84
81
  - test/test_helper.rb
85
- has_rdoc: true
86
- homepage: ""
82
+ homepage: https://github.com/rails/coffee-rails
87
83
  licenses: []
88
-
89
84
  post_install_message:
90
85
  rdoc_options: []
91
-
92
- require_paths:
86
+ require_paths:
93
87
  - lib
94
- required_ruby_version: !ruby/object:Gem::Requirement
88
+ required_ruby_version: !ruby/object:Gem::Requirement
95
89
  none: false
96
- requirements:
97
- - - ">="
98
- - !ruby/object:Gem::Version
99
- hash: 3
100
- segments:
101
- - 0
102
- version: "0"
103
- required_rubygems_version: !ruby/object:Gem::Requirement
90
+ requirements:
91
+ - - ! '>='
92
+ - !ruby/object:Gem::Version
93
+ version: '0'
94
+ required_rubygems_version: !ruby/object:Gem::Requirement
104
95
  none: false
105
- requirements:
106
- - - ">="
107
- - !ruby/object:Gem::Version
108
- hash: 3
109
- segments:
110
- - 0
111
- version: "0"
96
+ requirements:
97
+ - - ! '>'
98
+ - !ruby/object:Gem::Version
99
+ version: 1.3.1
112
100
  requirements: []
113
-
114
101
  rubyforge_project: coffee-rails
115
- rubygems_version: 1.3.7
102
+ rubygems_version: 1.8.23
116
103
  signing_key:
117
104
  specification_version: 3
118
- summary: Coffee Script adapter for the Rails asset pipeline.
119
- test_files:
105
+ summary: CoffeeScript adapter for the Rails asset pipeline.
106
+ test_files:
120
107
  - test/assets_generator_test.rb
121
108
  - test/assets_test.rb
122
109
  - test/controller_generator_test.rb