svg_guardian 0.0.3-x64-mingw-ucrt → 0.0.5-x64-mingw-ucrt

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: 4d459f43bde8551d2270719eae14e5dad4eaae9e0ac65a696f1157d640583978
4
- data.tar.gz: 29ecd791827fb6174507e5a3bf4946de33ce7670f05b2b262dfdeed7fa327a47
3
+ metadata.gz: 7206a6095397c0aa537d0255e2af91495ed8a5fbf6918b92f2bff89eee84cd31
4
+ data.tar.gz: ca7c8b936797db3ab530ad82e26508677fe40a1f51d4cd421b04c0bd651d0d79
5
5
  SHA512:
6
- metadata.gz: 58cc0aa06df36b5bf8946da2dad401727aaca02b9cce492376087f3b8d9c30b2e2b9e48871ece622abbdf0dbb6583b8ac0a3c7ec3603a20d855644c21297bb62
7
- data.tar.gz: 47a24960e24d9da13074ad236ff55e589a6ac7b7e69fd18548d8d31407e1bb756de36cf0d27f1545599125bf739e5d2b189673541ac262eb5c82b95aaf2e9249
6
+ metadata.gz: b5e53992acb9457c2d27e0195b5d07e93d39441ba19c9f8beb70e1df5d1643c2d7afd50b1dc352045f36a50387db3deb99a7d46a2eff6b26e62321e069647043
7
+ data.tar.gz: 995589dfd706d381ad3bdd04af1d72f232114ea6caa130f37e52084f299276bb1e74aa182770b9c72cb410901f3c96402e08c5d243a457c3da1f032545874964
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: x64-mingw-ucrt
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:
@@ -23,6 +23,7 @@ files:
23
23
  - lib/svg_guardian.rb
24
24
  - lib/svg_guardian/3.1/svg_guardian.so
25
25
  - lib/svg_guardian/3.2/svg_guardian.so
26
+ - lib/svg_guardian/3.3/svg_guardian.so
26
27
  - lib/svg_guardian/version.rb
27
28
  homepage: https://github.com/Yuma-AI/svg_guardian
28
29
  licenses:
@@ -41,7 +42,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
41
42
  version: '3.1'
42
43
  - - "<"
43
44
  - !ruby/object:Gem::Version
44
- version: 3.3.dev
45
+ version: 3.4.dev
45
46
  required_rubygems_version: !ruby/object:Gem::Requirement
46
47
  requirements:
47
48
  - - ">="