dynarex 1.5.32 → 1.5.33
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 +10 -0
- metadata +3 -3
- 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: 6b318c41af7aed8d01c068871e2c2436e1cecfa9
|
|
4
|
+
data.tar.gz: 1c9b96b6266dc0656dbd33d480ef7df269bd771e
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 3230717672dc310194513415c27ea582ee15b23dec60c1bcd7f8c0d88e8a6cdb4a7c9545af7048cdfc033db1d67f6b7ba42e140f0070c65db87db8436d83c4e3
|
|
7
|
+
data.tar.gz: 6f0a660d767a7dd7976695e5daab287177c95fbfc6dc8da00e6a1b53700efcad4d6047373c4043b8512303cdc76e8b729dc45bc7c9c14260f886b2cc30f2d33d
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/dynarex.rb
CHANGED
|
@@ -42,6 +42,7 @@ class Dynarex
|
|
|
42
42
|
|
|
43
43
|
@opt = {username: nil, password: nil}.merge opt
|
|
44
44
|
@delimiter = ''
|
|
45
|
+
@spaces_delimited = false
|
|
45
46
|
@order = 'ascending'
|
|
46
47
|
|
|
47
48
|
openx(rawx.clone) if rawx
|
|
@@ -70,6 +71,11 @@ class Dynarex
|
|
|
70
71
|
|
|
71
72
|
def delimiter=(separator)
|
|
72
73
|
|
|
74
|
+
if separator == :spaces then
|
|
75
|
+
@spaces_delimited = true
|
|
76
|
+
separator = ' # '
|
|
77
|
+
end
|
|
78
|
+
|
|
73
79
|
@delimiter = separator
|
|
74
80
|
|
|
75
81
|
if separator.length > 0 then
|
|
@@ -737,6 +743,10 @@ EOF
|
|
|
737
743
|
end
|
|
738
744
|
|
|
739
745
|
def string_parse(buffer)
|
|
746
|
+
|
|
747
|
+
if @spaces_delimited then
|
|
748
|
+
buffer = buffer.lines.map{|x| x.gsub(/\s{2,}/,' # ')}.join
|
|
749
|
+
end
|
|
740
750
|
|
|
741
751
|
buffer.gsub!("\r",'')
|
|
742
752
|
buffer.gsub!(/\n-{4,}\n/,"\n\n")
|
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.5.
|
|
4
|
+
version: 1.5.33
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- James Robertson
|
|
@@ -31,7 +31,7 @@ cert_chain:
|
|
|
31
31
|
zafTuKRozNy5wCw7Z32VaDGcJ+yTPq73CrcPrNyaoxqGfU0qNsh6oGvwrq4Q1k4j
|
|
32
32
|
Pz2GWE7KigXTBg==
|
|
33
33
|
-----END CERTIFICATE-----
|
|
34
|
-
date: 2015-07-
|
|
34
|
+
date: 2015-07-16 00:00:00.000000000 Z
|
|
35
35
|
dependencies:
|
|
36
36
|
- !ruby/object:Gem::Dependency
|
|
37
37
|
name: dynarex-import
|
|
@@ -260,7 +260,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
|
260
260
|
version: '0'
|
|
261
261
|
requirements: []
|
|
262
262
|
rubyforge_project:
|
|
263
|
-
rubygems_version: 2.4.
|
|
263
|
+
rubygems_version: 2.4.8
|
|
264
264
|
signing_key:
|
|
265
265
|
specification_version: 4
|
|
266
266
|
summary: The Dynarex gem can create, read, update or delete rows of Dynarex flavoured
|
metadata.gz.sig
CHANGED
|
Binary file
|