Skip to content

Commit

Permalink
Fix and bump version
Browse files Browse the repository at this point in the history
  • Loading branch information
AlexBeznoss committed Nov 8, 2023
1 parent 124b363 commit afe35f8
Show file tree
Hide file tree
Showing 5 changed files with 12 additions and 5 deletions.
2 changes: 1 addition & 1 deletion Cargo.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
svg_guardian (0.0.3)
svg_guardian (0.0.4)
rb_sys (>= 0.9.63)

GEM
Expand Down
2 changes: 1 addition & 1 deletion ext/svg_guardian/Cargo.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[package]
name = "svg_guardian"
version = "0.0.3"
version = "0.0.4"
edition = "2021"
authors = ["Alex Beznos <alex@yuma.ai>"]
license = "MIT"
Expand Down
9 changes: 8 additions & 1 deletion lib/svg_guardian.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,14 @@
# frozen_string_literal: true

begin
# load the precompiled extension file
ruby_version = /(\d+\.\d+)/.match(::RUBY_VERSION)
require_relative "svg_guardian/#{ruby_version}/svg_guardian"
rescue LoadError
require "svg_guardian/svg_guardian"
end

require_relative "svg_guardian/version"
require_relative "svg_guardian/svg_guardian"

module SvgGuardian
class SanitizeError < StandardError; end
Expand Down
2 changes: 1 addition & 1 deletion lib/svg_guardian/version.rb
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
# frozen_string_literal: true

module SvgGuardian
VERSION = "0.0.3"
VERSION = "0.0.4"
end

0 comments on commit afe35f8

Please sign in to comment.