svg_guardian 0.0.2-x64-mingw-ucrt

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: 90aba551630ec8c31877442cd766684ca9fdf7577b6275bb35b6b7abce32ab7b
4
+ data.tar.gz: f61ef821f6b4de2c5b6b848f2218c2bf64e8bf12f42ce7ec1e82eb9abd9c7ba0
5
+ SHA512:
6
+ metadata.gz: bb82cbe9fc59d5500fe1f86c23419c419d1c5adf9860cea87ca13a9dcbb3b2d26cf2ce7868c59c87d375b0dd22dee8ca79e674b3c3e3769da43f57b6d3b41df7
7
+ data.tar.gz: 4b0d4d6fcc145d722b15355636d90a119c00213d108f5a156be7e03dc71310439517f1153b060e31f8a3a5878e321f762921594ccefc758969b67b32b1e51f35
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,53 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: svg_guardian
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.2
5
+ platform: x64-mingw-ucrt
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.1/svg_guardian.so
23
+ - lib/svg_guardian/3.2/svg_guardian.so
24
+ - lib/svg_guardian/version.rb
25
+ homepage: https://github.com/Yuma-AI/svg_guardian
26
+ licenses:
27
+ - MIT
28
+ metadata:
29
+ homepage_uri: https://github.com/Yuma-AI/svg_guardian
30
+ source_code_uri: https://github.com/Yuma-AI/svg_guardian
31
+ post_install_message:
32
+ rdoc_options: []
33
+ require_paths:
34
+ - lib
35
+ required_ruby_version: !ruby/object:Gem::Requirement
36
+ requirements:
37
+ - - ">="
38
+ - !ruby/object:Gem::Version
39
+ version: '3.1'
40
+ - - "<"
41
+ - !ruby/object:Gem::Version
42
+ version: 3.3.dev
43
+ required_rubygems_version: !ruby/object:Gem::Requirement
44
+ requirements:
45
+ - - ">="
46
+ - !ruby/object:Gem::Version
47
+ version: 3.3.11
48
+ requirements: []
49
+ rubygems_version: 3.4.4
50
+ signing_key:
51
+ specification_version: 4
52
+ summary: Tiny wrapper around svg-hush to sanitize SVGs.
53
+ test_files: []