ember-cli-rails 0.0.7 → 0.0.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: 70de2db30c3a569a3de223a66d4333cd381797b0
4
- data.tar.gz: 03da59f19c3738116943f847e0a4c9dd02ad3c97
3
+ metadata.gz: b1f6889e94be7bb1a8fee73ad31e9bc21874e8ff
4
+ data.tar.gz: 0b855d4b3e0f690dba9337d44cb1e4f5da02a948
5
5
  SHA512:
6
- metadata.gz: 28d438311ffa4570d3ab8fbac42e8c267f5f4e93e07ac76d3d8b31f91e157db803ef36b6aa30c150774e35ec066f24f49df1f3fc8364627af8d4e55ac438daa6
7
- data.tar.gz: bc214bc7bd4e8a320a3574539d9893d4852690e581d1bf4c848f8986c6e71ce3d9da62f7c0e314ecfa8137ccf20b7346e8266992d103e0170768078f4f8f227c
6
+ metadata.gz: 588b655c4d5d2fd3ac61f2db4f6f1117ff761252bb50afc68a0819659b42a37d41c3fcdd06473258871f5305b70468bca7e563f1694c2e5f435b53dc4b078c6c
7
+ data.tar.gz: 20531088d7bed661b4d0eedc653f9f6814f55eba4a70c6e4a1ffaf361ee9e1ef89e78f55c57d5a4676375a5b8a87d2ab22c5fcedf3e3c4ca80f762f43690f2d2
data/README.md CHANGED
@@ -95,6 +95,12 @@ javscript tags on the page you'd like the Ember app to appear:
95
95
  <%= include_ember_script_tags :frontend %>
96
96
  ```
97
97
 
98
+ Stylesheets are also available by calling:
99
+
100
+ ```erb
101
+ <%= include_ember_stylesheet_tags :frontend %>
102
+ ```
103
+
98
104
  Your Ember application will be served now.
99
105
 
100
106
  ## Additional Information
@@ -27,10 +27,8 @@ module EmberCLI
27
27
  def enable!
28
28
  prepare!
29
29
 
30
- Rails.application.instance_eval do
31
- singleton_class.instance_eval do
32
- alias_method :call_without_ember_cli, :call
33
- end
30
+ Rails.application.singleton_class.class_eval do
31
+ alias_method :call_without_ember_cli, :call
34
32
 
35
33
  def call(env)
36
34
  @_ember_cli_enabled ||= begin
@@ -28,6 +28,10 @@ module EmberCLI
28
28
  %W[#{name}/vendor #{name}/#{ember_app_name}]
29
29
  end
30
30
 
31
+ def exposed_css_assets
32
+ %W[#{name}/vendor #{name}/#{ember_app_name}]
33
+ end
34
+
31
35
  private
32
36
 
33
37
  delegate :ember_path, to: :configuration
@@ -43,7 +47,8 @@ module EmberCLI
43
47
  end
44
48
 
45
49
  def symlink_to_assets_root
46
- assets_path.join(name).make_symlink dist_path.join("assets")
50
+ symlink_path = dist_path.join("assets")
51
+ assets_path.join(name).make_symlink symlink_path unless symlink_path.exist?
47
52
  end
48
53
 
49
54
  def add_assets_to_precompile_list
@@ -1,3 +1,3 @@
1
1
  module EmberCLI
2
- VERSION = "0.0.7".freeze
2
+ VERSION = "0.0.8".freeze
3
3
  end
@@ -4,5 +4,10 @@ module EmberCLI
4
4
  app = EmberCLI.configuration.apps.fetch(app_name)
5
5
  javascript_include_tag *app.exposed_js_assets
6
6
  end
7
+
8
+ def include_ember_stylesheet_tags(app_name)
9
+ app = EmberCLI.configuration.apps.fetch(app_name)
10
+ stylesheet_link_tag *app.exposed_css_assets
11
+ end
7
12
  end
8
13
  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.0.7
4
+ version: 0.0.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: 2014-12-10 00:00:00.000000000 Z
12
+ date: 2014-12-11 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties