polyrex-schema 0.4.0 → 0.4.1

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: 5b47a59a06e3ecea4ad24cc6aeba1dfc0ca428ee
4
- data.tar.gz: b044e911e9108d624c11e5b49bdc698b9cdb4bb8
3
+ metadata.gz: 0abf411199d6f82e536976e4be82c509a47aff8c
4
+ data.tar.gz: 969dc383a7aecb36044bb586ca38bd23624a9923
5
5
  SHA512:
6
- metadata.gz: a5d594bda78c73fd9dfa9035055722324dc1791df895980ae92738963ede28a7050eb5a347a9bbb2769cc0b2d6c46e7828d11a00586f6ae56259baf3e43014a1
7
- data.tar.gz: c3f739dc0618d0bfd034759bab94110f857ddc8dea8187f3ef1014fbcaa27e55e92fdf026df604a8e2e7334872e50938546b336dd1ac6b78f0e6e80c464869fe
6
+ metadata.gz: e5ab154dbda4c8abd0979636ec6b0d6b6a9facf4c601b47ab465844ffa5540bb6632565fca928cb370238eee511b4c5c2398fa1323d7a9bd0bbd8e9cc1c62b9c
7
+ data.tar.gz: 8cbe502092083fbf28066c562f09eab32a136e08bc3fa8e13a22d675de8efff731ec77bd78ee502f4bfd4a26b20838a5a77b884b07f049db4eaad72c7c2626d2
Binary file
data.tar.gz.sig CHANGED
Binary file
@@ -15,7 +15,9 @@ class PolyrexSchema
15
15
 
16
16
  r = add_node split(s)
17
17
  r[3] << node('recordx_type', 'polyrex')
18
+
18
19
  @doc = Rexle.new(r)
20
+
19
21
  end
20
22
  end
21
23
 
@@ -26,8 +28,8 @@ class PolyrexSchema
26
28
  self
27
29
  end
28
30
 
29
- def to_a() scan_to_a(@doc.root.xpath 'records/.') end
30
- def to_h() scan_to_h(@doc.root.xpath 'records/.') end
31
+ def to_a() scan_to_a(@doc.root.xpath 'records/*') end
32
+ def to_h() scan_to_h(@doc.root.xpath 'records/*') end
31
33
  def to_doc() @doc end
32
34
  def to_s() @doc.to_s end
33
35
 
@@ -93,7 +95,7 @@ class PolyrexSchema
93
95
  a = r.xpath('summary/*/name()') # => ["entry", "format_mask"]
94
96
  schema = r.text('summary/schema')
95
97
  fields = (a - %w(schema format_mask)).map(&:to_sym)
96
- node = r.xpath 'records/.'
98
+ node = r.xpath 'records/*'
97
99
 
98
100
  if node.any? then
99
101
  children = scan_to_h(node)
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polyrex-schema
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - James Robertson
@@ -12,26 +12,26 @@ cert_chain:
12
12
  -----BEGIN CERTIFICATE-----
13
13
  MIIDljCCAn6gAwIBAgIBATANBgkqhkiG9w0BAQUFADBIMRIwEAYDVQQDDAlnZW1t
14
14
  YXN0ZXIxHjAcBgoJkiaJk/IsZAEZFg5qYW1lc3JvYmVydHNvbjESMBAGCgmSJomT
15
- 8ixkARkWAmV1MB4XDTE0MDMxODE2MTEwMFoXDTE1MDMxODE2MTEwMFowSDESMBAG
15
+ 8ixkARkWAmV1MB4XDTE2MDMxMDAwMjU1NVoXDTE3MDMxMDAwMjU1NVowSDESMBAG
16
16
  A1UEAwwJZ2VtbWFzdGVyMR4wHAYKCZImiZPyLGQBGRYOamFtZXNyb2JlcnRzb24x
17
17
  EjAQBgoJkiaJk/IsZAEZFgJldTCCASIwDQYJKoZIhvcNAQEBBQADggEPADCCAQoC
18
- ggEBANQqAVGLJSqOEoZ1UH0Zo7z17uZ8jqw/2d2mk8wBeV8XzrSzMepuCohWonQQ
19
- DIubtgMZwOwGa5BYB4t4IU1AzjBMEUVGrtQgQvxEJu1XPeE6HAp+oCYbh2+xRR5S
20
- QLYDsv94vqJkjd1i7amvwGPJDVKbzMcltuPeYIelZX822cJCMjRd896Ig3ydTXEH
21
- dHRxbecgjR0IV8mfi9NIDrc1adfziUKjqugnUXjUHZDlicvKaG46KufJ1idmOW08
22
- Isc3CqpZT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yxSujyFb38gMnLeQ9S+OQvH/HUW4gW
31
- x3ppGgUf/zri8F8syPC4U/PhiV9ZBYGjFZDoQWr9TW6gJ1rEPuB1RYH9RPLaSYy4
32
- SFJGImVxuM2M+Q==
26
+ c3RlckBqYW1lc3JvYmVydHNvbi5ldTANBgkqhkiG9w0BAQUFAAOCAQEAOy81zP5y
27
+ /Fb0rxFEMqvOpmU6JDM7reh8Dye2yD5gzLRlceb5I7aP6qmSmfZ3kZTmrraPI5V8
28
+ 1JKsjTm43byR27IYDrBOQEeWc39v2a/DtTdUtDzMMc+fwlRUzKf7qVzS0xsjgRN2
29
+ gyYAbfbOW6Pc3SsRvKq0MDgdtFep+mP8H7rk832U0mlhqjkcLwLuI6GwN9evARr1
30
+ 0bcC7YBebBl9lgxdcvvyQhX4jjARQer4huvjOCp7Vo0E43JAih8An5pqOaxsoHYN
31
+ 7HM6eFXEshFmjb+/GXg2liBEIgNS7Sxo81rQE32DxEikD1U9QQFUwKU3CD2CZIoY
32
+ i9QykFbHPjMCKw==
33
33
  -----END CERTIFICATE-----
34
- date: 2015-02-02 00:00:00.000000000 Z
34
+ date: 2016-03-10 00:00:00.000000000 Z
35
35
  dependencies:
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rexle
@@ -80,7 +80,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
80
80
  version: '0'
81
81
  requirements: []
82
82
  rubyforge_project:
83
- rubygems_version: 2.2.2
83
+ rubygems_version: 2.4.8
84
84
  signing_key:
85
85
  specification_version: 4
86
86
  summary: The polyrex-schema gem creates Polyrex XML from an initial shorthand schematic
metadata.gz.sig CHANGED
Binary file