pd_x12 1.5.0 → 1.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +4 -0
- data/lib/x12/loop.rb +9 -1
- data/lib/x12/version.rb +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: dc22b179cb550cb1ba4cc95966233c6daabf9a7d
|
4
|
+
data.tar.gz: 7168ef0a7ba0464be5b7dafa355b74e868337614
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1f892e31432652ea71b3ff9ae6962ab3fac22bb0948dce55c8203f5b9b6e9810a45bf2b8410341cc58e4a9e2abc0f6857389b31f616bc93f801379d67655f31c
|
7
|
+
data.tar.gz: 1dd43554d483820df3f89dc01bce3689638852a422e5c5f91806154a0be5397078205fa8a4543ec2860afa831d59bb24998693aef4d6f9cf0ada1a51c9ac6c2d
|
data/README.md
CHANGED
@@ -57,6 +57,10 @@ The authors of the project were inspired by the following works:
|
|
57
57
|
|
58
58
|
|
59
59
|
# Change Log
|
60
|
+
4/16/15 - release 1.5.1
|
61
|
+
* Added inpsect method to loop class to resolve infinite loop due to changes with inspect and to_s methods in ruby 2.0.0
|
62
|
+
* Thank you to Wylan for troubleshooting and providing the fix
|
63
|
+
|
60
64
|
11/8/14 - release 1.5.0
|
61
65
|
* converted from ReXML to LibXML for speed improvement on XML parsing
|
62
66
|
|
data/lib/x12/loop.rb
CHANGED
@@ -72,7 +72,15 @@ module X12
|
|
72
72
|
''
|
73
73
|
end
|
74
74
|
end # render
|
75
|
-
|
75
|
+
|
76
|
+
|
77
|
+
# Formats a printable string containing the loops element's content
|
78
|
+
# added to provide compatability with ruby > 2.0.0
|
79
|
+
def inspect
|
80
|
+
"#{self.class.to_s.sub(/^.*::/, '')} (#{name}) #{repeats} =<#{parsed_str}, #{next_repeat.inspect}> ".gsub(/\\*\"/, '"')
|
81
|
+
end
|
82
|
+
|
83
|
+
|
76
84
|
# Provides looping through repeats of a message
|
77
85
|
def each
|
78
86
|
res = self.to_a
|
data/lib/x12/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pd_x12
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.5.
|
4
|
+
version: 1.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Marty Petersen
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2015-04-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: libxml-ruby
|
@@ -1915,7 +1915,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
1915
1915
|
version: '0'
|
1916
1916
|
requirements: []
|
1917
1917
|
rubyforge_project:
|
1918
|
-
rubygems_version: 2.
|
1918
|
+
rubygems_version: 2.4.6
|
1919
1919
|
signing_key:
|
1920
1920
|
specification_version: 4
|
1921
1921
|
summary: A gem to handle parsing and generation of ANSI X12 documents
|