recordx 0.2.4 → 0.3.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/recordx.rb +15 -0
- data.tar.gz.sig +0 -0
- metadata +43 -3
- 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: c28a7ee6f9788428433d1b867c08048e6eb757d3
|
4
|
+
data.tar.gz: 641d8478bf80e0804764c4b53226b20167f672a5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 61ff0960e905f8a14b3a94315af394a48616a80bd37853c7fd6f2ca42c50336d5820ee51ee482fca365627bf76a3a89d7f5065ecef08507364c7c8bbae0ee38f
|
7
|
+
data.tar.gz: 20dd338b97a46d616162615466b1db875392572b3ce916107680e11d243c0133c662ebee7518d25a9d622222d0ba9127922e746216f1b67c36b61a24805a0c77
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data/lib/recordx.rb
CHANGED
@@ -3,6 +3,10 @@
|
|
3
3
|
# file: recordx.rb
|
4
4
|
|
5
5
|
|
6
|
+
require 'rexle'
|
7
|
+
require 'rexle-builder'
|
8
|
+
|
9
|
+
|
6
10
|
class RecordX
|
7
11
|
|
8
12
|
attr_reader :id, :created, :last_modified
|
@@ -90,6 +94,17 @@ class RecordX
|
|
90
94
|
kvx
|
91
95
|
|
92
96
|
end
|
97
|
+
|
98
|
+
def to_xml()
|
99
|
+
|
100
|
+
def build(xml, h)
|
101
|
+
h.each_pair {|key, value| xml.send(key.to_sym, value) }
|
102
|
+
end
|
103
|
+
|
104
|
+
xml = RexleBuilder.new
|
105
|
+
|
106
|
+
Rexle.new(xml.root { build xml, h }).xml pretty: true
|
107
|
+
end
|
93
108
|
|
94
109
|
def update(h)
|
95
110
|
h.each {|name,value| self.method((name.to_s + '=').to_sym).call(value) }
|
data.tar.gz.sig
CHANGED
Binary file
|
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.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- James Robertson
|
@@ -31,8 +31,48 @@ cert_chain:
|
|
31
31
|
AUf83m/FAQuM1QqHmmadyxeL0KB1GISpCURZ0bn5HkDnJipCM3nwcHTxOpqLMlst
|
32
32
|
cb3TqEykWFs+mA==
|
33
33
|
-----END CERTIFICATE-----
|
34
|
-
date: 2015-
|
35
|
-
dependencies:
|
34
|
+
date: 2015-12-12 00:00:00.000000000 Z
|
35
|
+
dependencies:
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: rexle
|
38
|
+
requirement: !ruby/object:Gem::Requirement
|
39
|
+
requirements:
|
40
|
+
- - "~>"
|
41
|
+
- !ruby/object:Gem::Version
|
42
|
+
version: '1.3'
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: 1.3.9
|
46
|
+
type: :runtime
|
47
|
+
prerelease: false
|
48
|
+
version_requirements: !ruby/object:Gem::Requirement
|
49
|
+
requirements:
|
50
|
+
- - "~>"
|
51
|
+
- !ruby/object:Gem::Version
|
52
|
+
version: '1.3'
|
53
|
+
- - ">="
|
54
|
+
- !ruby/object:Gem::Version
|
55
|
+
version: 1.3.9
|
56
|
+
- !ruby/object:Gem::Dependency
|
57
|
+
name: rexle-builder
|
58
|
+
requirement: !ruby/object:Gem::Requirement
|
59
|
+
requirements:
|
60
|
+
- - "~>"
|
61
|
+
- !ruby/object:Gem::Version
|
62
|
+
version: '0.2'
|
63
|
+
- - ">="
|
64
|
+
- !ruby/object:Gem::Version
|
65
|
+
version: 0.2.1
|
66
|
+
type: :runtime
|
67
|
+
prerelease: false
|
68
|
+
version_requirements: !ruby/object:Gem::Requirement
|
69
|
+
requirements:
|
70
|
+
- - "~>"
|
71
|
+
- !ruby/object:Gem::Version
|
72
|
+
version: '0.2'
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: 0.2.1
|
36
76
|
description:
|
37
77
|
email: james@r0bertson.co.uk
|
38
78
|
executables: []
|
metadata.gz.sig
CHANGED
Binary file
|