victor 0.2.4 → 0.2.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +11 -3
- data/lib/victor/templates/html.svg +5 -1
- data/lib/victor/templates/minimal.svg +4 -0
- data/lib/victor/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 6fa0d0c7d1fc0d5ddbe1ee2c4a4e121e4bd8d0dc3b2fc1f464fd0fa4434cb4be
|
|
4
|
+
data.tar.gz: 022fdb964984b46f65f632e0043763a7bbd803f21438ef58c5ae8032d9aca783
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 285bb875277c25d24f06f10f44e632ff4ee03897c16b25e5af4c793a6b5a93632d976f1017cdada5cef61f3d68b3008955694868e0c22bc57e0da56ef6a64adb
|
|
7
|
+
data.tar.gz: 2f3371599bd094418c0e6f0ea656723f1a335983abfe1af0cdce032032fa4e05b1263f9ef3b2062f6a8195a6543a25f4e08d7fb7a72e5178812d2f7295710417
|
data/README.md
CHANGED
|
@@ -7,14 +7,13 @@ Victor - Ruby SVG Image Builder
|
|
|
7
7
|
[](https://travis-ci.com/DannyBen/victor)
|
|
8
8
|
[](https://www.codacy.com/app/db/victor?utm_source=github.com&utm_medium=referral&utm_content=DannyBen/victor&utm_campaign=Badge_Grade)
|
|
9
9
|
[](https://codeclimate.com/github/DannyBen/victor/maintainability)
|
|
10
|
-
[](https://codeclimate.com/github/DannyBen/victor/test_coverage)
|
|
11
10
|
|
|
12
11
|
---
|
|
13
12
|
|
|
14
13
|
Victor is a direct Ruby-to-SVG builder. All method calls are converted
|
|
15
14
|
directly to SVG elements.
|
|
16
15
|
|
|
17
|
-

|
|
16
|
+

|
|
18
17
|
|
|
19
18
|
---
|
|
20
19
|
|
|
@@ -29,6 +28,7 @@ Table of Contents
|
|
|
29
28
|
* [SVG Templates](#svg-templates)
|
|
30
29
|
* [CSS](#css)
|
|
31
30
|
* [Using with Rails](#using-with-rails)
|
|
31
|
+
* [Related Projects](#related-projects)
|
|
32
32
|
|
|
33
33
|
---
|
|
34
34
|
|
|
@@ -248,7 +248,7 @@ inside HTML, you can change the SVG template:
|
|
|
248
248
|
|
|
249
249
|
```ruby
|
|
250
250
|
svg = Victor::SVG.new template: :html
|
|
251
|
-
# accepts :html, :default or a filename
|
|
251
|
+
# accepts :html, :minimal, :default or a filename
|
|
252
252
|
```
|
|
253
253
|
|
|
254
254
|
You can also point it to any other template file:
|
|
@@ -325,8 +325,16 @@ Using with Rails
|
|
|
325
325
|
See the [example_rails](example_rails) folder.
|
|
326
326
|
|
|
327
327
|
|
|
328
|
+
Related Projects
|
|
329
|
+
--------------------------------------------------
|
|
330
|
+
|
|
331
|
+
[Icodi] is a Ruby gem that uses Victor to generate consistent random icon
|
|
332
|
+
images, similar to GitHub's identicon.
|
|
333
|
+
|
|
334
|
+
[][icodi]
|
|
328
335
|
|
|
329
336
|
---
|
|
330
337
|
|
|
331
338
|
[examples]: https://github.com/DannyBen/victor/tree/master/examples#examples
|
|
332
339
|
[templates]: https://github.com/DannyBen/victor/tree/master/lib/victor/templates
|
|
340
|
+
[icodi]: https://github.com/DannyBen/icodi
|
data/lib/victor/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: victor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.2.
|
|
4
|
+
version: 0.2.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Danny Ben Shitrit
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date:
|
|
11
|
+
date: 2019-05-27 00:00:00.000000000 Z
|
|
12
12
|
dependencies: []
|
|
13
13
|
description: Build SVG images with ease
|
|
14
14
|
email: db@dannyben.com
|
|
@@ -24,6 +24,7 @@ files:
|
|
|
24
24
|
- lib/victor/svg_base.rb
|
|
25
25
|
- lib/victor/templates/default.svg
|
|
26
26
|
- lib/victor/templates/html.svg
|
|
27
|
+
- lib/victor/templates/minimal.svg
|
|
27
28
|
- lib/victor/version.rb
|
|
28
29
|
homepage: https://github.com/DannyBen/victor
|
|
29
30
|
licenses:
|
|
@@ -37,15 +38,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
|
37
38
|
requirements:
|
|
38
39
|
- - ">="
|
|
39
40
|
- !ruby/object:Gem::Version
|
|
40
|
-
version: 2.
|
|
41
|
+
version: 2.3.0
|
|
41
42
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
42
43
|
requirements:
|
|
43
44
|
- - ">="
|
|
44
45
|
- !ruby/object:Gem::Version
|
|
45
46
|
version: '0'
|
|
46
47
|
requirements: []
|
|
47
|
-
|
|
48
|
-
rubygems_version: 2.7.6
|
|
48
|
+
rubygems_version: 3.0.3
|
|
49
49
|
signing_key:
|
|
50
50
|
specification_version: 4
|
|
51
51
|
summary: SVG Builder
|