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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: f920d670a1774fce16c0bc61111b17292caa879f
4
- data.tar.gz: 10eb258cc10eb4b3acef3ad64d67a2a5d39e7b2d
3
+ metadata.gz: 946a0fb72121616c65e7110778d131fa596199e3
4
+ data.tar.gz: f9f8e3f679bf7ad90898872f8649020f3a31b3a5
5
5
  SHA512:
6
- metadata.gz: c96486c1419c1a671b7eafc2358e63b463a0ec9d29b278810605dde305febd032b502a0e369b0ef7cdd8b916328dd5b6686257bdee9ec4ed5847b048397bfcb7
7
- data.tar.gz: 7ab0834bb58959a1b50a46e4f16bf6b05ab4171117b0c249b32bdc74bf71636248aa7272f27f86dcbb0d26516d3e72f526d3898e84da9482328b39d6582f09bf
6
+ metadata.gz: 38daa6f7bc8e97d26905996a9b0475089bd657b772a4c85ed1b40256ef9bd869bb4d995dd31acbf050eba10d4bcf4348b54484e8cbb2d534d9f78d7be98e8d7c
7
+ data.tar.gz: 56a4eada98aa6ce76b1d5be08e4e53b1d5be8eb8e5303d5ee6c3401209817a0909816034f2326b163d95be3d7c975b9a0f510c7c6e5b071149b69825ddfe15a4
@@ -1,3 +1,8 @@
1
+ 0.1.8
2
+ -----
3
+
4
+ * Include engine file into gemspec [#91](https://github.com/rwz/ember-cli-rails/pull/91) [@jesenko](https://github.com/jesenko)
5
+
1
6
  0.1.7
2
7
  -----
3
8
 
@@ -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
@@ -0,0 +1,3 @@
1
+ EmberCLI::Engine.routes.draw do
2
+ get ":app_name", to: "ember_tests#index", format: false
3
+ end
@@ -1,3 +1,3 @@
1
1
  module EmberCLI
2
- VERSION = "0.1.7".freeze
2
+ VERSION = "0.1.8".freeze
3
3
  end
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.7
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-22 00:00:00.000000000 Z
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