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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 74766ffa2e21149903727906188606aa33f11b39
4
- data.tar.gz: 10ac1ce43ac9c90f2533cba756cd904eeb9eef67
3
+ metadata.gz: c28a7ee6f9788428433d1b867c08048e6eb757d3
4
+ data.tar.gz: 641d8478bf80e0804764c4b53226b20167f672a5
5
5
  SHA512:
6
- metadata.gz: 1643799bd93bb93ef24f5c62d4d4a2dac70ee915a95a7f65a2e72f03fa2fc74a29d1fd5e2ad93cb53bbb4169d4a05b6cb8b6a3c6930b626c0e65696b8d3d4248
7
- data.tar.gz: 176acdf2c41631c6a1103040596982f55e6d76f9169af801e22fd2518fc208ae4d11f84a3faf67d3cf1c51a50d26c301c6364ced75c2b041d659d526ce5c944e
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.2.4
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-10-29 00:00:00.000000000 Z
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