ember-rails-assets 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/app/assets/javascripts/ember-rails-assets.js +12 -5
- data/lib/ember/rails/assets/version.rb +1 -1
- 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: 88165aa749efa905492da1f43a39cd20b684cbae
|
4
|
+
data.tar.gz: cbdeb8020094679c3ee39add2be2bce8831bb8e4
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 011dfa967e27421ee8706823dd8c621a93236a993810dc92e4fe04a875b7b39e5be30cb40148d0c71e02331b79682d9e5f72b83807c74a6b3d1c294d2dbedf39
|
7
|
+
data.tar.gz: 2257c6206ceaab8035b6d8629b49ddf17f393cfca33cb6aa488cb34ee584dc4085b39673e9955cc917f4d98bb657695f376aa10d508861fc30a3035b467599a9
|
@@ -2,10 +2,17 @@ Ember.Application.initializer({
|
|
2
2
|
name: "ember-rails-assets-helpers",
|
3
3
|
|
4
4
|
initialize: function(container, application) {
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
5
|
+
if(typeof Ember.Helper !== "undefined") { // Ember >= 1.13
|
6
|
+
application.register("helper:asset-path", Ember.Helper.helper(function(params, hash) {
|
7
|
+
var name = params[0];
|
8
|
+
var path = window.ASSETS.path(name);
|
9
|
+
return new Ember.Handlebars.SafeString(path);
|
10
|
+
}));
|
11
|
+
} else { // Ember < 1.13
|
12
|
+
Ember.Handlebars.registerBoundHelper("asset-path", function(name) {
|
13
|
+
var path = window.ASSETS.path(name);
|
14
|
+
return new Ember.Handlebars.SafeString(path);
|
15
|
+
});
|
16
|
+
}
|
10
17
|
}
|
11
18
|
});
|
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.2.
|
4
|
+
version: 0.2.1
|
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-09-07 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|