kvx 0.8.1 → 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. checksums.yaml.gz.sig +0 -0
  3. data.tar.gz.sig +0 -0
  4. data/lib/kvx.rb +15 -2
  5. metadata +13 -13
  6. metadata.gz.sig +0 -0
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f794c4d01915c9f9daca5f022efe68074b1b87e5b3867af9abf3d23c25aaad49
4
- data.tar.gz: c9a8025b2011970603b351d4e87e7e717603860b496a7aa8f12baf327bc77f85
3
+ metadata.gz: fc4c17a3d0e6695f598a5551d05abb519106d14881131c545379a3b92395282f
4
+ data.tar.gz: ae1ed92b69ac85c02615f839fc6ebe42b35d1eb67ebca052c39762cc7d2ee57f
5
5
  SHA512:
6
- metadata.gz: ef0d61a2a8652c4294b655ec9f9a9431911bafacb7a483f653b689d6e54bd8bab1cdafb43ff7d62af615f58ecd424ae125affed80842881a50418842e81b7674
7
- data.tar.gz: ef65f0b80a84ce5e674120e8a7a00685b1d65b1bb7be1dc9a94dab2da033e736be07c7b8913ca0564571c8d13e2e2e2f6242a599f5ed5a642f3c01c9dce5c986
6
+ metadata.gz: 8af3dd439980f5646306644affcc549ff7859c7faa8c1520bf3402c8889bccc2acf4223e337da25d8f2e9f99483282ecf79b61b9a90df4669a1812398d0a6d15
7
+ data.tar.gz: 463c2861fb0f2e688e08e519a11d81b8bc9bbdd3102f6eff3b348375b860a08e51dc3151ed601858e1aaa4dbb66a12891f2284b2bb4fe54dc5c6ed08b1ffb948
Binary file
data.tar.gz.sig CHANGED
Binary file
data/lib/kvx.rb CHANGED
@@ -109,7 +109,9 @@ class Kvx
109
109
 
110
110
  end
111
111
 
112
- Rexle.new a
112
+ doc = Rexle.new a
113
+ doc.instructions = @instructions
114
+ doc
113
115
 
114
116
  end
115
117
 
@@ -197,7 +199,15 @@ class Kvx
197
199
 
198
200
  buffer, type = RXFHelper.read(s)
199
201
  puts ('buffer: ' + buffer.inspect).debug if @debug
200
- buffer.lstrip =~ /^<\?xml/ ? xml_to_h(Rexle.new(buffer).root) : parse_to_h(buffer)
202
+
203
+ if buffer.lstrip =~ /^<\?xml/ then
204
+ doc = Rexle.new(buffer)
205
+ @instructions = doc.instructions
206
+ puts '@instructions: ' + @instructions.inspect if @debug
207
+ xml_to_h(doc.root)
208
+ else
209
+ parse_to_h(buffer)
210
+ end
201
211
 
202
212
  end
203
213
 
@@ -345,6 +355,9 @@ class Kvx
345
355
 
346
356
  def xml_to_h(node)
347
357
 
358
+ puts 'node: ' + node.xml.inspect if @debug
359
+ @attributes = node.attributes.to_h
360
+
348
361
  summary = node.element('summary')
349
362
 
350
363
  if summary then
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: kvx
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.8.1
4
+ version: 0.9.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -35,28 +35,28 @@ cert_chain:
35
35
  KUxK0Cu0STvwoV6DE5WnnZSur8LrUOi7l9Nk6viqnO36QEwToCPb1F2eqzGV+jI1
36
36
  WeCuyBYkl+4fwV5cb7w7t9YY
37
37
  -----END CERTIFICATE-----
38
- date: 2019-08-15 00:00:00.000000000 Z
38
+ date: 2019-11-29 00:00:00.000000000 Z
39
39
  dependencies:
40
40
  - !ruby/object:Gem::Dependency
41
41
  name: line-tree
42
42
  requirement: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - "~>"
45
- - !ruby/object:Gem::Version
46
- version: '0.7'
47
44
  - - ">="
48
45
  - !ruby/object:Gem::Version
49
- version: 0.7.2
46
+ version: 0.9.0
47
+ - - "~>"
48
+ - !ruby/object:Gem::Version
49
+ version: '0.9'
50
50
  type: :runtime
51
51
  prerelease: false
52
52
  version_requirements: !ruby/object:Gem::Requirement
53
53
  requirements:
54
- - - "~>"
55
- - !ruby/object:Gem::Version
56
- version: '0.7'
57
54
  - - ">="
58
55
  - !ruby/object:Gem::Version
59
- version: 0.7.2
56
+ version: 0.9.0
57
+ - - "~>"
58
+ - !ruby/object:Gem::Version
59
+ version: '0.9'
60
60
  - !ruby/object:Gem::Dependency
61
61
  name: rxfhelper
62
62
  requirement: !ruby/object:Gem::Requirement
@@ -66,7 +66,7 @@ dependencies:
66
66
  version: '0.9'
67
67
  - - ">="
68
68
  - !ruby/object:Gem::Version
69
- version: 0.9.1
69
+ version: 0.9.4
70
70
  type: :runtime
71
71
  prerelease: false
72
72
  version_requirements: !ruby/object:Gem::Requirement
@@ -76,7 +76,7 @@ dependencies:
76
76
  version: '0.9'
77
77
  - - ">="
78
78
  - !ruby/object:Gem::Version
79
- version: 0.9.1
79
+ version: 0.9.4
80
80
  description:
81
81
  email: james@jamesrobertson.eu
82
82
  executables: []
@@ -103,7 +103,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
103
103
  - !ruby/object:Gem::Version
104
104
  version: '0'
105
105
  requirements: []
106
- rubygems_version: 3.0.1
106
+ rubygems_version: 3.0.3
107
107
  signing_key:
108
108
  specification_version: 4
109
109
  summary: Kvx (Keys, Values, and XML) makes it convenient to store and retrieve the
metadata.gz.sig CHANGED
Binary file