htmle 0.1.4 → 0.1.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
  SHA1:
3
- metadata.gz: 3082c17e0bacc4d491fdaad1b84cfb4ccd326585
4
- data.tar.gz: 57d15d858625be6516164cce2cf066eafc96360b
3
+ metadata.gz: 44d012ed51150d7ef5795a8992c2ddb1299f66aa
4
+ data.tar.gz: bd652cc24036d876dbf95c6857bccd601ff61840
5
5
  SHA512:
6
- metadata.gz: f899b38cb1a35de4ecc0d1658af39adc7647b6f87e7175ee9a3b8aaa715307017cc0ab658c9d59c2a7187f0b0a3c631fe5337eddddfdc62d436a144883dee260
7
- data.tar.gz: 906a75e799be99752efd0626352512503f6e565ec7cbbb66a8b6e18258132a976aa1f4a0773edc36bad5587e66d65d440517b49646ca1b25aef9953535a42d4f
6
+ metadata.gz: d86c6099e50eb0b3de8b773949e2113f7c42a411aa4e0a1a533a227a415cac7e6923bb16673b17d4e28082f62c5b097eacbdc35c380621dbcc3048c9628add63
7
+ data.tar.gz: 8a1e7875d6d43818b6ce2ecbe7c5b37864945da2de7c7d208dd13a6a81155c442a7c3621df35a2b53f61f95d56941245bb8aff5c0632209dca238cb89ca723ec
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -17,7 +17,7 @@ div {background-color: black; padding: 30 10; margin: 5 5;}
17
17
 
18
18
  CSS
19
19
 
20
- class Htmle < Domle
20
+ class Htmle < Svgle
21
21
 
22
22
  class Box < Element
23
23
  attr2_accessor *%i(class width height background-color margin padding)
@@ -64,27 +64,22 @@ class Htmle < Domle
64
64
  end
65
65
 
66
66
  class Input < Box
67
+ attr2_accessor *%i(type value)
67
68
  end
68
69
 
69
70
  private
70
71
 
71
72
 
72
- def find_add_css()
73
+ def add_default_css()
73
74
 
74
- # add the default CSS
75
75
  add_css DEFAULT_HTML_CSS, override: false
76
-
77
- @doc.root.xpath('//style').each {|e| add_css e.text }
78
-
79
- # check for an external CSS file
80
- # still to-do
81
-
76
+ super()
82
77
 
83
78
  end
84
79
 
85
80
 
86
81
  def defined_elements()
87
- {
82
+ super.merge({
88
83
  doc: Rexle::Element,
89
84
  html: Htmle::Html,
90
85
  head: Htmle::Head,
@@ -101,7 +96,7 @@ class Htmle < Domle
101
96
  li: Htmle::Li,
102
97
  input: Htmle::Input
103
98
 
104
- }
99
+ })
105
100
  end
106
101
 
107
- end
102
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: htmle
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -31,7 +31,7 @@ cert_chain:
31
31
  nVnBX6qdmcSpb54jyBZoRwImq4/YifXTmX3/u2C+uUwcKEp/ESMUHTgvAGiSCR7Y
32
32
  FZOZhh2apmq6MA==
33
33
  -----END CERTIFICATE-----
34
- date: 2016-12-22 00:00:00.000000000 Z
34
+ date: 2017-05-21 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.5.1
83
+ rubygems_version: 2.6.8
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: "*Experimental gem under development* Htmle (HTML + Domle) is an implementation
metadata.gz.sig CHANGED
Binary file