svg_guardian 0.0.3-x86_64-linux → 0.0.5-x86_64-linux

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: 004b9bfcf063d417af17d89101a1e0fc8ed4aaf02b2a2420e868ff486f9be44c
4
- data.tar.gz: ebaaf084a4a9acb4c0d585ac7dc2badde795707b845a4d000095624314ad0271
3
+ metadata.gz: 702d7c9fd6eb84656e2821d3d7cf99533f7c27394dfdb561ee69446f64eb5c92
4
+ data.tar.gz: ba1bca07936f2c8feb45f8165a46dc1daf4ce170330d12e91e4a7ec65ae846d3
5
5
  SHA512:
6
- metadata.gz: cb0db5ec9a32a73a6f7f9091b3cbb0f5f73ac1621f0e39cad002064f65ceb98226ed3b3c65a95c5f8498bcb83a3802bbc2d557ff66989d72bce8d41816546b02
7
- data.tar.gz: 2d85286b5cd854af50b953e314193e30cea456771e331ce59df7491a595e3129e199c73fad0911b1ba13faeb44b430bb2cfc61234e1bdd84eef86f6531a060c3
6
+ metadata.gz: ed551bb29accfb11f609f58826acc1e3a3e4a5c89fb7d9151b1f83a6633f025a1182c016e9071ea9ef6206528c9db87c01420f8f99e2e54df26c0eb7b10855d1
7
+ data.tar.gz: 70999c3915843f82c85d55263c35cad45b8aa0a7733d074f057d92539c6f4b310a68c87cb8653582b8d2f7fd01df62377a6ae7ade71810926b5ce6276abc12e1
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]
Binary file
Binary file
@@ -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-linux
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.so
25
24
  - lib/svg_guardian/3.1/svg_guardian.so
26
25
  - lib/svg_guardian/3.2/svg_guardian.so
26
+ - lib/svg_guardian/3.3/svg_guardian.so
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
  - - ">="
Binary file