svg_guardian 0.0.3-x86_64-darwin → 0.0.5-x86_64-darwin

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d8e1dff519e7b06c2187a41f010a91f4b1db9c8075e6a4f1633ed90dc749afdc
4
- data.tar.gz: a804c47c5eeff9952c57f6e2515295923ca04643769c22bce672cc7fcc05b933
3
+ metadata.gz: 256344d8590b810ccdc9b8a56e9446ed7cb436e7fc6341dfa27c4ae570386000
4
+ data.tar.gz: 1a3dcbe53e927cb996a96c90830ea2ee92d2ce922219df3d69ff2bb895e9dcfd
5
5
  SHA512:
6
- metadata.gz: 96e254eba99bad10e769d485707c63fd9c09e60d04fdb3da18f11da5409efac4e351d214b579ad96f0b9c673a85da1451bf756eb7ed8c060bff6ad03f91d56d6
7
- data.tar.gz: fa12f24d278c66e53b8d4476bb1a5cbcf60faa2b1a2b4c0b3ef3e25df29ce11b2c3b7f6c893be646ea8dd6f7c44c8162a64b6b9ac4f173050a4714de4eb44e0c
6
+ metadata.gz: d436804f11d5f85877396b7ec553c84d3a84f209ccce529faba88580f41deb37ce43a074f17c738460ea50ba9a36e980d2f6d867ff05ab11296fc80a2ca9032b
7
+ data.tar.gz: ed24fd44c4f2f457da779571e208a878a31818b9609e531fd378aa1aac8d1ad10c9531edd6286c49ccbbb5dd0a8c61d289fbbd8dba9ca880318a66c0abfe3e62
data/Rakefile CHANGED
@@ -10,8 +10,6 @@ Rake::TestTask.new(:test) do |t|
10
10
  t.test_files = FileList["test/**/test_*.rb"]
11
11
  end
12
12
 
13
- require "standard/rake"
14
-
15
13
  spec = Bundler.load_gemspec("svg_guardian.gemspec")
16
14
 
17
15
  RbSys::ExtensionTask.new("svg_guardian", spec) do |ext|
@@ -20,4 +18,4 @@ RbSys::ExtensionTask.new("svg_guardian", spec) do |ext|
20
18
  end
21
19
 
22
20
  task build: :compile
23
- task default: %i[compile test standard]
21
+ task default: %i[compile test]
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module SvgGuardian
4
- VERSION = "0.0.3"
4
+ VERSION = "0.0.5"
5
5
  end
data/lib/svg_guardian.rb CHANGED
@@ -1,7 +1,14 @@
1
1
  # frozen_string_literal: true
2
2
 
3
+ begin
4
+ # load the precompiled extension file
5
+ ruby_version = /(\d+\.\d+)/.match(::RUBY_VERSION)
6
+ require_relative "svg_guardian/#{ruby_version}/svg_guardian"
7
+ rescue LoadError
8
+ require "svg_guardian/svg_guardian"
9
+ end
10
+
3
11
  require_relative "svg_guardian/version"
4
- require_relative "svg_guardian/svg_guardian"
5
12
 
6
13
  module SvgGuardian
7
14
  class SanitizeError < StandardError; end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svg_guardian
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.5
5
5
  platform: x86_64-darwin
6
6
  authors:
7
7
  - Alex Beznos
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-11-08 00:00:00.000000000 Z
11
+ date: 2024-05-06 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email:
@@ -21,9 +21,9 @@ files:
21
21
  - README.md
22
22
  - Rakefile
23
23
  - lib/svg_guardian.rb
24
- - lib/svg_guardian/3.0/svg_guardian.bundle
25
24
  - lib/svg_guardian/3.1/svg_guardian.bundle
26
25
  - lib/svg_guardian/3.2/svg_guardian.bundle
26
+ - lib/svg_guardian/3.3/svg_guardian.bundle
27
27
  - lib/svg_guardian/version.rb
28
28
  homepage: https://github.com/Yuma-AI/svg_guardian
29
29
  licenses:
@@ -39,10 +39,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
39
39
  requirements:
40
40
  - - ">="
41
41
  - !ruby/object:Gem::Version
42
- version: '3.0'
42
+ version: '3.1'
43
43
  - - "<"
44
44
  - !ruby/object:Gem::Version
45
- version: 3.3.dev
45
+ version: 3.4.dev
46
46
  required_rubygems_version: !ruby/object:Gem::Requirement
47
47
  requirements:
48
48
  - - ">="