hamlit 1.1.0 → 1.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: d5a1e096423ee86064c348eb368f24123485c237
4
- data.tar.gz: 4eea016823ef282a698e59cf75af15a98aad9d19
3
+ metadata.gz: e9ce534073d7cc2af36877f5d26bb82cf1b40b0f
4
+ data.tar.gz: ecbdaf0584cb9ad467f8b2a04fc4fafced55f4be
5
5
  SHA512:
6
- metadata.gz: 70ca8fad5f406015583d08a0e80e2d878e879ebaf15aa3d6139e8bb91d8871dce7897d23eb9d6bb066854cab88140c0bd6782b176dcf7753e361bd21d0a80153
7
- data.tar.gz: 1e78de32103cd32ec2a277ed95eefc1e1cacbd70431db6b8c812982d488d0fbe292e288bf834ab8569a7dba26e02b17575d79404c2f27233e2bc13c07fca1bcb
6
+ metadata.gz: 639dbaf1d5d58e62a6d655bd20255b49fa79449f68075a56d316eb231cb26353186ff9a9095411ad9beb7b914b3fc6ce4091103dc02004e76c759009b496ee93
7
+ data.tar.gz: 4ab3cb79b4419e6b48a3008222a910234c89e8a0d60e68f2c97269cd3d6b2da2f8d5d83a100f8d8ecee945529d0e1494f6f66f6e2b75df90570f3ae6f3d27c4f
data/CHANGELOG.md CHANGED
@@ -1,3 +1,7 @@
1
+ ## v1.1.1
2
+
3
+ - Bugfix of rendering array attributes
4
+
1
5
  ## v1.1.0
2
6
 
3
7
  - Join id and class attributes
@@ -42,6 +42,8 @@ module Hamlit
42
42
  value = value.join('_')
43
43
  when :class
44
44
  value = value.join(' ')
45
+ else
46
+ value
45
47
  end
46
48
  end
47
49
 
@@ -1,3 +1,3 @@
1
1
  module Hamlit
2
- VERSION = "1.1.0"
2
+ VERSION = "1.1.1"
3
3
  end
@@ -99,6 +99,14 @@ describe Hamlit::Engine do
99
99
  <p id='a_b_c'></p>
100
100
  HTML
101
101
  end
102
+
103
+ it 'does not join others' do
104
+ assert_render(<<-'HAML', <<-HTML)
105
+ %a{ data: { value: [count: 1] } }
106
+ HAML
107
+ <a data-value='[{:count=&gt;1}]'></a>
108
+ HTML
109
+ end
102
110
  end
103
111
 
104
112
  describe 'deletable attributes' do
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: hamlit
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Takashi Kokubun