svgle 0.4.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/lib/svgle.rb +13 -0
  5. metadata +19 -19
  6. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 20edf14e1fb2d867c4cc15a5eef5a2fd53d1b9d7
4
- data.tar.gz: 9d3ed5fcec3fa4f14b77e7dfde8f78212efde32b
3
+ metadata.gz: acf0ec9fb3fb6885afbd5d222fa9aa8a5a654f8d
4
+ data.tar.gz: 34d003463f89c72f45b2b45c6d95059cecb22ba2
5
5
  SHA512:
6
- metadata.gz: 0d01e7ac7d6037c76ce75b8c885944348efee357be0f065f634e2abc27930a63a5c1f33eb1550de77b6d74ecaa2476bfab74abf5aef164b6865d273f1e817d3f
7
- data.tar.gz: 53a60916562462ad76b01acb4473c313cc573a4fc54726a5afb93e528961afe953a8d5071ebd2707a0210f962ed27a17785bd31ba0c3a27fc1d3674cbc0b7a05
6
+ metadata.gz: 4df021911d792e58c8218cdf71fb78c7093e798dac649b5bb1025becf4d47f5593a0d31884b215da2cebae1b6dbe3f50e6f30224135a67bf3ccadcf6b4324f93
7
+ data.tar.gz: 4d3536ce087701469ea2f5374dc121b2ba6ab05612bea4c813ceabb393058b878f3b97758e9d89c46ec87c03443026547bcfc783d058d0ac9d99e2e89b2aeb23
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -65,6 +65,17 @@ class Svgle < Domle
65
65
  end
66
66
  end
67
67
 
68
+ class Image < Element
69
+
70
+ attr2_accessor *%i(x y width height)
71
+
72
+ def boundary()
73
+ x1, y1, w, h = [x, y, width, height].map(&:to_i)
74
+ [x1, y1, x1+w, y1+h]
75
+ end
76
+
77
+ end
78
+
68
79
  class Path < Element
69
80
  attr2_accessor *%i(d stroke stroke-width fill)
70
81
  def boundary()
@@ -121,6 +132,7 @@ class Svgle < Domle
121
132
  def find_add_css()
122
133
 
123
134
  # add the default CSS
135
+
124
136
  add_css DEFAULT_CSS
125
137
 
126
138
 
@@ -151,6 +163,7 @@ class Svgle < Domle
151
163
  ellipse: Svgle::Ellipse,
152
164
  line: Svgle::Line,
153
165
  g: Svgle::G,
166
+ image: Svgle::Image,
154
167
  svg: Svgle::Svg,
155
168
  script: Svgle::Script,
156
169
  style: Svgle::Style,
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: svgle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -12,26 +12,26 @@ cert_chain:
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
14
  YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE1MTEyMjE0NTUwNVoXDTE2MTEyMTE0NTUwNVowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE3MDEyNjE4MjgwM1oXDTE4MDEyNjE4MjgwM1owSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBANDuW856WZZpA1PLfpIo77MV41HlplCQ0q135tRxG4v3MgsVGdqwIivfC1y3
19
- zgdRhDNnGTYVNNf/jPa2hHSMPDLdk1uQHGltQudiWIsqHzsEmtAh0PL70OuoRlpw
20
- SlC0oq4crlmltkWf6GXvRsVBuUvauLp+bVKbHUUlwufT1K+0aNR44wuYH9Re2O/w
21
- HmsbodrFMiHdHYNTobY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U7DQB93lyZOH60UN/ZCA+F
30
- DWUpv6GtQPvWSMAoqYSXmiJS9HvBVYExu3xe+4r0lZSvdhlFrr53wxnCsxM3rqgf
31
- RmHuiq+pC3w5bbeKAS7PA41oFYzip80UozdgPsTbPSjT38fz3RwuIKWLTG0zOXty
32
- rUf4C1wr3bOSgQ==
26
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAl25FvN2i
27
+ FXpWhOKwuDno9v4LhkMiTF342bEs5JkjKoZ4spm9Y6mw0xIa+YxCJAhZXXFXcwAA
28
+ 3eNSIYBrEFrJT5s5qh1vliRSEs8gAf8P3qJnWGxe2KPyGH0ASy10CcCsH3HurL+V
29
+ 6aC7THAhD92PfP9ayA5nu+8/FzHZtUEbr6EOoKvPP19cIXZaNUStvQ9bBWqH+Y5A
30
+ eBECgg2BVpo8Ikg0WVp0mhtk3uWj9AAedcygbdljRh1ClJIAJUa9V/PKX7XSmdtP
31
+ /cwDMD511+2hNiVHI6IKth0oybwGyVAFGdWyfxRsL6PXC31eaVImP0O4Y1JCB4+Q
32
+ g7yNFaM/yTP4DQ==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-11-25 00:00:00.000000000 Z
34
+ date: 2017-01-26 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: domle
@@ -54,7 +54,7 @@ dependencies:
54
54
  - !ruby/object:Gem::Version
55
55
  version: 0.1.0
56
56
  description:
57
- email: james@r0bertson.co.uk
57
+ email: james@jamesrobertson.eu
58
58
  executables: []
59
59
  extensions: []
60
60
  extra_rdoc_files: []
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.4.8
83
+ rubygems_version: 2.6.8
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: Svgle (SVG + Domle) generates an SVG Document Object Model from the given
metadata.gz.sig CHANGED
Binary file