ember-rails-assets 0.1.0 → 0.1.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: a27a4d499f94b27743493d07d461d9c30d336f79
4
- data.tar.gz: 16a13b5113d9b0992fad5b2745d49302155619af
3
+ metadata.gz: b4ac11c20428da2f5dc392152a6a06556339acbe
4
+ data.tar.gz: fda9f49e05f36187d74b0df7210a99b93878bb4b
5
5
  SHA512:
6
- metadata.gz: 6815eedcb3ac3b69914f5e2f857d5f178cb5d04379520a398961f63524666829227ea983fb00d6978073ef95b13308119ba0344b14477fccc45f0ad0724cdd55
7
- data.tar.gz: ad0d52795ee301e74975e1f407f662d04b20e3855bb09b86569756038858632fe824dc173bdc53c89888ed796f7229f3a1ead3b786ba2d6d29d692a679902f2c
6
+ metadata.gz: a8c1a873b59a82dfed7d7e0d481b86dec48af1c00fc4ce76774ef097c74960efa05a50b97194d441989ff43791145bd60ca7f9a4361b4ca476da8d43123c7532
7
+ data.tar.gz: c0b6930518190c304435a6bc93ab0f70addca8fab6056dde58d08461cc1f82cbb322443d834e1931655d81850eaebb2abf71d2c34302c2d1689b82b76bdd4d40
data/README.md CHANGED
@@ -17,11 +17,15 @@ Ember: Require `ember-rails-assets` anywhere, then use the `asset-path` helper i
17
17
  ```javascript
18
18
  // app/assets/javascripts/application.js
19
19
  //= require ember-rails-assets
20
+ ```
20
21
 
21
- // app/assets/javascripts/templates/application.hbs
22
- <img src="{{asset-path "dogs/chihuahua"}}" />
22
+ ```handlebars
23
+ <!-- app/assets/javascripts/templates/application.hbs -->
24
+ <img src="{{asset-path "logo.png"}}" />
23
25
  ```
24
26
 
27
+ This will output `<img src="/assets/logo.png" />` in development, and `<img src="/assets/logo-a7f68910d32291ed6470a764a2e59465.png" />` in production.
28
+
25
29
  ## Contributing
26
30
 
27
31
  1. Fork it ( https://github.com/botandrose/ember-rails-assets/fork )
@@ -0,0 +1,5 @@
1
+ Ember.Handlebars.registerHelper("asset-path", function(name) {
2
+ var path;
3
+ path = window.ASSETS.path(name);
4
+ return new Ember.Handlebars.SafeString(path);
5
+ });
@@ -1,7 +1,7 @@
1
1
  module Ember
2
2
  module Rails
3
3
  module Assets
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.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.1.0
4
+ version: 0.1.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: 2014-12-03 00:00:00.000000000 Z
11
+ date: 2015-01-14 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
@@ -50,7 +50,7 @@ files:
50
50
  - LICENSE.txt
51
51
  - README.md
52
52
  - Rakefile
53
- - app/assets/javascripts/ember-rails-assets.js.coffee
53
+ - app/assets/javascripts/ember-rails-assets.js
54
54
  - ember-rails-assets.gemspec
55
55
  - lib/ember-rails-assets.rb
56
56
  - lib/ember/rails/assets.rb
@@ -1,4 +0,0 @@
1
- Ember.Handlebars.registerHelper "asset-path", (name) ->
2
- path = window.ASSETS.path(name)
3
- new Ember.Handlebars.SafeString(path)
4
-