bade 0.3.10 → 0.3.11

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
  SHA256:
3
- metadata.gz: 95b05e356f997fbc5f6a8bd6f6e6f7224f58334778b97c96d1faafd472073154
4
- data.tar.gz: 9fad2f37dec4f5812899bb4a15eb291af618c7083521688d9d70e9f803db7c84
3
+ metadata.gz: a8686ad9e6c2c1ef1c752a2dc0e05e12b7e2ee30bfe7d4eb8ffc5256ed8a1594
4
+ data.tar.gz: 47516ba228a2111cdd8e966e468ba1bd5b02e905f9b0042bb96dd84299f737eb
5
5
  SHA512:
6
- metadata.gz: 17762e2285d93f223c964cdb3ed3b946bd7b72de2a2aeb95842dcd0be0166e06ee31cdd2c16fdd5a2d20631fda4df48c15adee134ba7bc35fef1e5cacb84f9ea
7
- data.tar.gz: 3acbf567d6ee1a681e5d0999c899ead310978e0970b0a5376e2fd519c25e03c39fc98159c7176f5c1dab57d1f8209b9636c0d02aefdcc71792b8f8c0147ab521
6
+ metadata.gz: 1852993735fd0917d23e1fb73922bef6df9263d69f93f3c68109bd29bc6d0c2d94c56e385ed8e8d779b7fb64dd69a0b2631b2d5f3bbbad3602cb41bafa96b2ec
7
+ data.tar.gz: deea59751038b074cc1f20791b4f8f19cc6b0ed8dad026ceec4c0341d9c34f0526b56f817ebd006943528ed9d8b8580ccf0b86f14ce980d850458f44a6a8dde8
@@ -388,7 +388,7 @@ module Bade
388
388
  when :code
389
389
  value = node.value.strip
390
390
 
391
- %w[end else }].include?(value) || value.match(/^(when|elsif) /) || value.match(/^\./)
391
+ value.match(/^(end|else|\}|class)\b/) || value.match(/^(when|elsif) /) || value.match(/^\./)
392
392
  when :newline
393
393
  true
394
394
  else
@@ -127,6 +127,7 @@ module Bade
127
127
  def __tag_render_attribute(name, *values)
128
128
  values = values
129
129
  .compact
130
+ .map(&:to_s)
130
131
  .map { |value| __html_escaped(value) }
131
132
  return if values.empty?
132
133
 
data/lib/bade/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Bade
4
- VERSION = '0.3.10'.freeze
4
+ VERSION = '0.3.11'.freeze
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bade
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roman Kříž