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 +4 -4
- data/README.md +6 -0
- data/lib/ember-cli-rails.rb +2 -4
- data/lib/ember-cli/app.rb +6 -1
- data/lib/ember-cli/version.rb +1 -1
- data/lib/ember-cli/view_helpers.rb +5 -0
- 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: b1f6889e94be7bb1a8fee73ad31e9bc21874e8ff
|
4
|
+
data.tar.gz: 0b855d4b3e0f690dba9337d44cb1e4f5da02a948
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/ember-cli-rails.rb
CHANGED
@@ -27,10 +27,8 @@ module EmberCLI
|
|
27
27
|
def enable!
|
28
28
|
prepare!
|
29
29
|
|
30
|
-
Rails.application.
|
31
|
-
|
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
|
data/lib/ember-cli/app.rb
CHANGED
@@ -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
|
-
|
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
|
data/lib/ember-cli/version.rb
CHANGED
@@ -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.
|
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-
|
12
|
+
date: 2014-12-11 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: railties
|