svg2img 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.
@@ -0,0 +1,7 @@
1
+ # This Cargo.toml is here to let externals tools (IDEs, etc.) know that this is
2
+ # a Rust project. Your extensions dependencies should be added to the Cargo.toml
3
+ # in the ext/ directory.
4
+
5
+ [workspace]
6
+ members = ["./ext/svg2img"]
7
+ resolver = "2"
@@ -0,0 +1,17 @@
1
+ [package]
2
+ name = "svg2img"
3
+ version = "0.1.0"
4
+ edition = "2021"
5
+ authors = ["Orvar Segerström <orvarsegerstrom@gmail.com>"]
6
+ license = "MIT"
7
+ publish = false
8
+
9
+ [lib]
10
+ crate-type = ["cdylib"]
11
+
12
+ [dependencies]
13
+ anyhow = "1.0.86"
14
+ image = "0.25.2"
15
+ magnus = { version = "0.6.2" }
16
+ resvg = "0.43.0"
17
+ uuid = { version = "1.10.0", features = ["v4"] }
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.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Orvar Segerström
@@ -9,32 +9,44 @@ autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
11
  date: 1980-01-01 00:00:00.000000000 Z
12
- dependencies: []
12
+ dependencies:
13
+ - !ruby/object:Gem::Dependency
14
+ name: rb_sys
15
+ requirement: !ruby/object:Gem::Requirement
16
+ requirements:
17
+ - - "~>"
18
+ - !ruby/object:Gem::Version
19
+ version: '0.9'
20
+ type: :runtime
21
+ prerelease: false
22
+ version_requirements: !ruby/object:Gem::Requirement
23
+ requirements:
24
+ - - "~>"
25
+ - !ruby/object:Gem::Version
26
+ version: '0.9'
13
27
  description:
14
28
  email:
15
29
  - orvarsegerstrom@gmail.com
16
30
  executables: []
17
31
  extensions:
18
- - ext/svg2img/Cargo.toml
32
+ - ext/svg2img/extconf.rb
19
33
  extra_rdoc_files: []
20
34
  files:
21
- - ".envrc"
22
- - ".rspec"
23
- - ".ruby-version"
24
- - CHANGELOG.md
25
35
  - Cargo.lock
26
36
  - Cargo.toml
27
37
  - LICENSE.txt
28
38
  - README.md
29
- - Rakefile
30
39
  - ext/svg2img/Cargo.toml
31
40
  - ext/svg2img/extconf.rb
32
41
  - ext/svg2img/src/lib.rs
33
- - flake.lock
34
- - flake.nix
35
42
  - lib/svg2img.rb
36
43
  - lib/svg2img/version.rb
37
- - sig/svg2img.rbs
44
+ - tmp/arm64-darwin23/stage/Cargo.lock
45
+ - tmp/arm64-darwin23/stage/Cargo.toml
46
+ - tmp/arm64-darwin23/stage/ext/svg2img/Cargo.toml
47
+ - tmp/arm64-darwin23/stage/tmp/arm64-darwin23/stage/Cargo.lock
48
+ - tmp/arm64-darwin23/stage/tmp/arm64-darwin23/stage/Cargo.toml
49
+ - tmp/arm64-darwin23/stage/tmp/arm64-darwin23/stage/ext/svg2img/Cargo.toml
38
50
  homepage: https://github.com/0rvar/svg2img-rb
39
51
  licenses:
40
52
  - MIT
@@ -50,7 +62,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
50
62
  requirements:
51
63
  - - ">="
52
64
  - !ruby/object:Gem::Version
53
- version: 3.0.0
65
+ version: 3.1.0
54
66
  required_rubygems_version: !ruby/object:Gem::Requirement
55
67
  requirements:
56
68
  - - ">="
@@ -60,5 +72,5 @@ requirements: []
60
72
  rubygems_version: 3.5.9
61
73
  signing_key:
62
74
  specification_version: 4
63
- summary: Convert svg to png, jpg, or webp
75
+ summary: Convert svg to png, jpg, or webp, with no runtime dependencies.
64
76
  test_files: []
