ember-cli-rails 0.7.0 → 0.7.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +14 -0
- data/lib/ember_cli/app.rb +8 -0
- data/lib/ember_cli/deploy/file.rb +9 -0
- data/lib/ember_cli/engine.rb +1 -3
- data/lib/ember_cli/path_set.rb +2 -2
- data/lib/ember_cli/route_helpers.rb +10 -6
- data/lib/ember_cli/version.rb +1 -1
- data/lib/generators/ember/heroku/templates/bin_heroku_install.erb +2 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: fa89f6f26b26bbf222e7881b397422868795a55c
|
4
|
+
data.tar.gz: 3d2b5205aa404925fa0a76fabae819646b9298f8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2a92409bab6abf2f119b3ae5ce064f33eb452cc1abc486a805fb57f759b83df1a0257a5a3432d86daf257e6d07048244b266c806e5f03208e4b82ed1a9275edf
|
7
|
+
data.tar.gz: 8ad3eb7eef5f6084ca30a583a5f9407e99702b491d92e1c00bb05e7f79236b9d3a5cd5dde83a822ebbfe416cb5f4131216da5e2b8fa65e9eda85b69d9c2dc2aa
|
data/CHANGELOG.md
CHANGED
@@ -1,6 +1,20 @@
|
|
1
1
|
master
|
2
2
|
------
|
3
3
|
|
4
|
+
0.7.1
|
5
|
+
-----
|
6
|
+
|
7
|
+
* Resolve `ember` executable with full path within `node_modules`, instead of
|
8
|
+
depending on the presence of `node_modules/.bin`. [#395]
|
9
|
+
* Introduce the idea of `App#mountable?` and `App#to_rack` for handling deploys
|
10
|
+
that don't serve assets from the file system (Redis, for example).
|
11
|
+
* Fix bug with generated `bin/heroku_install` script iterating through multiple
|
12
|
+
* Don't mount route helpers at top-level. Instead, mount within the surrounding
|
13
|
+
context with which they're invoked. [#381]
|
14
|
+
|
15
|
+
[#395]: https://github.com/thoughtbot/ember-cli-rails/pull/395
|
16
|
+
[#381]: https://github.com/thoughtbot/ember-cli-rails/pull/381
|
17
|
+
|
4
18
|
0.7.0
|
5
19
|
-----
|
6
20
|
|
data/lib/ember_cli/app.rb
CHANGED
@@ -1,3 +1,4 @@
|
|
1
|
+
require "rack"
|
1
2
|
require "ember_cli/errors"
|
2
3
|
|
3
4
|
module EmberCli
|
@@ -7,6 +8,14 @@ module EmberCli
|
|
7
8
|
@app = app
|
8
9
|
end
|
9
10
|
|
11
|
+
def mountable?
|
12
|
+
true
|
13
|
+
end
|
14
|
+
|
15
|
+
def to_rack
|
16
|
+
Rack::File.new(app.dist_path.to_s)
|
17
|
+
end
|
18
|
+
|
10
19
|
def index_html
|
11
20
|
if index_file.exist?
|
12
21
|
index_file.read
|
data/lib/ember_cli/engine.rb
CHANGED
@@ -1,11 +1,9 @@
|
|
1
1
|
module EmberCli
|
2
2
|
class Engine < Rails::Engine
|
3
|
-
initializer "ember-cli-rails.
|
3
|
+
initializer "ember-cli-rails.setup" do
|
4
4
|
require "ember_cli/ember_controller"
|
5
5
|
require "ember_cli/route_helpers"
|
6
|
-
end
|
7
6
|
|
8
|
-
config.to_prepare do
|
9
7
|
ActionController::Base.helper EmberRailsHelper
|
10
8
|
end
|
11
9
|
end
|
data/lib/ember_cli/path_set.rb
CHANGED
@@ -37,7 +37,7 @@ module EmberCli
|
|
37
37
|
|
38
38
|
def ember
|
39
39
|
@ember ||= begin
|
40
|
-
root.join("node_modules", "
|
40
|
+
root.join("node_modules", "ember-cli", "bin", "ember").tap do |path|
|
41
41
|
unless path.executable?
|
42
42
|
fail DependencyError.new <<-MSG.strip_heredoc
|
43
43
|
No `ember-cli` executable found for `#{app_name}`.
|
@@ -65,7 +65,7 @@ module EmberCli
|
|
65
65
|
bower_path = app_options.fetch(:bower_path) { which("bower") }
|
66
66
|
|
67
67
|
bower_path.tap do |path|
|
68
|
-
unless Pathname(path).executable?
|
68
|
+
unless Pathname(path.to_s).executable?
|
69
69
|
fail DependencyError.new <<-MSG.strip_heredoc
|
70
70
|
Bower is required by EmberCLI
|
71
71
|
|
@@ -14,14 +14,18 @@ module ActionDispatch
|
|
14
14
|
format: :html,
|
15
15
|
)
|
16
16
|
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
17
|
+
scope constraints: ::EmberCli::HtmlConstraint.new do
|
18
|
+
get("#{to}(*rest)", routing_options)
|
19
|
+
end
|
20
|
+
|
21
|
+
mount_ember_assets(app_name, to: to)
|
22
|
+
end
|
21
23
|
|
22
|
-
|
24
|
+
def mount_ember_assets(app_name, to: "/")
|
25
|
+
app = ::EmberCli[app_name]
|
23
26
|
|
24
|
-
|
27
|
+
if app.mountable?
|
28
|
+
mount app.to_rack => to
|
25
29
|
end
|
26
30
|
end
|
27
31
|
end
|
data/lib/ember_cli/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember-cli-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.7.
|
4
|
+
version: 0.7.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Pravosud
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date:
|
13
|
+
date: 2016-02-02 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: ember-cli-rails-assets
|