stylicon 0.1.2 → 0.1.3

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: b83f6b94512407132c31182fd748dfc88717750dec0c43b9ee0124a4c07ced0b
4
- data.tar.gz: 92d6a6411a68168c19604d842ad51ed6f94d4d2ce99d4569470f3eb3940c4100
3
+ metadata.gz: cbcc1860c16abaab6fd74a213acd88046cee962bfa8b3c717d75788072ce16c9
4
+ data.tar.gz: 47940bec8c9086f935eae057a3534222e921072d6f487fa566dcad77c6a7b37f
5
5
  SHA512:
6
- metadata.gz: f79e90f11efd27d9895e5b58db06d40bcfd54a97d2a4239be5ad74e562141f22f452183f40b2d9d75b7f461d589094e4d21913aad3cb06b0ba6f884323bbd66d
7
- data.tar.gz: d04f7187a642776b29d2c8b49136feac297103dbf26e424e98df97425d29b961ba383e80d6a26b46da27512955c6dcb4be4dd62532e1904e00379faae39c1fd0
6
+ metadata.gz: bf1d5a3aa8158b1f06f2c2677b1bc6f0ab7894538a8cdf82d19754e3010b66a84b59908b9cb873f43a7cae8a70e4f2724dd9473fcc75f5527b7adc8bfda85fee
7
+ data.tar.gz: b363134a914332802a5b8ec584aaf892a9d51aa3ba8fa1f283d72fba3b98fe179ae284b6ab329bee8054c2ffecc38e6523c66b9b4c0deda288e8cf809456a2de
data/bin/stylicon CHANGED
@@ -3,6 +3,23 @@
3
3
 
4
4
  require_relative "../lib/stylicon"
5
5
  require_relative "../lib/stylicon/generator"
6
+ require_relative "../lib/stylicon/transformer"
7
+
8
+ if ARGV[0] == "--transform-svg"
9
+ input = ARGV[1]
10
+ out = ARGV[ARGV.index("--out") + 1]
11
+ style = ARGV.include?("--style") ? ARGV[ARGV.index("--style") + 1] : nil
12
+ classes = ARGV.include?("--classes") ? ARGV[ARGV.index("--classes") + 1] : nil
13
+
14
+ Stylicon::Transformer.new(
15
+ input_svg: input,
16
+ output_svg: out,
17
+ style: style,
18
+ classes: classes
19
+ ).transform
20
+
21
+ exit 0
22
+ end
6
23
 
7
24
  config = ARGV[0] || "icons.yml"
8
25
  output = ARGV[1] || "stylicon.css"
@@ -15,9 +15,6 @@ module Stylicon
15
15
 
16
16
  config.each do |name, opts|
17
17
  path = opts["path"]
18
- fill = opts["fill"]
19
- width = opts["width"]
20
- height = opts["height"]
21
18
  classes = Array(opts["class"] || ".icon-#{name}")
22
19
  background = opts["background"]
23
20
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Stylicon
4
- VERSION = "0.1.2"
4
+ VERSION = "0.1.3"
5
5
  end
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: stylicon
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - JG
@@ -34,6 +34,7 @@ files:
34
34
  - sig/stylicon.rbs
35
35
  - stylicon-0.1.0.gem
36
36
  - stylicon-0.1.1.gem
37
+ - stylicon-0.1.2.gem
37
38
  - stylicon.css
38
39
  homepage: https://github.com/JuanGuiricich/stylicon
39
40
  licenses: