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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 1a37577b952cd7b6158361fd7459f7850017cad9
4
- data.tar.gz: 49585a4d5a467b51561507d687061cec050abcdf
3
+ metadata.gz: 88165aa749efa905492da1f43a39cd20b684cbae
4
+ data.tar.gz: cbdeb8020094679c3ee39add2be2bce8831bb8e4
5
5
  SHA512:
6
- metadata.gz: a70cb94e2c9c7c062efcf04dc089acfa42ab69708e3f9b85bc2aa9a0f783a819b04add3637af2b42c7988b6ac7f8edc165a5e59ccde2c8d9c357dce864a9e33f
7
- data.tar.gz: 4d0097e034ce5850c8e566eccd96da2f5369f01305c01e93aa0ad3c028036d39007cc9dce108349ceec811c23b966310235c31a3125e7ccb897befca880356c9
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
- 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
- }));
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
  });
@@ -1,7 +1,7 @@
1
1
  module Ember
2
2
  module Rails
3
3
  module Assets
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.1"
5
5
  end
6
6
  end
7
7
  end
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.0
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-08-25 00:00:00.000000000 Z
11
+ date: 2015-09-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler