rexle-builder 0.4.0 → 0.5.0
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/lib/rexle-builder.rb +11 -3
- data.tar.gz.sig +0 -0
- metadata +2 -2
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6c10f565f608cd8850c3653410cb91c024f8121d96154ba2080ee60a878b9dbb
|
4
|
+
data.tar.gz: 0b67e9ee49fdcdd241d0d83e1e8e3cbd67e3de067a904169eff4b0387932ba65
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a9f3c513c20603e72ea209bee4172c35bf87cf6ab3efbee6c73fcea804f21ff7d6852e6e28b1ff8e27d8799ad43dc744ae3aaea95a136cbd2c3b04611c9fc55
|
7
|
+
data.tar.gz: 8dc6ccdcd3d92ba330739d11eb8d898c5d99587ec89fb47a450d09e4ac8dd2389175264c19ff49f01d844966e8ac26262ada5bb0bec935287d3d29108e072580
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/rexle-builder.rb
CHANGED
@@ -14,14 +14,15 @@ end
|
|
14
14
|
|
15
15
|
class RexleBuilder
|
16
16
|
|
17
|
-
def self.build()
|
17
|
+
def self.build(debug: false)
|
18
18
|
|
19
|
-
yield(self.new)
|
19
|
+
yield(self.new(debug: debug))
|
20
20
|
|
21
21
|
end
|
22
22
|
|
23
|
-
def initialize(obj=nil)
|
23
|
+
def initialize(obj=nil, debug: false)
|
24
24
|
|
25
|
+
@debug = debug
|
25
26
|
@a = []
|
26
27
|
@current_a = @a
|
27
28
|
@namespace = nil
|
@@ -53,6 +54,13 @@ class RexleBuilder
|
|
53
54
|
args << '' if args.last.is_a? Hash
|
54
55
|
value, attributes = args.reverse
|
55
56
|
|
57
|
+
value = Rexle.new(value).to_a if value =~ /^<.*>$/
|
58
|
+
|
59
|
+
if @debug then
|
60
|
+
puts 'sym: ' + sym.inspect
|
61
|
+
puts 'args: ' + args.inspect
|
62
|
+
end
|
63
|
+
|
56
64
|
# reserved keywords are masked with ._ e.g. ._method_missing
|
57
65
|
a = [sym.to_s.sub(/^(?:\._|_)/,'').sub(/^cdata!$/,'![')\
|
58
66
|
.sub(/^comment!$/, '!-'), attributes || {}, value || '']
|
data.tar.gz.sig
CHANGED
Binary file
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rexle-builder
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -35,7 +35,7 @@ cert_chain:
|
|
35
35
|
mhjduVy/qI0Fq2iBzsi+riXduSKKTKrvgbTbDfkk7gZK2Xb14hLgVeNOBxhvWUGj
|
36
36
|
Boxgzq1tc6BbNomHiuZGxQTh
|
37
37
|
-----END CERTIFICATE-----
|
38
|
-
date: 2019-
|
38
|
+
date: 2019-08-09 00:00:00.000000000 Z
|
39
39
|
dependencies: []
|
40
40
|
description:
|
41
41
|
email: james@jamesrobertson.eu
|
metadata.gz.sig
CHANGED
Binary file
|