svg_guardian 0.0.2-x64-mingw32

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA256:
3
+ metadata.gz: 9c395b55f33f92b61c0ca649d7e46085d433a57682700e43c6039c10b5f8e9b1
4
+ data.tar.gz: f69d468712ececa8aec4431723c9ea6c2b0494ff073195330db64d69117648aa
5
+ SHA512:
6
+ metadata.gz: 3fc004faff0f9aed889afbc26c2ee22947134c86ccdf6c58cdb6aef29617b15b8cec52c41272d0a0329fa973bf196e866ff1f6c6bf920d4fa457483c8b36dd73
7
+ data.tar.gz: 6b230cdd09737b18b1e1e41bac1e6bcd48984f91f953ccf02fb83fa5baa65dd4e2be7b50f3f17a7e1ce8624390e23924ef06119b7741f0e35fe643d7a203dc12
data/README.md ADDED
@@ -0,0 +1,31 @@
1
+ # SvgGuardian
2
+
3
+ Tiny wrapper around [svg-hush](https://github.com/cloudflare/svg-hush) to sanitize SVGs.
4
+
5
+ ## Usage
6
+
7
+ Add SvgGuardian to your `Gemfile`:
8
+
9
+ ```
10
+ gem 'svg_guardian'
11
+ ```
12
+
13
+ To sanitize SVG file call `#sanitize` method:
14
+
15
+ ```ruby
16
+ SvgGuardian.sanitize("your svg file content")
17
+ ```
18
+
19
+ ## Development
20
+
21
+ After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake test` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
22
+
23
+ To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
24
+
25
+ ## Contributing
26
+
27
+ Bug reports and pull requests are welcome on GitHub at https://github.com/Yuma-AI/svg_guardian.
28
+
29
+ ## License
30
+
31
+ The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
@@ -0,0 +1,5 @@
1
+ # frozen_string_literal: true
2
+
3
+ module SvgGuardian
4
+ VERSION = "0.0.2"
5
+ end
@@ -0,0 +1,9 @@
1
+ # frozen_string_literal: true
2
+
3
+ require_relative "svg_guardian/version"
4
+ require_relative "svg_guardian/svg_guardian"
5
+
6
+ module SvgGuardian
7
+ class SanitizeError < StandardError; end
8
+ # Your code goes here...
9
+ end
metadata ADDED
@@ -0,0 +1,52 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: svg_guardian
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: x64-mingw32
6
+ authors:
7
+ - Alex Beznos
8
+ autorequire:
9
+ bindir: exe
10
+ cert_chain: []
11
+ date: 2023-11-07 00:00:00.000000000 Z
12
+ dependencies: []
13
+ description:
14
+ email:
15
+ - alex@yuma.ai
16
+ executables: []
17
+ extensions: []
18
+ extra_rdoc_files: []
19
+ files:
20
+ - README.md
21
+ - lib/svg_guardian.rb
22
+ - lib/svg_guardian/3.0/svg_guardian.so
23
+ - lib/svg_guardian/version.rb
24
+ homepage: https://github.com/Yuma-AI/svg_guardian
25
+ licenses:
26
+ - MIT
27
+ metadata:
28
+ homepage_uri: https://github.com/Yuma-AI/svg_guardian
29
+ source_code_uri: https://github.com/Yuma-AI/svg_guardian
30
+ post_install_message:
31
+ rdoc_options: []
32
+ require_paths:
33
+ - lib
34
+ required_ruby_version: !ruby/object:Gem::Requirement
35
+ requirements:
36
+ - - ">="
37
+ - !ruby/object:Gem::Version
38
+ version: '3.0'
39
+ - - "<"
40
+ - !ruby/object:Gem::Version
41
+ version: 3.1.dev
42
+ required_rubygems_version: !ruby/object:Gem::Requirement
43
+ requirements:
44
+ - - ">="
45
+ - !ruby/object:Gem::Version
46
+ version: 3.3.11
47
+ requirements: []
48
+ rubygems_version: 3.4.4
49
+ signing_key:
50
+ specification_version: 4
51
+ summary: Tiny wrapper around svg-hush to sanitize SVGs.
52
+ test_files: []