hamlbars 2.1.0 → 2.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 12daf1a69be2ba4c31e4dff0a8290aa3e68dc281
4
- data.tar.gz: 1efc6726ec1c13fb6184d5219c691c2c7fd67a8a
3
+ metadata.gz: bff4cbdd93ce88dfd441456b7ba5fb27e38f98cf
4
+ data.tar.gz: 89b619768a8ab1668c2ab1d36d8962ced23c121f
5
5
  SHA512:
6
- metadata.gz: ee3348713452e9fe95ad9dc700684c7f935fa731de10c6d14858712d966b1b85d1453cfc846897983f6384aa64371cc66faec314a32d2680aa9f804e4d07d825
7
- data.tar.gz: 1625031cf6db0de922b0c9b9eea5c0179fa364700fa6dbc3145fe2e628e13477295d88d9422603c442b71b487dbade9006b8828db1e70fe10f4914906cbc8618
6
+ metadata.gz: 31789e8579fe0b0529f5b34f5fa2207b8cea5f69c0dd9dc4d1774429d95682c2594d108b3aa9b000c3fb9cdeb8f6ec04215fbd5428270817cee974aecbdc2cac
7
+ data.tar.gz: cdbaeb5a114f6623df73f5f8b51ff9988b8c6fcd88d0baa8ed8abf4437972534b2c655652781cf94561588aa6f6aee2bf88dac3479a4a58ede4da360e1a7366d
data/README.md CHANGED
@@ -180,8 +180,8 @@ To use Ember's `{{action}}` helper, set the `:_action` attribute, like so:
180
180
  This will generate:
181
181
 
182
182
  ```html
183
- <a {{action toggle}}>Toggle</a>
184
- <a {{action edit article on="doubleClick"}}>Edit</a>
183
+ <a {{action "toggle"}}>Toggle</a>
184
+ <a {{action "edit" article on="doubleClick"}}>Edit</a>
185
185
  ```
186
186
 
187
187
  Note that `:_action` has a leading underscore, to distinguish it from regular
@@ -45,7 +45,8 @@ module Hamlbars
45
45
  # This could be generalized into /_.*/ catch-all syntax, if
46
46
  # necessary. https://github.com/jamesotron/hamlbars/pull/33
47
47
  if action = attributes.delete('_action')
48
- handlebars_rendered_attributes << " {{action #{action}}}"
48
+ actionName, rest = action.split(/\s/, 2)
49
+ handlebars_rendered_attributes << " {{action \"#{actionName}\" #{rest}}}"
49
50
  end
50
51
 
51
52
  handlebars_rendered_attributes
@@ -1,3 +1,3 @@
1
1
  module Hamlbars
2
- VERSION = '2.1.0'
2
+ VERSION = '2.1.1'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hamlbars
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Harton
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-01-13 00:00:00.000000000 Z
11
+ date: 2014-02-27 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: haml
@@ -30,14 +30,14 @@ dependencies:
30
30
  requirements:
31
31
  - - '>='
32
32
  - !ruby/object:Gem::Version
33
- version: '0'
33
+ version: '2.0'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
38
  - - '>='
39
39
  - !ruby/object:Gem::Version
40
- version: '0'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: tilt
43
43
  requirement: !ruby/object:Gem::Requirement