svg2img 0.2.0-arm64-darwin → 0.2.2-arm64-darwin

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: 9212050550eed8ed65cdbcbf3c026044f49f2812d91da62182ee22fc0a60a641
4
- data.tar.gz: 0b7fe777e6ae87e7f0a37894de5762d5a7dd9fbf04c788df29b68ed53555bb45
3
+ metadata.gz: c11516333bc7acf468f7739505789dc21d58cf1da82344c5211e42e19bf0b674
4
+ data.tar.gz: 6cf06b34d9a5faca3cca098d6f2a781fa02289dda09abe83fe8a536f5e962069
5
5
  SHA512:
6
- metadata.gz: d3973273fe4630e75f1d9a3e480c308d844d147a3e52a18284dd1e6f35b438071ec45a1fb93911708593675a4fe35dff1c250f81edb7803333b985d7e239b40b
7
- data.tar.gz: 9053eeb34df6ff0e4c4416c82265698268729477da3a23a94876c9dadad016eedc864ccf94941660fc0155c05bac73472db11f091de500f556307fbb1955e4ac
6
+ metadata.gz: 5c42e645d05e340962c300fae6afc9319aa4c6ea2869771744fea770f7a3b8b653b43ef086a0e2c2e2bd7b377999da08de16983d505b6fe56a4d7a3fa057730e
7
+ data.tar.gz: 6f80043b14946ee763044944dd9f0ec5aceca9756a96184eb93ec7fbca016a4a42c82bd6a4b100bf471bfcf57eb08aa9f084da82dce57ee5afce793f5ef346fb
data/README.md CHANGED
@@ -40,6 +40,11 @@ bundle lock --add-platform arm64-darwin # Apple Silicon MacOS (i.e. M1)
40
40
 
41
41
  ## Usage
42
42
 
43
+ ```ruby
44
+ require "svg2img"
45
+ Svg2Img.process_svg(svg_string, options)
46
+ ```
47
+
43
48
  Example usage:
44
49
 
45
50
  ```ruby
@@ -66,6 +71,7 @@ send_data(png_data, type: 'image/png', disposition: 'inline')
66
71
  ### Options
67
72
 
68
73
  - `format` - output format, one of `:png`, `:jpg`, `:webp`, `:gif`
74
+ - `output_path` - path to the output image. If not provided, a temporary file will be created and the path to it will be returned.
69
75
  - `size` - size of the output image as a proc that receives the width and height of the SVG and returns an array with the width and height of the output image. If the provides size has a different aspect ratio than the SVG, the image will be resized to fit in the center of the provided size. If not provided, the output image will have the same size as the SVG.
70
76
 
71
77
  ## Development
Binary file
Binary file
Binary file
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Svg2Img
4
- VERSION = "0.2.0"
4
+ VERSION = "0.2.2"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svg2img
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.2
5
5
  platform: arm64-darwin
6
6
  authors:
7
7
  - Orvar Segerström
@@ -20,6 +20,7 @@ files:
20
20
  - LICENSE.txt
21
21
  - README.md
22
22
  - lib/svg2img.rb
23
+ - lib/svg2img/3.1/svg2img.bundle
23
24
  - lib/svg2img/3.2/svg2img.bundle
24
25
  - lib/svg2img/3.3/svg2img.bundle
25
26
  - lib/svg2img/version.rb
@@ -38,7 +39,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
38
39
  requirements:
39
40
  - - ">="
40
41
  - !ruby/object:Gem::Version
41
- version: '3.2'
42
+ version: '3.1'
42
43
  - - "<"
43
44
  - !ruby/object:Gem::Version
44
45
  version: 3.4.dev