dynarex 1.2.44 → 1.2.45
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 +1 -4
- data.tar.gz.sig +0 -0
- data/lib/dynarex.rb +9 -3
- 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: e1ca4f968044d3e8ba4b9548a8a0eedae939a95d
|
|
4
|
+
data.tar.gz: af270503b15683a0b0397580403fa1ce40fffe4e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: ab8d25ec834865544bb4e7fa7b0305bfeee22b5202d861ae9ebe5073e69c7fd0cb13e1865feab1314f66c61bdddaaee65a60e2dd3110eb9931e2cc552a8f65ed
|
|
7
|
+
data.tar.gz: 49f612022c38d1b4657db835341a30bd341ce63a33df5921faef08ab69394b216b4c5dff0172456a0d6f7a0cc59a9acfc69534b6389b3e072ef980f28ce86267
|
checksums.yaml.gz.sig
CHANGED
|
@@ -1,4 +1 @@
|
|
|
1
|
-
|
|
2
|
-
M^�6?��M<����+���
|
|
3
|
-
��O��u��)q�x�ef���� �<�B�
|
|
4
|
-
�dž�gU�+K�1�)����H��غ!� aC�������}얯�<�*G�4N0��5����N�^�u��`% Ut�n�F�Vc�n
|
|
1
|
+
9��������Q��w�k�>STك��*S��Y���F��Ex�GP�8Ie���h��R�wWاNt�`�oG��df�$�ӊ��N%gv%;!u�/Рd�c��^�����t��ަp��&�p����j`;9�S-&�XG,���Z�5�l�L��R�l���r�O2]F��8��'�s`y��т.j0L=�XD�N�s< &2)�<V�"�S ��]Jk-�kb�Rwdݪ<���,ds7Fu�~��
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/dynarex.rb
CHANGED
|
@@ -18,7 +18,8 @@ require 'ostruct'
|
|
|
18
18
|
|
|
19
19
|
class Dynarex
|
|
20
20
|
|
|
21
|
-
attr_accessor :format_mask, :delimiter, :xslt_schema, :schema,
|
|
21
|
+
attr_accessor :format_mask, :delimiter, :xslt_schema, :schema,
|
|
22
|
+
:order, :type, :limit_by
|
|
22
23
|
|
|
23
24
|
|
|
24
25
|
#Create a new dynarex document from 1 of the following options:
|
|
@@ -68,7 +69,7 @@ class Dynarex
|
|
|
68
69
|
def inspect()
|
|
69
70
|
"<object #%s>" % [self.object_id]
|
|
70
71
|
end
|
|
71
|
-
|
|
72
|
+
|
|
72
73
|
def order=(value)
|
|
73
74
|
|
|
74
75
|
self.summary.merge!({order: value})
|
|
@@ -89,6 +90,10 @@ class Dynarex
|
|
|
89
90
|
@type = v
|
|
90
91
|
@summary[:type] = v
|
|
91
92
|
end
|
|
93
|
+
|
|
94
|
+
def limit_by=(val)
|
|
95
|
+
@limit_by = val.to_i
|
|
96
|
+
end
|
|
92
97
|
|
|
93
98
|
# Returns the hash representation of the document summary.
|
|
94
99
|
#
|
|
@@ -676,6 +681,7 @@ EOF
|
|
|
676
681
|
#refresh_doc
|
|
677
682
|
#load_records
|
|
678
683
|
@flat_records = @records.values.map{|x| x[:body]}
|
|
684
|
+
@flat_records = @flat_records.take @limit_by if @limit_by
|
|
679
685
|
rebuild_doc
|
|
680
686
|
self
|
|
681
687
|
end
|
|
@@ -816,7 +822,7 @@ EOF
|
|
|
816
822
|
end
|
|
817
823
|
|
|
818
824
|
result.merge body[@default_key.to_sym] => {id: id, created: created, last_modified: last_modified, body: body}
|
|
819
|
-
end
|
|
825
|
+
end
|
|
820
826
|
|
|
821
827
|
end
|
|
822
828
|
|
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.45
|
|
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-31 00:00:00.000000000 Z
|
|
33
33
|
dependencies:
|
|
34
34
|
- !ruby/object:Gem::Dependency
|
|
35
35
|
name: rexle
|
metadata.gz.sig
CHANGED
|
Binary file
|