savagery 0.4.0 → 0.4.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: d728c0670ef167ce440cefcca400ed63460618d2
4
- data.tar.gz: 4a6943833fd27ce61c6ebaa7403489647ea4636f
3
+ metadata.gz: 69b7ef6036d3496e74700f2cf41b5a81f4a4121a
4
+ data.tar.gz: a44c03cdcaeef64b60f2bd8d4284822d9f562d7e
5
5
  SHA512:
6
- metadata.gz: 82fbc2957b9456c2271fce9d6de5c38691c5b1b95a6faa5fd169970575ad4aa2a362044495649148ff29ce61fb34b6f4ec7481378c63ab709e4e939b48a5e1f9
7
- data.tar.gz: dbd549d244ca7a00bf57ce1c45c01dfe1f1cb37e9e258021ec10fbcb6ed73634d00462997cd20dbfa3fd5006e3dbe8076c85c786420759d51e6c065bf9a3f6e2
6
+ metadata.gz: a01bc693bfa897b445814430601206699f9b832a6a6f0cbdc6966e3c16d53139665a683ef25a104c00248f403f9ab8fd270e2696baaa42e49410a7418c35352f
7
+ data.tar.gz: 8b3d30ec446df9d21aaece3ce7f38349bfc07d6e9f7309286e803b1458b4dc6d52a435992ac502f62b3aa688dba9525fcb009258d3217d131198cfc6849ff7fa
@@ -18,13 +18,14 @@ Savagery = {
18
18
 
19
19
  _svgSpritesIncluded: {},
20
20
 
21
- emberHelper: function(name, options) {
21
+ emberHelper: function(params, hash) {
22
+ var name = params[0];
22
23
  var names = name.split("/");
23
24
  var dirname = names[0];
24
25
  var basename = names[1];
25
26
  Savagery.svgSpriteInclude(dirname);
26
27
 
27
- var cssClass = options.hash["class"];
28
+ var cssClass = hash["class"];
28
29
  var html = Savagery.svgSpriteUse(basename, cssClass);
29
30
  return new Ember.Handlebars.SafeString(html);
30
31
  }
@@ -34,7 +35,7 @@ Ember.Application.initializer({
34
35
  name: "savagery-helpers",
35
36
 
36
37
  initialize: function(container, application) {
37
- application.register("helper:svg-sprite-use", Savagery.emberHelper);
38
+ application.register("helper:svg-sprite-use", Ember.Helper.helper(Savagery.emberHelper));
38
39
  }
39
40
  });
40
41
 
@@ -1,3 +1,3 @@
1
1
  module Savagery
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: savagery
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Micah Geisel