svg_guardian 0.0.3-x86_64-darwin → 0.0.4-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: 43e464b6dcf7b643fd6c16e6799bc8ba85b76b569c74b33ecaea8dc2d81e6852
4
+ data.tar.gz: df370a929b5eb0099b37a1d2eed0b21ee3b298f260fcd6b216a9d8b6da0b7169
5
5
  SHA512:
6
- metadata.gz: 96e254eba99bad10e769d485707c63fd9c09e60d04fdb3da18f11da5409efac4e351d214b579ad96f0b9c673a85da1451bf756eb7ed8c060bff6ad03f91d56d6
7
- data.tar.gz: fa12f24d278c66e53b8d4476bb1a5cbcf60faa2b1a2b4c0b3ef3e25df29ce11b2c3b7f6c893be646ea8dd6f7c44c8162a64b6b9ac4f173050a4714de4eb44e0c
6
+ metadata.gz: 0aa6d9470da380a2ab6a9acd9178133e86ee1567c517741e92bd8c55c0366ba210b9d9c5802cdb90311d7a7786ff22b898e4a47330bdabb2b831e22c9491b9cd
7
+ data.tar.gz: 3459d62c2e0745001e166e38d6bfbe6c6a3142dca268b1be4c786875481aa98c899a5f90b813e5a7a8e4b388e6f00c90ebdfc4945da5420f2059dbda431ce51d
@@ -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: x86_64-darwin
6
6
  authors:
7
7
  - Alex Beznos