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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 26d9d521e82ef487f9ba651c4f47ae4cb4129bda
4
- data.tar.gz: 4eb1e5c225084537eb0fa70ddd063d2c0606a2c4
3
+ metadata.gz: 1a37577b952cd7b6158361fd7459f7850017cad9
4
+ data.tar.gz: 49585a4d5a467b51561507d687061cec050abcdf
5
5
  SHA512:
6
- metadata.gz: a13e295de6677cf61b453da3b2bddb7f2ca8f369bd0f89d870a602878acffbc1784fd552176c662e130a9339fb5ec810ffb7f928308877bd53db0352bf1d3dfb
7
- data.tar.gz: 5b1c326b26dd1dfda4ff798b33273f908e7cc005b6a0db01b71851a5a4126522b01541866d5c8fb6113ffe2c0cbd70cf9a66df30f1ca01803ab638ec875a1bdb
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.Handlebars.registerBoundHelper("asset-path", function(name) {
2
- var path = window.ASSETS.path(name);
3
- return new Ember.Handlebars.SafeString(path);
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
  });
@@ -1,7 +1,7 @@
1
1
  module Ember
2
2
  module Rails
3
3
  module Assets
4
- VERSION = "0.1.2"
4
+ VERSION = "0.2.0"
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.1.2
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-05-11 00:00:00.000000000 Z
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.5
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!