shul 0.4.2 → 0.4.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/shul.rb +13 -2
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: '098110e5e756f70347548f9eb4768f73212a8141'
|
4
|
+
data.tar.gz: ce51ba363268796d1cf2a908322ab53561bf9c43
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ce614c657369ee85f870bfdf22ce4af39fedc44505bd42e61e7e0fdb21b9f2a03a07320efa8b72cdd516d81269573f23820a72ea89fe0dae26cf696838459c93
|
7
|
+
data.tar.gz: 4a5450d2d4814ec9315fd9e7cc2839bde5d723688850bb0a491912e248118e0d1b85f45eeae2945248f9308fc3bcda2af2a64749be834070c7c7abd504605da7
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/shul.rb
CHANGED
@@ -41,6 +41,7 @@ Shul::Main.new Shoes, doc
|
|
41
41
|
|
42
42
|
# modifications
|
43
43
|
#
|
44
|
+
# 09-jun-2017: bug fix: The button class has now been implemented with Shule
|
44
45
|
# 22-May-2017: feature: The font size for a label can now be set
|
45
46
|
# 21-May-2017: Added a Document Object Model (DOM) class called Shule
|
46
47
|
# 23-Jan-2017: A Vbox or Hbox width can now be set
|
@@ -72,7 +73,6 @@ module RexleObject
|
|
72
73
|
end
|
73
74
|
end
|
74
75
|
|
75
|
-
|
76
76
|
DEFAULT_SHUL_CSS = <<CSS
|
77
77
|
|
78
78
|
app {background-color: white}
|
@@ -101,6 +101,10 @@ module Shul
|
|
101
101
|
class App < Component
|
102
102
|
|
103
103
|
end
|
104
|
+
|
105
|
+
class Button < Component
|
106
|
+
|
107
|
+
end
|
104
108
|
|
105
109
|
class Hbox < Box
|
106
110
|
end
|
@@ -129,6 +133,7 @@ module Shul
|
|
129
133
|
def defined_elements()
|
130
134
|
super.merge({
|
131
135
|
app: Shule::App,
|
136
|
+
button: Shule::Button,
|
132
137
|
script: Shule::Script,
|
133
138
|
hbox: Shule::Hbox,
|
134
139
|
vbox: Shule::Vbox,
|
@@ -154,7 +159,12 @@ module Shul
|
|
154
159
|
xml, type = RXFHelper.read(source)
|
155
160
|
# is the first line an XML processing instruction?
|
156
161
|
|
157
|
-
|
162
|
+
begin
|
163
|
+
doc = Shule.new(xml)
|
164
|
+
rescue
|
165
|
+
puts 'Shule: something went wrong'
|
166
|
+
puts '->' + ($!).inspect
|
167
|
+
end
|
158
168
|
|
159
169
|
end
|
160
170
|
|
@@ -449,6 +459,7 @@ module Shul
|
|
449
459
|
|
450
460
|
h = { }
|
451
461
|
h.merge!({width: e.attributes[:width]}) if e.attributes[:width]
|
462
|
+
h.merge!({height: e.attributes[:height]}) if e.attributes[:height]
|
452
463
|
h.merge!({margin: e.attributes[:margin].to_i}) if e.attributes[:margin]
|
453
464
|
h.merge!({stroke: e.attributes[:color]}) if e.attributes[:color]
|
454
465
|
h.merge!({size: e.style[:'font-size'].to_f}) if e.style[:'font-size']
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: shul
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
31
31
|
t8eGazfn6KO3ECwm0DI6ZG6K+/TPPHv8HXfONWq0oGmvwamHXWjcz3hCa5hZw0Vt
|
32
32
|
+vU993j3UFViMQ==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2017-
|
34
|
+
date: 2017-06-10 00:00:00.000000000 Z
|
35
35
|
dependencies:
|
36
36
|
- !ruby/object:Gem::Dependency
|
37
37
|
name: domle
|
metadata.gz.sig
CHANGED
Binary file
|