ascona 0.1.0 → 0.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
  SHA256:
3
- metadata.gz: 8287078537d984be67b63cfdce58534dbe6614bb5c917c8051caa4b9ee6183f4
4
- data.tar.gz: 1393e656146786b20803a5723a2df72568bb32e1a5da3259e869e7f282b7ad1d
3
+ metadata.gz: b96a8fcfad2c493ef7b0b877f6bde8054df80730b3738600fbb8400fb3f9fbbf
4
+ data.tar.gz: 123eda091efa88ea12fc891d98481c8cfc44efd7ec7b3f80bd51ec2474f79ec2
5
5
  SHA512:
6
- metadata.gz: e7aa21e79c9d161f1be827e30920842e8d7caf7425fa79cc27b593228a7b5f94259fd910cfba83144df8403da8efdef82fa735a4f9dfe9e6c492701e65a4c256
7
- data.tar.gz: f7acf773a8c162fed5170d03efb7026b9a013734c6bfce73aea2bef1e91677d51b6e83c40a5ba18703beffe0e09059d1903e4c7e4f649cff3074869479b5115d
6
+ metadata.gz: ba8095738e7ea2f19652e3922f9d9512380bd928c33910e739a4d92ce292bfea828823513b735bd3c6ccdc7f4a2e9b45422ae2ade0f91c25407bbed7940dcf9c
7
+ data.tar.gz: 18ee8bdcf4f298e03d061e8432b43f6500bbcc59f32773310c7fc82a641e3c05f4782abd03f1e4f8b02b39477f2bc4427f21f238c64d1969ea32744a7fbbdae1
data/lib/ascona/helper.rb CHANGED
@@ -10,9 +10,8 @@ module Ascona
10
10
  svg = Ascona.registry.get(name.to_sym, library: library.to_sym, variant: variant)
11
11
  raise ArgumentError, "Icon '#{name}' not found in library '#{library}'" unless svg
12
12
 
13
- return svg if attributes.empty?
14
-
15
- inject_attributes(svg, attributes)
13
+ svg = inject_attributes(svg, attributes) unless attributes.empty?
14
+ svg.html_safe
16
15
  end
17
16
 
18
17
  private
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Ascona
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ascona
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuenti