victor 0.2.4 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf5e10e9c9f1abd3279977ba3b70579241571ee0d7ba47705b3c2c4aac243e93
4
- data.tar.gz: 118123aa977a92a9032406b43e5da60f4d0f946f3116964f633f3572c217c746
3
+ metadata.gz: 6fa0d0c7d1fc0d5ddbe1ee2c4a4e121e4bd8d0dc3b2fc1f464fd0fa4434cb4be
4
+ data.tar.gz: 022fdb964984b46f65f632e0043763a7bbd803f21438ef58c5ae8032d9aca783
5
5
  SHA512:
6
- metadata.gz: 41739345915bd13a9d3be83fc8820562a61627b12173ebb7b287ef3ce61c07f5f4a50ebdc6a74e9d69de7754c18a2ce905e86439cad5a78ffad9620521406618
7
- data.tar.gz: 9404df21b13cf754d949280a45f7a26d74cfe7e5ca4b555225bd76284defe41a3f14837d1fa90e3284fb16ee17f3ac03da92c6e15ae48a4034b1805a4c9b6f33
6
+ metadata.gz: 285bb875277c25d24f06f10f44e632ff4ee03897c16b25e5af4c793a6b5a93632d976f1017cdada5cef61f3d68b3008955694868e0c22bc57e0da56ef6a64adb
7
+ data.tar.gz: 2f3371599bd094418c0e6f0ea656723f1a335983abfe1af0cdce032032fa4e05b1263f9ef3b2062f6a8195a6543a25f4e08d7fb7a72e5178812d2f7295710417
data/README.md CHANGED
@@ -7,14 +7,13 @@ Victor - Ruby SVG Image Builder
7
7
  [![Build Status](https://travis-ci.com/DannyBen/victor.svg?branch=master)](https://travis-ci.com/DannyBen/victor)
8
8
  [![Code Quality](https://api.codacy.com/project/badge/Grade/a502c262875643eabb01a43f7f5131ff)](https://www.codacy.com/app/db/victor?utm_source=github.com&utm_medium=referral&utm_content=DannyBen/victor&utm_campaign=Badge_Grade)
9
9
  [![Maintainability](https://api.codeclimate.com/v1/badges/85cc05c219d6d233ab78/maintainability)](https://codeclimate.com/github/DannyBen/victor/maintainability)
10
- [![Test Coverage](https://api.codeclimate.com/v1/badges/85cc05c219d6d233ab78/test_coverage)](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
- ![Demo](/animated.gif)
16
+ ![Demo](assets/animated.gif)
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](assets/icodi.svg)][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
@@ -1,4 +1,8 @@
1
- <svg %{attributes}>
1
+ <svg %{attributes}
2
+ xmlns="http://www.w3.org/2000/svg"
3
+ xmlns:xlink="http://www.w3.org/1999/xlink">
4
+
2
5
  %{style}
3
6
  %{content}
7
+
4
8
  </svg>
@@ -0,0 +1,4 @@
1
+ <svg %{attributes}>
2
+ %{style}
3
+ %{content}
4
+ </svg>
@@ -1,3 +1,3 @@
1
1
  module Victor
2
- VERSION = "0.2.4"
2
+ VERSION = "0.2.5"
3
3
  end
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
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: 2018-12-15 00:00:00.000000000 Z
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.0.0
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
- rubyforge_project:
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