victor 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +10 -2
- data/lib/victor/svg.rb +1 -0
- data/lib/victor/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: f0a520dfbed8f1278e8bcf7656ff0afabb7b6568c3ac3d5a5ce08c356b187c4d
|
4
|
+
data.tar.gz: 61e89f8a1da9d831bf158333f7136c1c4b6faccf937daa8d8971d908f6731fd3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 651b37bf06b3d54b5f8528620821cd48fc81ea86d8fab7f9ab5391ad0d2f441c2dacc21d56edbd4f259c759aaf2224c29852516c31fff840e99f66855080c545
|
7
|
+
data.tar.gz: 122c24b8734c02b21351a06da76373c9b899bda89f738d04613f6d4c5267fc62d8b583bf9afaa127d2b1b793583610e5e660930261a0375f51f97c53ef0cc5c7
|
data/README.md
CHANGED
@@ -174,8 +174,9 @@ svg.text "Victor", x: 40, y: 50, font_family: 'arial', font_weight: 'bold', font
|
|
174
174
|
Composite SVG
|
175
175
|
--------------------------------------------------
|
176
176
|
Victor also supports the abiliy to combine several smaller SVG objects into
|
177
|
-
one using the `<<` operator
|
178
|
-
|
177
|
+
one using the `<<` operator or the `#append` method.
|
178
|
+
|
179
|
+
This operator expects to receive any object that responds to `#to_s` (can be another `SVG` object).
|
179
180
|
|
180
181
|
```ruby
|
181
182
|
require 'victor'
|
@@ -204,6 +205,13 @@ Output:
|
|
204
205
|
|
205
206
|
[![troll](https://cdn.rawgit.com/DannyBen/victor/master/examples/13_composite_svg.svg)](https://cdn.rawgit.com/DannyBen/victor/master/examples/13_composite_svg.svg)
|
206
207
|
|
208
|
+
These two calls are identical:
|
209
|
+
|
210
|
+
```ruby
|
211
|
+
svg << other
|
212
|
+
svg.append other
|
213
|
+
```
|
214
|
+
|
207
215
|
Another approach to a more modular SVG composition, would be to subclass
|
208
216
|
`Victor::SVG`.
|
209
217
|
|
data/lib/victor/svg.rb
CHANGED
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.3
|
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: 2018-
|
11
|
+
date: 2018-08-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: runfile
|