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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 8ae4a41c5cdd617729d5579c022c1a8fd53cddf8
4
- data.tar.gz: 12737804f3756719411b61ba8532e59cb41151eb
3
+ metadata.gz: '098110e5e756f70347548f9eb4768f73212a8141'
4
+ data.tar.gz: ce51ba363268796d1cf2a908322ab53561bf9c43
5
5
  SHA512:
6
- metadata.gz: 2387c9235be493ac52028f889b77fed20e2bc995c79bf5d2b4ae7c13b0e422ce605071434a4e887ae0aa752e742355a6e1d2b2a7b01cebe5bc3eeca8361a3f89
7
- data.tar.gz: '08edb5cc8b2a905041766cdf0fe3d7f589b276f3d2e910f0df7fa63c5c11894641cd6ec5ad396769cfb14aa6b764889d2ae802e0c8dd79ef29bb56d8bd2cc44b'
6
+ metadata.gz: ce614c657369ee85f870bfdf22ce4af39fedc44505bd42e61e7e0fdb21b9f2a03a07320efa8b72cdd516d81269573f23820a72ea89fe0dae26cf696838459c93
7
+ data.tar.gz: 4a5450d2d4814ec9315fd9e7cc2839bde5d723688850bb0a491912e248118e0d1b85f45eeae2945248f9308fc3bcda2af2a64749be834070c7c7abd504605da7
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -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
- doc = Shule.new(xml)
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.2
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-05-31 00:00:00.000000000 Z
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