svg_guardian 0.0.3-x64-mingw32 → 0.0.4-x64-mingw32

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: 6b2e68b7e92ad11e0355b4e3dd21bd86297b93763779a887aced6642ad64e763
4
- data.tar.gz: dd174b09b263bcdddbe3337bbcc7b59ce409026af25abd9db425905782e33282
3
+ metadata.gz: 6c79598c60c87a4aba1a9e415ed1bf68451eb80ae285225c3b9a8706af6a14f3
4
+ data.tar.gz: cc7359e9c01e35ac764e66a9871e8a1b2fcf449bab68c2840e660485f1f5989a
5
5
  SHA512:
6
- metadata.gz: 23d2561e7804c22e6553ceb6e17cd93cd684a3bb6b5dbce5ba994a79d6b3030be14b34ba8c015bc1ee4ac51ce0caf87eff7bd6809f42bfed77526b9b93dbf67b
7
- data.tar.gz: 3a951639b18829fb3effc52d53b4f6a5a038ed2728273ffce8d98fb0cce370a4ee9ef3c0c7667568d479b0796400c1fbaffbd09d518449ea045a8a3260e7c62e
6
+ metadata.gz: 91026f5ad8cdd5d3cc45e684ea19359b0c2dcdc5a2c0c9f1b32ea16b2bd95dd438595674a3fb4ba37eded7536558650b14608972a6a47c65602d9f051fe0dae0
7
+ data.tar.gz: 42bf132a69e4d383f2daae761626978e7fd15f5bd034794c220f731e95be1b747b5ae9a296c5c59dd35b7c0d700cc68b6cffbeca80cdc2b93e33f2d9081d26d2
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.4"
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,7 +1,7 @@
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.4
5
5
  platform: x64-mingw32
6
6
  authors:
7
7
  - Alex Beznos