ember-cli-rails 0.1.7 → 0.1.8
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +5 -0
- data/app/controllers/ember_tests_controller.rb +27 -0
- data/config/routes.rb +3 -0
- data/lib/ember-cli/version.rb +1 -1
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 946a0fb72121616c65e7110778d131fa596199e3
|
4
|
+
data.tar.gz: f9f8e3f679bf7ad90898872f8649020f3a31b3a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 38daa6f7bc8e97d26905996a9b0475089bd657b772a4c85ed1b40256ef9bd869bb4d995dd31acbf050eba10d4bcf4348b54484e8cbb2d534d9f78d7be98e8d7c
|
7
|
+
data.tar.gz: 56a4eada98aa6ce76b1d5be08e4e53b1d5be8eb8e5303d5ee6c3401209817a0909816034f2326b163d95be3d7c975b9a0f510c7c6e5b071149b69825ddfe15a4
|
data/CHANGELOG.md
CHANGED
@@ -0,0 +1,27 @@
|
|
1
|
+
class EmberTestsController < ActionController::Base
|
2
|
+
def index
|
3
|
+
render text: test_html_with_corrected_asset_urls, layout: false
|
4
|
+
end
|
5
|
+
|
6
|
+
private
|
7
|
+
|
8
|
+
def test_html_with_corrected_asset_urls
|
9
|
+
test_html.gsub(%r{assets/}i, "assets/#{app_name}/")
|
10
|
+
end
|
11
|
+
|
12
|
+
def test_html
|
13
|
+
tests_index_path.read
|
14
|
+
end
|
15
|
+
|
16
|
+
def tests_index_path
|
17
|
+
app.tests_path.join("index.html")
|
18
|
+
end
|
19
|
+
|
20
|
+
def app
|
21
|
+
EmberCLI.get_app(app_name)
|
22
|
+
end
|
23
|
+
|
24
|
+
def app_name
|
25
|
+
params.fetch(:app_name)
|
26
|
+
end
|
27
|
+
end
|
data/config/routes.rb
ADDED
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.1.
|
4
|
+
version: 0.1.8
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Pavel Pravosud
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-02-
|
12
|
+
date: 2015-02-24 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|
@@ -50,6 +50,8 @@ files:
|
|
50
50
|
- CHANGELOG.md
|
51
51
|
- LICENSE.txt
|
52
52
|
- README.md
|
53
|
+
- app/controllers/ember_tests_controller.rb
|
54
|
+
- config/routes.rb
|
53
55
|
- lib/ember-cli-rails.rb
|
54
56
|
- lib/ember-cli/app.rb
|
55
57
|
- lib/ember-cli/configuration.rb
|