ember_script-rails 0.0.1 → 0.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +49 -0
- data/.travis.yml +12 -0
- data/Appraisals +8 -0
- data/Gemfile +2 -18
- data/Gemfile.lock +24 -29
- data/README.md +18 -4
- data/Rakefile +7 -12
- data/ember_script-rails.gemspec +21 -51
- data/gemfiles/rails3.gemfile +7 -0
- data/gemfiles/rails3.gemfile.lock +127 -0
- data/gemfiles/rails4.gemfile +8 -0
- data/gemfiles/rails4.gemfile.lock +137 -0
- data/lib/ember_script/rails/engine.rb +18 -0
- data/lib/ember_script/rails/version.rb +5 -0
- data/lib/ember_script-rails.rb +2 -1
- data/spec/requests/assets_spec.rb +10 -0
- data/spec/spec_helper.rb +33 -0
- data/spec/support/dummy_app/.gitignore +15 -0
- data/spec/support/dummy_app/Gemfile +39 -0
- data/spec/support/dummy_app/Gemfile.lock +115 -0
- data/spec/support/dummy_app/Rakefile +7 -0
- data/spec/support/dummy_app/app/assets/images/rails.png +0 -0
- data/spec/support/dummy_app/app/assets/javascripts/application.js.em +1 -0
- data/spec/support/dummy_app/app/assets/stylesheets/application.css +13 -0
- data/spec/support/dummy_app/app/controllers/application_controller.rb +3 -0
- data/spec/support/dummy_app/app/controllers/home_controller.rb +4 -0
- data/spec/support/dummy_app/app/helpers/application_helper.rb +2 -0
- data/spec/support/dummy_app/app/views/home/index.html.erb +0 -0
- data/spec/support/dummy_app/app/views/layouts/application.html.erb +14 -0
- data/spec/support/dummy_app/config/application.rb +37 -0
- data/spec/support/dummy_app/config/boot.rb +6 -0
- data/spec/support/dummy_app/config/database.yml +25 -0
- data/spec/support/dummy_app/config/environment.rb +5 -0
- data/spec/support/dummy_app/config/environments/development.rb +27 -0
- data/spec/support/dummy_app/config/environments/test.rb +28 -0
- data/spec/support/dummy_app/config/initializers/backtrace_silencers.rb +7 -0
- data/spec/support/dummy_app/config/initializers/inflections.rb +15 -0
- data/spec/support/dummy_app/config/initializers/mime_types.rb +5 -0
- data/spec/support/dummy_app/config/initializers/secret_token.rb +9 -0
- data/spec/support/dummy_app/config/initializers/session_store.rb +8 -0
- data/spec/support/dummy_app/config/initializers/wrap_parameters.rb +14 -0
- data/spec/support/dummy_app/config/locales/en.yml +5 -0
- data/spec/support/dummy_app/config/routes.rb +3 -0
- data/spec/support/dummy_app/config.ru +4 -0
- data/spec/support/dummy_app/lib/assets/.gitkeep +0 -0
- data/spec/support/dummy_app/lib/tasks/.gitkeep +0 -0
- data/spec/support/dummy_app/log/.gitkeep +0 -0
- data/spec/support/dummy_app/public/favicon.ico +0 -0
- data/spec/support/dummy_app/script/rails +6 -0
- metadata +135 -15
- data/lib/ember_script/rails/railtie.rb +0 -15
data/.gitignore
ADDED
@@ -0,0 +1,49 @@
|
|
1
|
+
# rcov generated
|
2
|
+
coverage
|
3
|
+
coverage.data
|
4
|
+
|
5
|
+
# rdoc generated
|
6
|
+
rdoc
|
7
|
+
|
8
|
+
# yard generated
|
9
|
+
doc
|
10
|
+
.yardoc
|
11
|
+
|
12
|
+
# bundler
|
13
|
+
.bundle
|
14
|
+
|
15
|
+
# jeweler generated
|
16
|
+
pkg
|
17
|
+
|
18
|
+
# Have editor/IDE/OS specific files you need to ignore? Consider using a global gitignore:
|
19
|
+
#
|
20
|
+
# * Create a file at ~/.gitignore
|
21
|
+
# * Include files you want ignored
|
22
|
+
# * Run: git config --global core.excludesfile ~/.gitignore
|
23
|
+
#
|
24
|
+
# After doing this, these files will be ignored in all your git projects,
|
25
|
+
# saving you from having to 'pollute' every project you touch with them
|
26
|
+
#
|
27
|
+
# Not sure what to needs to be ignored for particular editors/OSes? Here's some ideas to get you started. (Remember, remove the leading # of the line)
|
28
|
+
#
|
29
|
+
# For MacOS:
|
30
|
+
#
|
31
|
+
#.DS_Store
|
32
|
+
|
33
|
+
# For TextMate
|
34
|
+
#*.tmproj
|
35
|
+
#tmtags
|
36
|
+
|
37
|
+
# For emacs:
|
38
|
+
#*~
|
39
|
+
#\#*
|
40
|
+
#.\#*
|
41
|
+
|
42
|
+
# For vim:
|
43
|
+
#*.swp
|
44
|
+
|
45
|
+
# For redcar:
|
46
|
+
#.redcar
|
47
|
+
|
48
|
+
# For rubinius:
|
49
|
+
#*.rbc
|
data/.travis.yml
ADDED
@@ -0,0 +1,12 @@
|
|
1
|
+
language: ruby
|
2
|
+
rvm:
|
3
|
+
- 1.9.3
|
4
|
+
before_install:
|
5
|
+
- sudo apt-get -y install python-software-properties
|
6
|
+
- sudo add-apt-repository -y ppa:chris-lea/node.js
|
7
|
+
- sudo apt-get update
|
8
|
+
- sudo apt-get -y install nodejs npm
|
9
|
+
- sudo npm install -g 'git://github.com/ghempton/ember-script.git#HEAD'
|
10
|
+
- gem install bundler --version '>= 1.2.2'
|
11
|
+
before_script: "bundle exec rake appraisal:install"
|
12
|
+
script: "bundle exec rake appraisal spec"
|
data/Appraisals
ADDED
data/Gemfile
CHANGED
@@ -1,18 +1,2 @@
|
|
1
|
-
source
|
2
|
-
|
3
|
-
gem 'ember_script'
|
4
|
-
gem 'rails'
|
5
|
-
|
6
|
-
group :development do
|
7
|
-
gem "bundler"
|
8
|
-
gem "jeweler"
|
9
|
-
end
|
10
|
-
|
11
|
-
group :test do
|
12
|
-
gem 'rspec'
|
13
|
-
gem 'pry'
|
14
|
-
gem 'pry-doc'
|
15
|
-
gem 'pry-remote'
|
16
|
-
gem 'pry-nav'
|
17
|
-
gem 'pry-stack_explorer'
|
18
|
-
end
|
1
|
+
source :rubygems
|
2
|
+
gemspec
|
data/Gemfile.lock
CHANGED
@@ -1,3 +1,11 @@
|
|
1
|
+
PATH
|
2
|
+
remote: .
|
3
|
+
specs:
|
4
|
+
ember_script-rails (0.0.2)
|
5
|
+
ember_script
|
6
|
+
pry
|
7
|
+
rails
|
8
|
+
|
1
9
|
GEM
|
2
10
|
remote: http://rubygems.org/
|
3
11
|
specs:
|
@@ -28,22 +36,18 @@ GEM
|
|
28
36
|
activesupport (3.2.9)
|
29
37
|
i18n (~> 0.6)
|
30
38
|
multi_json (~> 1.0)
|
39
|
+
appraisal (0.5.1)
|
40
|
+
bundler
|
41
|
+
rake
|
31
42
|
arel (3.0.2)
|
32
|
-
binding_of_caller (0.6.8)
|
33
43
|
builder (3.0.4)
|
34
44
|
coderay (1.0.8)
|
35
45
|
diff-lcs (1.1.3)
|
36
|
-
ember_script (0.0.
|
46
|
+
ember_script (0.0.3)
|
37
47
|
tilt
|
38
48
|
erubis (2.7.0)
|
39
|
-
git (1.2.5)
|
40
49
|
hike (1.2.1)
|
41
50
|
i18n (0.6.1)
|
42
|
-
jeweler (1.8.4)
|
43
|
-
bundler (~> 1.0)
|
44
|
-
git (>= 1.2.5)
|
45
|
-
rake
|
46
|
-
rdoc
|
47
51
|
journey (1.0.4)
|
48
52
|
json (1.7.5)
|
49
53
|
mail (2.4.4)
|
@@ -52,22 +56,12 @@ GEM
|
|
52
56
|
treetop (~> 1.4.8)
|
53
57
|
method_source (0.8.1)
|
54
58
|
mime-types (1.19)
|
55
|
-
multi_json (1.
|
59
|
+
multi_json (1.5.0)
|
56
60
|
polyglot (0.3.3)
|
57
61
|
pry (0.9.10)
|
58
62
|
coderay (~> 1.0.5)
|
59
63
|
method_source (~> 0.8)
|
60
64
|
slop (~> 3.3.1)
|
61
|
-
pry-doc (0.4.4)
|
62
|
-
pry (>= 0.9.9.6)
|
63
|
-
yard (~> 0.8.1)
|
64
|
-
pry-nav (0.2.2)
|
65
|
-
pry (~> 0.9.10)
|
66
|
-
pry-remote (0.1.6)
|
67
|
-
pry (~> 0.9)
|
68
|
-
slop (~> 3.0)
|
69
|
-
pry-stack_explorer (0.4.7)
|
70
|
-
binding_of_caller (~> 0.6.8)
|
71
65
|
rack (1.4.1)
|
72
66
|
rack-cache (1.2)
|
73
67
|
rack (>= 0.4)
|
@@ -101,6 +95,13 @@ GEM
|
|
101
95
|
rspec-expectations (2.12.0)
|
102
96
|
diff-lcs (~> 1.1.3)
|
103
97
|
rspec-mocks (2.12.0)
|
98
|
+
rspec-rails (2.12.0)
|
99
|
+
actionpack (>= 3.0)
|
100
|
+
activesupport (>= 3.0)
|
101
|
+
railties (>= 3.0)
|
102
|
+
rspec-core (~> 2.12.0)
|
103
|
+
rspec-expectations (~> 2.12.0)
|
104
|
+
rspec-mocks (~> 2.12.0)
|
104
105
|
slop (3.3.3)
|
105
106
|
sprockets (2.2.2)
|
106
107
|
hike (~> 1.2)
|
@@ -113,19 +114,13 @@ GEM
|
|
113
114
|
polyglot
|
114
115
|
polyglot (>= 0.3.1)
|
115
116
|
tzinfo (0.3.35)
|
116
|
-
yard (0.8.3)
|
117
117
|
|
118
118
|
PLATFORMS
|
119
119
|
ruby
|
120
120
|
|
121
121
|
DEPENDENCIES
|
122
|
-
|
123
|
-
|
124
|
-
|
125
|
-
pry
|
126
|
-
pry-doc
|
127
|
-
pry-nav
|
128
|
-
pry-remote
|
129
|
-
pry-stack_explorer
|
130
|
-
rails
|
122
|
+
appraisal
|
123
|
+
bundler (>= 1.2.2)
|
124
|
+
ember_script-rails!
|
131
125
|
rspec
|
126
|
+
rspec-rails
|
data/README.md
CHANGED
@@ -1,8 +1,22 @@
|
|
1
|
-
|
1
|
+
# EmberScript-Rails
|
2
2
|
|
3
|
-
|
3
|
+
Provides integration with Rail's asset pipeline. Any javascript files with the extension `.em` will automatically be compiled by [EmberScript](https://github.com/ghempton/ember-script).
|
4
4
|
|
5
|
-
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
This gem requires that an `ember-script` command be available in the current path. Being as EmberScript is still in early development, it is best to install via npm from git. After installing [Node.js](http://nodejs.org/), run the following command:
|
8
|
+
|
9
|
+
```
|
10
|
+
sudo npm install -g 'git://github.com/ghempton/ember-script.git#HEAD'
|
11
|
+
```
|
12
|
+
|
13
|
+
After installation, add the following to your Gemfile:
|
14
|
+
|
15
|
+
```
|
16
|
+
gem 'ember_script-rails'
|
17
|
+
```
|
18
|
+
|
19
|
+
## Contributing to ember-script-rails
|
6
20
|
|
7
21
|
* Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
|
8
22
|
* Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
@@ -12,7 +26,7 @@ Description goes here.
|
|
12
26
|
* Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
13
27
|
* Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
14
28
|
|
15
|
-
|
29
|
+
## Copyright
|
16
30
|
|
17
31
|
Copyright (c) 2012 Gordon L. Hempton. See LICENSE.txt for
|
18
32
|
further details.
|
data/Rakefile
CHANGED
@@ -2,6 +2,7 @@
|
|
2
2
|
|
3
3
|
require 'rubygems'
|
4
4
|
require 'bundler'
|
5
|
+
require 'rspec/core/rake_task'
|
5
6
|
begin
|
6
7
|
Bundler.setup(:default, :development)
|
7
8
|
rescue Bundler::BundlerError => e
|
@@ -11,16 +12,10 @@ rescue Bundler::BundlerError => e
|
|
11
12
|
end
|
12
13
|
require 'rake'
|
13
14
|
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
gem.homepage = "http://github.com/ghempton/ember-script-rails"
|
19
|
-
gem.license = "MIT"
|
20
|
-
gem.summary = %Q{EmberScript Rails integration}
|
21
|
-
gem.description = %Q{Support for EmberScript templates with .em extension}
|
22
|
-
gem.email = "ghempton@gmail.com"
|
23
|
-
gem.authors = ["Gordon L. Hempton"]
|
24
|
-
# dependencies defined in Gemfile
|
15
|
+
RSpec::Core::RakeTask.new do |t|
|
16
|
+
t.pattern = "spec/**/*_spec.rb"
|
17
|
+
t.rspec_opts = '--color --format progress'
|
18
|
+
t.verbose = false
|
25
19
|
end
|
26
|
-
|
20
|
+
|
21
|
+
require 'appraisal'
|
data/ember_script-rails.gemspec
CHANGED
@@ -1,58 +1,28 @@
|
|
1
|
-
# Generated by jeweler
|
2
|
-
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
-
# Instead, edit Jeweler::Tasks in Rakefile, and run 'rake gemspec'
|
4
1
|
# -*- encoding: utf-8 -*-
|
2
|
+
require File.expand_path("../lib/ember_script/rails/version", __FILE__)
|
5
3
|
|
6
|
-
Gem::Specification.new do |
|
7
|
-
|
8
|
-
|
4
|
+
Gem::Specification.new do |gem|
|
5
|
+
gem.name = "ember_script-rails"
|
6
|
+
gem.version = EmberScript::Rails::VERSION
|
7
|
+
gem.authors = ["Gordon L. Hempton"]
|
8
|
+
gem.email = ["ghempton@gmail.com"]
|
9
|
+
gem.date = Date.today
|
10
|
+
gem.description = "Asset pipeline support for EmberScript files. Uses a .em file extension."
|
11
|
+
gem.summary = "EmberScript Rails integration"
|
12
|
+
gem.homepage = "http://github.com/ghempton/ember-script-rails"
|
9
13
|
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
s.email = "ghempton@gmail.com"
|
15
|
-
s.extra_rdoc_files = [
|
16
|
-
"LICENSE.txt",
|
17
|
-
"README.md"
|
18
|
-
]
|
19
|
-
s.files = [
|
20
|
-
".document",
|
21
|
-
"Gemfile",
|
22
|
-
"Gemfile.lock",
|
23
|
-
"LICENSE.txt",
|
24
|
-
"README.md",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION",
|
27
|
-
"ember_script-rails.gemspec",
|
28
|
-
"lib/ember_script-rails.rb",
|
29
|
-
"lib/ember_script/rails/railtie.rb"
|
30
|
-
]
|
31
|
-
s.homepage = "http://github.com/ghempton/ember-script-rails"
|
32
|
-
s.licenses = ["MIT"]
|
33
|
-
s.require_paths = ["lib"]
|
34
|
-
s.rubygems_version = "1.8.23"
|
35
|
-
s.summary = "EmberScript Rails integration"
|
14
|
+
gem.files = `git ls-files`.split($/)
|
15
|
+
gem.executables = gem.files.grep(%r{^bin/}).map{ |f| File.basename(f) }
|
16
|
+
gem.test_files = gem.files.grep(%r{^(test|spec|features)/})
|
17
|
+
gem.require_paths = ["lib"]
|
36
18
|
|
37
|
-
|
38
|
-
|
19
|
+
gem.add_dependency "ember_script"
|
20
|
+
gem.add_dependency "rails"
|
39
21
|
|
40
|
-
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
|
45
|
-
else
|
46
|
-
s.add_dependency(%q<ember_script>, [">= 0"])
|
47
|
-
s.add_dependency(%q<rails>, [">= 0"])
|
48
|
-
s.add_dependency(%q<bundler>, [">= 0"])
|
49
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
50
|
-
end
|
51
|
-
else
|
52
|
-
s.add_dependency(%q<ember_script>, [">= 0"])
|
53
|
-
s.add_dependency(%q<rails>, [">= 0"])
|
54
|
-
s.add_dependency(%q<bundler>, [">= 0"])
|
55
|
-
s.add_dependency(%q<jeweler>, [">= 0"])
|
56
|
-
end
|
22
|
+
gem.add_development_dependency "bundler", [">= 1.2.2"]
|
23
|
+
gem.add_development_dependency "appraisal"
|
24
|
+
gem.add_development_dependency "rspec"
|
25
|
+
gem.add_development_dependency "rspec-rails"
|
26
|
+
gem.add_dependency "pry"
|
57
27
|
end
|
58
28
|
|
@@ -0,0 +1,127 @@
|
|
1
|
+
PATH
|
2
|
+
remote: /Users/ghempton/projects/oss/ember-script-rails
|
3
|
+
specs:
|
4
|
+
ember_script-rails (0.0.2)
|
5
|
+
ember_script
|
6
|
+
pry
|
7
|
+
rails
|
8
|
+
|
9
|
+
GEM
|
10
|
+
remote: http://rubygems.org/
|
11
|
+
specs:
|
12
|
+
actionmailer (3.2.9)
|
13
|
+
actionpack (= 3.2.9)
|
14
|
+
mail (~> 2.4.4)
|
15
|
+
actionpack (3.2.9)
|
16
|
+
activemodel (= 3.2.9)
|
17
|
+
activesupport (= 3.2.9)
|
18
|
+
builder (~> 3.0.0)
|
19
|
+
erubis (~> 2.7.0)
|
20
|
+
journey (~> 1.0.4)
|
21
|
+
rack (~> 1.4.0)
|
22
|
+
rack-cache (~> 1.2)
|
23
|
+
rack-test (~> 0.6.1)
|
24
|
+
sprockets (~> 2.2.1)
|
25
|
+
activemodel (3.2.9)
|
26
|
+
activesupport (= 3.2.9)
|
27
|
+
builder (~> 3.0.0)
|
28
|
+
activerecord (3.2.9)
|
29
|
+
activemodel (= 3.2.9)
|
30
|
+
activesupport (= 3.2.9)
|
31
|
+
arel (~> 3.0.2)
|
32
|
+
tzinfo (~> 0.3.29)
|
33
|
+
activeresource (3.2.9)
|
34
|
+
activemodel (= 3.2.9)
|
35
|
+
activesupport (= 3.2.9)
|
36
|
+
activesupport (3.2.9)
|
37
|
+
i18n (~> 0.6)
|
38
|
+
multi_json (~> 1.0)
|
39
|
+
appraisal (0.5.1)
|
40
|
+
bundler
|
41
|
+
rake
|
42
|
+
arel (3.0.2)
|
43
|
+
builder (3.0.4)
|
44
|
+
coderay (1.0.8)
|
45
|
+
diff-lcs (1.1.3)
|
46
|
+
ember_script (0.0.3)
|
47
|
+
tilt
|
48
|
+
erubis (2.7.0)
|
49
|
+
hike (1.2.1)
|
50
|
+
i18n (0.6.1)
|
51
|
+
journey (1.0.4)
|
52
|
+
json (1.7.5)
|
53
|
+
mail (2.4.4)
|
54
|
+
i18n (>= 0.4.0)
|
55
|
+
mime-types (~> 1.16)
|
56
|
+
treetop (~> 1.4.8)
|
57
|
+
method_source (0.8.1)
|
58
|
+
mime-types (1.19)
|
59
|
+
multi_json (1.5.0)
|
60
|
+
polyglot (0.3.3)
|
61
|
+
pry (0.9.10)
|
62
|
+
coderay (~> 1.0.5)
|
63
|
+
method_source (~> 0.8)
|
64
|
+
slop (~> 3.3.1)
|
65
|
+
rack (1.4.1)
|
66
|
+
rack-cache (1.2)
|
67
|
+
rack (>= 0.4)
|
68
|
+
rack-ssl (1.3.2)
|
69
|
+
rack
|
70
|
+
rack-test (0.6.2)
|
71
|
+
rack (>= 1.0)
|
72
|
+
rails (3.2.9)
|
73
|
+
actionmailer (= 3.2.9)
|
74
|
+
actionpack (= 3.2.9)
|
75
|
+
activerecord (= 3.2.9)
|
76
|
+
activeresource (= 3.2.9)
|
77
|
+
activesupport (= 3.2.9)
|
78
|
+
bundler (~> 1.0)
|
79
|
+
railties (= 3.2.9)
|
80
|
+
railties (3.2.9)
|
81
|
+
actionpack (= 3.2.9)
|
82
|
+
activesupport (= 3.2.9)
|
83
|
+
rack-ssl (~> 1.3.2)
|
84
|
+
rake (>= 0.8.7)
|
85
|
+
rdoc (~> 3.4)
|
86
|
+
thor (>= 0.14.6, < 2.0)
|
87
|
+
rake (10.0.3)
|
88
|
+
rdoc (3.12)
|
89
|
+
json (~> 1.4)
|
90
|
+
rspec (2.12.0)
|
91
|
+
rspec-core (~> 2.12.0)
|
92
|
+
rspec-expectations (~> 2.12.0)
|
93
|
+
rspec-mocks (~> 2.12.0)
|
94
|
+
rspec-core (2.12.1)
|
95
|
+
rspec-expectations (2.12.0)
|
96
|
+
diff-lcs (~> 1.1.3)
|
97
|
+
rspec-mocks (2.12.0)
|
98
|
+
rspec-rails (2.12.0)
|
99
|
+
actionpack (>= 3.0)
|
100
|
+
activesupport (>= 3.0)
|
101
|
+
railties (>= 3.0)
|
102
|
+
rspec-core (~> 2.12.0)
|
103
|
+
rspec-expectations (~> 2.12.0)
|
104
|
+
rspec-mocks (~> 2.12.0)
|
105
|
+
slop (3.3.3)
|
106
|
+
sprockets (2.2.2)
|
107
|
+
hike (~> 1.2)
|
108
|
+
multi_json (~> 1.0)
|
109
|
+
rack (~> 1.0)
|
110
|
+
tilt (~> 1.1, != 1.3.0)
|
111
|
+
thor (0.16.0)
|
112
|
+
tilt (1.3.3)
|
113
|
+
treetop (1.4.12)
|
114
|
+
polyglot
|
115
|
+
polyglot (>= 0.3.1)
|
116
|
+
tzinfo (0.3.35)
|
117
|
+
|
118
|
+
PLATFORMS
|
119
|
+
ruby
|
120
|
+
|
121
|
+
DEPENDENCIES
|
122
|
+
appraisal
|
123
|
+
bundler (>= 1.2.2)
|
124
|
+
ember_script-rails!
|
125
|
+
rails (~> 3.1)
|
126
|
+
rspec
|
127
|
+
rspec-rails
|
@@ -0,0 +1,137 @@
|
|
1
|
+
GIT
|
2
|
+
remote: https://github.com/rails/activerecord-deprecated_finders.git
|
3
|
+
revision: 2c4ebb2e79095efdd189c08861e3e7f694c52215
|
4
|
+
specs:
|
5
|
+
activerecord-deprecated_finders (0.0.1)
|
6
|
+
|
7
|
+
GIT
|
8
|
+
remote: https://github.com/rails/rails.git
|
9
|
+
revision: 899cae25ecd0f5b187cfc1a56c55ed2936885c21
|
10
|
+
specs:
|
11
|
+
actionmailer (4.0.0.beta)
|
12
|
+
actionpack (= 4.0.0.beta)
|
13
|
+
mail (~> 2.5.3)
|
14
|
+
actionpack (4.0.0.beta)
|
15
|
+
activesupport (= 4.0.0.beta)
|
16
|
+
builder (~> 3.1.0)
|
17
|
+
erubis (~> 2.7.0)
|
18
|
+
rack (~> 1.4.1)
|
19
|
+
rack-test (~> 0.6.1)
|
20
|
+
activemodel (4.0.0.beta)
|
21
|
+
activesupport (= 4.0.0.beta)
|
22
|
+
builder (~> 3.1.0)
|
23
|
+
activerecord (4.0.0.beta)
|
24
|
+
activemodel (= 4.0.0.beta)
|
25
|
+
activerecord-deprecated_finders (= 0.0.1)
|
26
|
+
activesupport (= 4.0.0.beta)
|
27
|
+
arel (~> 3.0.2)
|
28
|
+
activesupport (4.0.0.beta)
|
29
|
+
i18n (~> 0.6)
|
30
|
+
minitest (~> 4.1)
|
31
|
+
multi_json (~> 1.3)
|
32
|
+
thread_safe (~> 0.1)
|
33
|
+
tzinfo (~> 0.3.33)
|
34
|
+
rails (4.0.0.beta)
|
35
|
+
actionmailer (= 4.0.0.beta)
|
36
|
+
actionpack (= 4.0.0.beta)
|
37
|
+
activerecord (= 4.0.0.beta)
|
38
|
+
activesupport (= 4.0.0.beta)
|
39
|
+
bundler (>= 1.2.2, < 2.0)
|
40
|
+
railties (= 4.0.0.beta)
|
41
|
+
sprockets-rails (~> 2.0.0.rc1)
|
42
|
+
railties (4.0.0.beta)
|
43
|
+
actionpack (= 4.0.0.beta)
|
44
|
+
activesupport (= 4.0.0.beta)
|
45
|
+
rake (>= 0.8.7)
|
46
|
+
rdoc (~> 3.4)
|
47
|
+
thor (>= 0.15.4, < 2.0)
|
48
|
+
|
49
|
+
PATH
|
50
|
+
remote: /Users/ghempton/projects/oss/ember-script-rails
|
51
|
+
specs:
|
52
|
+
ember_script-rails (0.0.2)
|
53
|
+
ember_script
|
54
|
+
pry
|
55
|
+
rails
|
56
|
+
|
57
|
+
GEM
|
58
|
+
remote: http://rubygems.org/
|
59
|
+
specs:
|
60
|
+
appraisal (0.5.1)
|
61
|
+
bundler
|
62
|
+
rake
|
63
|
+
arel (3.0.2)
|
64
|
+
atomic (1.0.1)
|
65
|
+
builder (3.1.4)
|
66
|
+
coderay (1.0.8)
|
67
|
+
diff-lcs (1.1.3)
|
68
|
+
ember_script (0.0.3)
|
69
|
+
tilt
|
70
|
+
erubis (2.7.0)
|
71
|
+
hike (1.2.1)
|
72
|
+
i18n (0.6.1)
|
73
|
+
json (1.7.5)
|
74
|
+
mail (2.5.3)
|
75
|
+
i18n (>= 0.4.0)
|
76
|
+
mime-types (~> 1.16)
|
77
|
+
treetop (~> 1.4.8)
|
78
|
+
method_source (0.8.1)
|
79
|
+
mime-types (1.19)
|
80
|
+
minitest (4.3.3)
|
81
|
+
multi_json (1.5.0)
|
82
|
+
polyglot (0.3.3)
|
83
|
+
pry (0.9.10)
|
84
|
+
coderay (~> 1.0.5)
|
85
|
+
method_source (~> 0.8)
|
86
|
+
slop (~> 3.3.1)
|
87
|
+
rack (1.4.1)
|
88
|
+
rack-test (0.6.2)
|
89
|
+
rack (>= 1.0)
|
90
|
+
rake (10.0.3)
|
91
|
+
rdoc (3.12)
|
92
|
+
json (~> 1.4)
|
93
|
+
rspec (2.12.0)
|
94
|
+
rspec-core (~> 2.12.0)
|
95
|
+
rspec-expectations (~> 2.12.0)
|
96
|
+
rspec-mocks (~> 2.12.0)
|
97
|
+
rspec-core (2.12.1)
|
98
|
+
rspec-expectations (2.12.0)
|
99
|
+
diff-lcs (~> 1.1.3)
|
100
|
+
rspec-mocks (2.12.0)
|
101
|
+
rspec-rails (2.12.0)
|
102
|
+
actionpack (>= 3.0)
|
103
|
+
activesupport (>= 3.0)
|
104
|
+
railties (>= 3.0)
|
105
|
+
rspec-core (~> 2.12.0)
|
106
|
+
rspec-expectations (~> 2.12.0)
|
107
|
+
rspec-mocks (~> 2.12.0)
|
108
|
+
slop (3.3.3)
|
109
|
+
sprockets (2.8.2)
|
110
|
+
hike (~> 1.2)
|
111
|
+
multi_json (~> 1.0)
|
112
|
+
rack (~> 1.0)
|
113
|
+
tilt (~> 1.1, != 1.3.0)
|
114
|
+
sprockets-rails (2.0.0.rc1)
|
115
|
+
actionpack (>= 3.0)
|
116
|
+
activesupport (>= 3.0)
|
117
|
+
sprockets (~> 2.8)
|
118
|
+
thor (0.16.0)
|
119
|
+
thread_safe (0.1.0)
|
120
|
+
atomic
|
121
|
+
tilt (1.3.3)
|
122
|
+
treetop (1.4.12)
|
123
|
+
polyglot
|
124
|
+
polyglot (>= 0.3.1)
|
125
|
+
tzinfo (0.3.35)
|
126
|
+
|
127
|
+
PLATFORMS
|
128
|
+
ruby
|
129
|
+
|
130
|
+
DEPENDENCIES
|
131
|
+
activerecord-deprecated_finders!
|
132
|
+
appraisal
|
133
|
+
bundler (>= 1.2.2)
|
134
|
+
ember_script-rails!
|
135
|
+
rails!
|
136
|
+
rspec
|
137
|
+
rspec-rails
|
@@ -0,0 +1,18 @@
|
|
1
|
+
module EmberScript
|
2
|
+
module Rails
|
3
|
+
class Engine < ::Rails::Engine
|
4
|
+
config.ember_script = ActiveSupport::OrderedOptions.new
|
5
|
+
|
6
|
+
initializer "ember_script.setup", :after => :'load_environment_config', :group => :all do |app|
|
7
|
+
if app.config.assets.enabled
|
8
|
+
sprockets = if ::Rails::VERSION::MAJOR == 4
|
9
|
+
Sprockets.respond_to?('register_engine') ? Sprockets : app.assets
|
10
|
+
else
|
11
|
+
app.assets
|
12
|
+
end
|
13
|
+
sprockets.register_engine '.em', EmberScript::EmberScriptTemplate
|
14
|
+
end
|
15
|
+
end
|
16
|
+
end
|
17
|
+
end
|
18
|
+
end
|
data/lib/ember_script-rails.rb
CHANGED