svg_guardian 0.0.2-aarch64-linux
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +31 -0
- data/lib/svg_guardian/3.0/svg_guardian.so +0 -0
- data/lib/svg_guardian/3.1/svg_guardian.so +0 -0
- data/lib/svg_guardian/3.2/svg_guardian.so +0 -0
- data/lib/svg_guardian/version.rb +5 -0
- data/lib/svg_guardian.rb +9 -0
- metadata +54 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2e8902fdabb8aecf592cb6774343e25d77d37200825dafcadf9b3496b41e88dc
|
4
|
+
data.tar.gz: d02a02cbcc45cf76f7a2b0436816191c91f0b46d54be63fc50d608afba9df46d
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 8525fb40ce8d70e28d9cde6923ca4a831d203f304e65700ca56ccff8db5af8d4b803fbfc0aef92940d11ad6bd441de26e4b2acd09fcd67a9c4c0a1584892c6bf
|
7
|
+
data.tar.gz: 345852f887ee5bf3f7eeb153b88d1c363eefd9e14530354d7e29cd5c23317af45e82aa99205d2c70fe23eb4cc8ae1f47ff35dd50b0f539cca5843b422565dc7e
|
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).
|
Binary file
|
Binary file
|
Binary file
|
data/lib/svg_guardian.rb
ADDED
metadata
ADDED
@@ -0,0 +1,54 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: svg_guardian
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
platform: aarch64-linux
|
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/3.1/svg_guardian.so
|
24
|
+
- lib/svg_guardian/3.2/svg_guardian.so
|
25
|
+
- lib/svg_guardian/version.rb
|
26
|
+
homepage: https://github.com/Yuma-AI/svg_guardian
|
27
|
+
licenses:
|
28
|
+
- MIT
|
29
|
+
metadata:
|
30
|
+
homepage_uri: https://github.com/Yuma-AI/svg_guardian
|
31
|
+
source_code_uri: https://github.com/Yuma-AI/svg_guardian
|
32
|
+
post_install_message:
|
33
|
+
rdoc_options: []
|
34
|
+
require_paths:
|
35
|
+
- lib
|
36
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ">="
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '3.0'
|
41
|
+
- - "<"
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: 3.3.dev
|
44
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
45
|
+
requirements:
|
46
|
+
- - ">="
|
47
|
+
- !ruby/object:Gem::Version
|
48
|
+
version: 3.3.11
|
49
|
+
requirements: []
|
50
|
+
rubygems_version: 3.4.4
|
51
|
+
signing_key:
|
52
|
+
specification_version: 4
|
53
|
+
summary: Tiny wrapper around svg-hush to sanitize SVGs.
|
54
|
+
test_files: []
|