dynarex 1.2.42 → 1.2.43
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 +4 -4
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/dynarex.rb +14 -5
- metadata +2 -2
- 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: a9b4070fd9d8d7c9bdfd96d059edd4bde889e3a9
|
|
4
|
+
data.tar.gz: 455a3c78561075d0d3a7a154da49a9df37404822
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 8d0ecc61179f8c6345109b12684871d1a1284846d94dc76ab9e750cae32bacfc3e5f3c76bc6946e7ca10c2e2b6d42f6650f9b67e4b63e03fce2a3b4e99fe0e4b
|
|
7
|
+
data.tar.gz: 65656096117346005f65c9853e8b32c8d79d81f3046151396fb1e22f74cd792f58c9b4917f0c46d5a8bdae7dbc61c03ec463fbc83d6bfed7f80d2971d76204f0
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/dynarex.rb
CHANGED
|
@@ -14,6 +14,7 @@ require 'rxraw-lineparser'
|
|
|
14
14
|
require 'yaml'
|
|
15
15
|
require 'rowx'
|
|
16
16
|
require 'nokogiri'
|
|
17
|
+
require 'ostruct'
|
|
17
18
|
|
|
18
19
|
class Dynarex
|
|
19
20
|
|
|
@@ -89,14 +90,14 @@ class Dynarex
|
|
|
89
90
|
@summary[:type] = v
|
|
90
91
|
end
|
|
91
92
|
|
|
92
|
-
# Returns the hash representation of the document summary.
|
|
93
|
-
|
|
93
|
+
# Returns the hash representation of the document summary.
|
|
94
|
+
#
|
|
94
95
|
def summary
|
|
95
96
|
@summary
|
|
96
97
|
end
|
|
97
98
|
|
|
98
|
-
#Return a Hash (which can be edited) containing all records.
|
|
99
|
-
|
|
99
|
+
# Return a Hash (which can be edited) containing all records.
|
|
100
|
+
#
|
|
100
101
|
def records
|
|
101
102
|
|
|
102
103
|
load_records if @dirty_flag == true
|
|
@@ -111,13 +112,21 @@ class Dynarex
|
|
|
111
112
|
|
|
112
113
|
end
|
|
113
114
|
|
|
114
|
-
#Returns a ready-only snapshot of records as a simple Hash.
|
|
115
|
+
# Returns a ready-only snapshot of records as a simple Hash.
|
|
116
|
+
#
|
|
115
117
|
def flat_records
|
|
116
118
|
load_records if @dirty_flag == true
|
|
117
119
|
@flat_records
|
|
118
120
|
end
|
|
119
121
|
|
|
120
122
|
alias to_h flat_records
|
|
123
|
+
alias to_a flat_records
|
|
124
|
+
|
|
125
|
+
# Returns an array snapshot of OpenStruct records
|
|
126
|
+
#
|
|
127
|
+
def ro_records
|
|
128
|
+
flat_records.map {|record| OpenStruct.new record }
|
|
129
|
+
end
|
|
121
130
|
|
|
122
131
|
# Returns all records as a string format specified by the summary format_mask field.
|
|
123
132
|
|
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: dynarex
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.2.
|
|
4
|
+
version: 1.2.43
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -29,7 +29,7 @@ cert_chain:
|
|
|
29
29
|
kUea9jZD+xTq1Js9t2BHCz3Ev/sgS7CaijrbQetbNwzasFGHRd30xBEwd4zANQOp
|
|
30
30
|
i0OBH0e4iIMkv+Q+PYlNRnlpQogsAdTs
|
|
31
31
|
-----END CERTIFICATE-----
|
|
32
|
-
date: 2013-08-
|
|
32
|
+
date: 2013-08-22 00:00:00.000000000 Z
|
|
33
33
|
dependencies:
|
|
34
34
|
- !ruby/object:Gem::Dependency
|
|
35
35
|
name: rexle
|
metadata.gz.sig
CHANGED
|
Binary file
|