data/.envrc DELETED
@@ -1 +0,0 @@
1
- use_flake . --impure
data/.rspec DELETED
@@ -1 +0,0 @@
1
- --require spec_helper
data/.ruby-version DELETED
@@ -1 +0,0 @@
1
- 3.3.2
data/CHANGELOG.md DELETED
@@ -1,5 +0,0 @@
1
- ## [Unreleased]
2
-
3
- ## [0.1.0] - 2024-08-17
4
-
5
- - Initial release
data/Rakefile DELETED
@@ -1,14 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require "bundler/gem_tasks"
4
- require "rb_sys/extensiontask"
5
-
6
- task build: :compile
7
-
8
- GEMSPEC = Gem::Specification.load("svg2img.gemspec")
9
-
10
- RbSys::ExtensionTask.new("svg2img", GEMSPEC) do |ext|
11
- ext.lib_dir = "lib/svg2img"
12
- end
13
-
14
- task default: :compile
data/flake.lock DELETED
@@ -1,99 +0,0 @@
1
- {
2
- "nodes": {
3
- "flake-compat": {
4
- "flake": false,
5
- "locked": {
6
- "lastModified": 1696426674,
7
- "narHash": "sha256-kvjfFW7WAETZlt09AgDn1MrtKzP7t90Vf7vypd3OL1U=",
8
- "owner": "edolstra",
9
- "repo": "flake-compat",
10
- "rev": "0f9255e01c2351cc7d116c072cb317785dd33b33",
11
- "type": "github"
12
- },
13
- "original": {
14
- "owner": "edolstra",
15
- "repo": "flake-compat",
16
- "type": "github"
17
- }
18
- },
19
- "flake-utils": {
20
- "inputs": {
21
- "systems": "systems"
22
- },
23
- "locked": {
24
- "lastModified": 1694529238,
25
- "narHash": "sha256-zsNZZGTGnMOf9YpHKJqMSsa0dXbfmxeoJ7xHlrt+xmY=",
26
- "owner": "numtide",
27
- "repo": "flake-utils",
28
- "rev": "ff7b65b44d01cf9ba6a71320833626af21126384",
29
- "type": "github"
30
- },
31
- "original": {
32
- "owner": "numtide",
33
- "repo": "flake-utils",
34
- "type": "github"
35
- }
36
- },
37
- "nixpkgs": {
38
- "locked": {
39
- "lastModified": 1709961763,
40
- "narHash": "sha256-6H95HGJHhEZtyYA3rIQpvamMKAGoa8Yh2rFV29QnuGw=",
41
- "owner": "NixOS",
42
- "repo": "nixpkgs",
43
- "rev": "3030f185ba6a4bf4f18b87f345f104e6a6961f34",
44
- "type": "github"
45
- },
46
- "original": {
47
- "owner": "NixOS",
48
- "ref": "nixos-unstable",
49
- "repo": "nixpkgs",
50
- "type": "github"
51
- }
52
- },
53
- "nixpkgs-ruby": {
54
- "inputs": {
55
- "flake-compat": "flake-compat",
56
- "flake-utils": "flake-utils",
57
- "nixpkgs": [
58
- "nixpkgs"
59
- ]
60
- },
61
- "locked": {
62
- "lastModified": 1722577194,
63
- "narHash": "sha256-nWLATuXQYs/AHFxC9mi/uo6mVUz6nFYcWNd6flGCxVk=",
64
- "owner": "bobvanderlinden",
65
- "repo": "nixpkgs-ruby",
66
- "rev": "b2ac79f24e50faac5d4ce3a878b7a9f0270fa2bd",
67
- "type": "github"
68
- },
69
- "original": {
70
- "owner": "bobvanderlinden",
71
- "repo": "nixpkgs-ruby",
72
- "type": "github"
73
- }
74
- },
75
- "root": {
76
- "inputs": {
77
- "nixpkgs": "nixpkgs",
78
- "nixpkgs-ruby": "nixpkgs-ruby"
79
- }
80
- },
81
- "systems": {
82
- "locked": {
83
- "lastModified": 1681028828,
84
- "narHash": "sha256-Vy1rq5AaRuLzOxct8nz4T6wlgyUR7zLU309k9mBC768=",
85
- "owner": "nix-systems",
86
- "repo": "default",
87
- "rev": "da67096a3b9bf56a91d16901293e51ba5b49a27e",
88
- "type": "github"
89
- },
90
- "original": {
91
- "owner": "nix-systems",
92
- "repo": "default",
93
- "type": "github"
94
- }
95
- }
96
- },
97
- "root": "root",
98
- "version": 7
99
- }
data/flake.nix DELETED
@@ -1,62 +0,0 @@
1
- {
2
- description = "Devshell with all the dependencies needed to develop and build the project";
3
-
4
- inputs = {
5
- nixpkgs.url = "github:NixOS/nixpkgs/nixos-unstable";
6
- nixpkgs-ruby.url = "github:bobvanderlinden/nixpkgs-ruby";
7
- nixpkgs-ruby.inputs.nixpkgs.follows = "nixpkgs";
8
- };
9
-
10
-
11
- outputs = { self, nixpkgs, nixpkgs-ruby }:
12
- let
13
- # Boilerplate function for generating attributes for all systems
14
- forAllSystems = function:
15
- nixpkgs.lib.genAttrs [
16
- "x86_64-linux"
17
- "aarch64-linux"
18
- "x86_64-darwin"
19
- "aarch64-darwin"
20
- ]
21
- (system:
22
- (function (import nixpkgs {
23
- inherit system;
24
- })) system);
25
- in
26
- {
27
- packages = forAllSystems (pkgs: system:
28
- let
29
- ruby = nixpkgs-ruby.lib.packageFromRubyVersionFile {
30
- file = ./.ruby-version;
31
- inherit system;
32
- };
33
- tools = [ ruby ] ++ (with pkgs; [
34
- nodejs_20
35
- yarn
36
- mprocs
37
- ]);
38
- gemDependencies = with pkgs; [
39
- zstd
40
- libxml2
41
- libxslt
42
- imagemagick
43
- ];
44
- root = builtins.getEnv "PWD";
45
- in
46
- {
47
- default = pkgs.mkShell {
48
- buildInputs = tools ++ gemDependencies;
49
- shellHook = ''
50
- # https://github.com/sass/sassc-ruby/issues/148#issuecomment-644450274
51
- bundle config build.sassc --disable-lto
52
- export BUNDLE_BUILD__SASSC="--disable-lto"
53
-
54
- export GEM_HOME="${root}/.bundle"
55
- export GEM_PATH="${root}/.bundle"
56
- export PATH="${root}/.bundle/bin:$PATH"
57
- export RUBY_YJIT_ENABLE=1
58
- '';
59
- };
60
- });
61
- };
62
- }
data/sig/svg2img.rbs DELETED
@@ -1,4 +0,0 @@
1
- module Svg2Img
2
- VERSION: String
3
- # See the writing guide of rbs: https://github.com/ruby/rbs#guides
4
- end