ember-rails-assets 0.1.2 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/app/assets/javascripts/ember-rails-assets.js +10 -3
- data/lib/ember/rails/assets/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1a37577b952cd7b6158361fd7459f7850017cad9
|
4
|
+
data.tar.gz: 49585a4d5a467b51561507d687061cec050abcdf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a70cb94e2c9c7c062efcf04dc089acfa42ab69708e3f9b85bc2aa9a0f783a819b04add3637af2b42c7988b6ac7f8edc165a5e59ccde2c8d9c357dce864a9e33f
|
7
|
+
data.tar.gz: 4d0097e034ce5850c8e566eccd96da2f5369f01305c01e93aa0ad3c028036d39007cc9dce108349ceec811c23b966310235c31a3125e7ccb897befca880356c9
|
data/README.md
CHANGED
@@ -26,6 +26,10 @@ Ember: Require `ember-rails-assets` anywhere, then use the `asset-path` helper i
|
|
26
26
|
|
27
27
|
This will output `<img src="/assets/logo.png" />` in development, and `<img src="/assets/logo-a7f68910d32291ed6470a764a2e59465.png" />` in production.
|
28
28
|
|
29
|
+
## Requirements
|
30
|
+
|
31
|
+
This gem supports Rails 4.x and Ember 1.13.x and up.
|
32
|
+
|
29
33
|
## Contributing
|
30
34
|
|
31
35
|
1. Fork it ( https://github.com/botandrose/ember-rails-assets/fork )
|
@@ -1,4 +1,11 @@
|
|
1
|
-
Ember.
|
2
|
-
|
3
|
-
|
1
|
+
Ember.Application.initializer({
|
2
|
+
name: "ember-rails-assets-helpers",
|
3
|
+
|
4
|
+
initialize: function(container, application) {
|
5
|
+
application.register("helper:asset-path", Ember.Helper.helper(function(params, hash) {
|
6
|
+
var name = params[0];
|
7
|
+
var path = window.ASSETS.path(name);
|
8
|
+
return new Ember.Handlebars.SafeString(path);
|
9
|
+
}));
|
10
|
+
}
|
4
11
|
});
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ember-rails-assets
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Micah Geisel
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-08-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -78,7 +78,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
78
78
|
version: '0'
|
79
79
|
requirements: []
|
80
80
|
rubyforge_project:
|
81
|
-
rubygems_version: 2.4.
|
81
|
+
rubygems_version: 2.4.6
|
82
82
|
signing_key:
|
83
83
|
specification_version: 4
|
84
84
|
summary: asset-path helper for ember-rails, including digest!
|