recordx 0.5.0 → 0.5.5
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +5 -5
- checksums.yaml.gz.sig +1 -1
- data.tar.gz.sig +0 -0
- data/lib/recordx.rb +24 -7
- metadata +32 -29
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
|
-
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
2
|
+
SHA256:
|
|
3
|
+
metadata.gz: 66b94a9581c40bd7c296524e7b48329421ec1b27ef0bfa4750e82285f8444409
|
|
4
|
+
data.tar.gz: 66ab87256af6a15162e46c98b977d2f02052e3a34407ea71a6d518a57fb14cee
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: a9522ad352a0609da2409d6a8b82bb471d0481d05b2484e3973d0aa5979ef8e0715d5c1170be3043a1cf77e5788787ff230255501a87b071c4528b1b512b7591
|
|
7
|
+
data.tar.gz: f8563ee06dc8268a699a98975086aa146c6745ebe03bf00ff378e76a3fd8fe2e1a50f173dd8e0e6d805d9519aeffba37d15a3ff781f98c186ae36e4dc1f7e048
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
����K
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/recordx.rb
CHANGED
|
@@ -8,6 +8,7 @@ require 'rexle-builder'
|
|
|
8
8
|
|
|
9
9
|
|
|
10
10
|
class RecordX
|
|
11
|
+
using ColouredText
|
|
11
12
|
|
|
12
13
|
attr_reader :id, :created, :last_modified
|
|
13
14
|
|
|
@@ -30,7 +31,11 @@ class RecordX
|
|
|
30
31
|
end
|
|
31
32
|
end
|
|
32
33
|
|
|
33
|
-
def initialize(x=nil, callerx=nil, id=nil, created=nil, last_modified=nil
|
|
34
|
+
def initialize(x=nil, callerx=nil, id=nil, created=nil, last_modified=nil,
|
|
35
|
+
debug: false)
|
|
36
|
+
|
|
37
|
+
@debug = debug
|
|
38
|
+
puts ('x: ' + x.inspect).debug if @debug
|
|
34
39
|
|
|
35
40
|
h = if x.is_a? Hash then x
|
|
36
41
|
|
|
@@ -49,10 +54,10 @@ class RecordX
|
|
|
49
54
|
|
|
50
55
|
end
|
|
51
56
|
|
|
52
|
-
@
|
|
53
|
-
created, last_modified
|
|
57
|
+
@id, @created, @last_modified = id, created, last_modified
|
|
54
58
|
@h = RXHash.new(self).merge h
|
|
55
59
|
h.each {|name,val| attr_accessor2(name.to_s, val) }
|
|
60
|
+
@callerx = callerx
|
|
56
61
|
|
|
57
62
|
end
|
|
58
63
|
|
|
@@ -94,14 +99,23 @@ class RecordX
|
|
|
94
99
|
|
|
95
100
|
def to_kvx()
|
|
96
101
|
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
102
|
+
puts 'inside to_kvx'.info if @debug
|
|
103
|
+
kvx = Kvx.new(@h.to_h, debug: @debug)
|
|
104
|
+
|
|
105
|
+
if @callerx and @callerx.summary[:recordx_type] then
|
|
106
|
+
summary_fields = @callerx.summary.keys - [:recordx_type, \
|
|
107
|
+
:format_mask, :schema, :default_key]
|
|
108
|
+
summary_fields.each {|field| kvx.summary[field] = @callerx.summary[field] }
|
|
109
|
+
end
|
|
110
|
+
|
|
101
111
|
kvx
|
|
102
112
|
|
|
103
113
|
end
|
|
104
114
|
|
|
115
|
+
def to_s()
|
|
116
|
+
self.to_kvx.to_s
|
|
117
|
+
end
|
|
118
|
+
|
|
105
119
|
def to_xml()
|
|
106
120
|
|
|
107
121
|
def build(xml, h)
|
|
@@ -143,6 +157,9 @@ class RecordX
|
|
|
143
157
|
self.instance_eval %Q{
|
|
144
158
|
|
|
145
159
|
def #{name}=(s)
|
|
160
|
+
|
|
161
|
+
puts 'inside #{name} assignment' if @debug
|
|
162
|
+
|
|
146
163
|
@#{name} = s.to_s
|
|
147
164
|
unless @h[:#{name}] == s.to_s then
|
|
148
165
|
@h[:#{name}] = s.to_s
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: recordx
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.5.
|
|
4
|
+
version: 0.5.5
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -10,28 +10,32 @@ bindir: bin
|
|
|
10
10
|
cert_chain:
|
|
11
11
|
- |
|
|
12
12
|
-----BEGIN CERTIFICATE-----
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
+
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
+
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
13
|
+
MIIEXjCCAsagAwIBAgIBATANBgkqhkiG9w0BAQsFADAsMSowKAYDVQQDDCFnZW1t
|
|
14
|
+
YXN0ZXIvREM9amFtZXNyb2JlcnRzb24vREM9ZXUwHhcNMjAwNjIxMTY0MTExWhcN
|
|
15
|
+
MjEwNjIxMTY0MTExWjAsMSowKAYDVQQDDCFnZW1tYXN0ZXIvREM9amFtZXNyb2Jl
|
|
16
|
+
cnRzb24vREM9ZXUwggGiMA0GCSqGSIb3DQEBAQUAA4IBjwAwggGKAoIBgQC8oROj
|
|
17
|
+
q1T8dkqSmgVhtBw9agpgrnsmDmAxwxT+7zHckhCPmfYrKOaRdkKNitNsHMoTfykr
|
|
18
|
+
t6pHzLGzfecoX7kpyRm0h4q/4wPMaKQaAytrRkC9qleQJttN7L8gx47/aqw2btRS
|
|
19
|
+
bRh2iNgaxl2x9gpZ/twgSSy5suTZuoVyrwBQQ5E0//XTzxk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qSPnSk4+c
|
|
34
|
+
S55Ck2M5GP8ORoXHClD04zoQt/pdRflZfepgemBMmBac84yPXKDrpNKnp+H6R8wc
|
|
35
|
+
MXIltH05NX/wvifUanBk5TheA0V7geiyu8rzzoe5H2ekkegSk+sRilOKwS8cRkii
|
|
36
|
+
l46IhhldbHE/nZHwczeLZb4z
|
|
33
37
|
-----END CERTIFICATE-----
|
|
34
|
-
date:
|
|
38
|
+
date: 2020-06-21 00:00:00.000000000 Z
|
|
35
39
|
dependencies:
|
|
36
40
|
- !ruby/object:Gem::Dependency
|
|
37
41
|
name: rexle
|
|
@@ -39,22 +43,22 @@ dependencies:
|
|
|
39
43
|
requirements:
|
|
40
44
|
- - "~>"
|
|
41
45
|
- !ruby/object:Gem::Version
|
|
42
|
-
version: '1.
|
|
46
|
+
version: '1.5'
|
|
43
47
|
- - ">="
|
|
44
48
|
- !ruby/object:Gem::Version
|
|
45
|
-
version: 1.
|
|
49
|
+
version: 1.5.6
|
|
46
50
|
type: :runtime
|
|
47
51
|
prerelease: false
|
|
48
52
|
version_requirements: !ruby/object:Gem::Requirement
|
|
49
53
|
requirements:
|
|
50
54
|
- - "~>"
|
|
51
55
|
- !ruby/object:Gem::Version
|
|
52
|
-
version: '1.
|
|
56
|
+
version: '1.5'
|
|
53
57
|
- - ">="
|
|
54
58
|
- !ruby/object:Gem::Version
|
|
55
|
-
version: 1.
|
|
59
|
+
version: 1.5.6
|
|
56
60
|
description:
|
|
57
|
-
email: james@
|
|
61
|
+
email: james@jamesrobertson.eu
|
|
58
62
|
executables: []
|
|
59
63
|
extensions: []
|
|
60
64
|
extra_rdoc_files: []
|
|
@@ -79,8 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
79
83
|
- !ruby/object:Gem::Version
|
|
80
84
|
version: '0'
|
|
81
85
|
requirements: []
|
|
82
|
-
|
|
83
|
-
rubygems_version: 2.5.1
|
|
86
|
+
rubygems_version: 3.0.3
|
|
84
87
|
signing_key:
|
|
85
88
|
specification_version: 4
|
|
86
89
|
summary: A kind of Hash which can also use accessor methods to store or retrieve values.
|
metadata.gz.sig
CHANGED
|
Binary file
|