ruby-tags 0.1.1 → 0.2.0

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/ruby/tags/attribute.rb +1 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 5235987a8b3502115dea45813c0950bf5c3172ef3fe6ca97c2c5e2adfa6f75fd
4
- data.tar.gz: ba081fa62df4aba26a0c8a5f2f070b35436fb52adbe13df308ef144cba95acdd
3
+ metadata.gz: fe1341c5ff4333323fdc37ab83727ab76eaa233daf8bf3161a4e8a5b1d975831
4
+ data.tar.gz: 9bc581048a57f0808768d46c13c20d662f5439e2c4232add7738cd72d37ab757
5
5
  SHA512:
6
- metadata.gz: f79d952b06e11dc2f540bfc949b472ead5234084567ba876e85d8417d949df6e95aba65df35d7a32e3b8113795020b723f9545a9fc739960288ae8d393fc4740
7
- data.tar.gz: 3932246fc5fc04afd676c682ab3b9382673ea6b16d6a740f180eb0a379ce711c8ceede55193025e743616ea11d481c0e36c2d9a353a50434e95075f8bfacbd07
6
+ metadata.gz: f295cf2ebca4729daaedf9b42077dae47810eee83a09985b8af2f719b2a5cd2e83f1b63d15b875d8d056afc2b696c90a12ce99b270eb48bf5fef785229e2efd0
7
+ data.tar.gz: 635a35110e8c99001e07bb8fdb21df93a48d32b16f0bfb9bf43f54b732058c4b822adb589dfdfde17fe3fa2ad4223b108ed69c6cf85253c57a7e80438fdcb6da
@@ -33,7 +33,7 @@ module Ruby
33
33
  end
34
34
 
35
35
  def render
36
- @attributes.reject{ |k,v| [k,v].any? { |x| blank? x } }
36
+ @attributes.reject{ |k, _| blank? k }
37
37
  .reduce(@attributes.empty? && "" || " ") { |m, (k, a)| "#{m}#{k}='#{sanitize(a)}' " }
38
38
  .delete_suffix(" ")
39
39
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-tags
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - manlioGit
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-03-07 00:00:00.000000000 Z
11
+ date: 2021-03-14 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: