metro_2 1.1.6 → 1.1.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/metro_2/fields.rb +2 -6
- data/lib/metro_2/version.rb +1 -1
- data/metro_2-1.1.6.gem +0 -0
- data/spec/records/header_segment_spec.rb +2 -2
- metadata +4 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: ba4d81ba1913fb8d851aa1d2358363bb2c9df621
|
4
|
+
data.tar.gz: 3ca82726a472a6c4f7a85476ad907d91a1e4180b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 124b8dac92288c6e1740488e58aa78c89e709d9d7d2b1e9cf0f3a2dae9986aa04179001367d0d554c96e049ab4bd140265a2bddb6518fcd279cd0efedc3c9fea
|
7
|
+
data.tar.gz: 45af980b0d503ce080d7e8f651796f681f3186019a289768aea67e08053c999de42f16eb390aadef73b73cf799701515a40de15bc612a64ce7441057336cede6
|
data/lib/metro_2/fields.rb
CHANGED
@@ -91,11 +91,7 @@ module Metro2
|
|
91
91
|
define_method "#{name}_to_metro2" do
|
92
92
|
# Right justified and zero-filled
|
93
93
|
val = instance_variable_get("@#{name}")
|
94
|
-
|
95
|
-
val = val.strftime('%m%d%Y')
|
96
|
-
elsif name == :program_revision_date || name == :last_payment_date
|
97
|
-
val = '01'
|
98
|
-
end
|
94
|
+
val = val&.strftime('%m%d%Y')
|
99
95
|
|
100
96
|
Metro2.numeric_to_metro2(val, 8, false)
|
101
97
|
end
|
@@ -118,7 +114,7 @@ module Metro2
|
|
118
114
|
define_method "#{name}_to_metro2" do
|
119
115
|
# Right justified and zero-filled
|
120
116
|
val = instance_variable_get("@#{name}")
|
121
|
-
val = val
|
117
|
+
val = val&.strftime('%m%d%Y%H%M%S')
|
122
118
|
Metro2.numeric_to_metro2(val, 14, false)
|
123
119
|
end
|
124
120
|
end
|
data/lib/metro_2/version.rb
CHANGED
data/metro_2-1.1.6.gem
ADDED
Binary file
|
@@ -27,12 +27,12 @@ describe Metro2::Records::HeaderSegment do
|
|
27
27
|
'09142014',
|
28
28
|
'09152014',
|
29
29
|
'09012014',
|
30
|
-
'
|
30
|
+
'00000000',
|
31
31
|
'Credit Reporter'.ljust(40, ' '),
|
32
32
|
'123 Report Dr Address CA 91111'.ljust(96, ' '),
|
33
33
|
'5555555555',
|
34
34
|
'Upstart Engineer metro 2 gem'.ljust(40, ' '),
|
35
|
-
'
|
35
|
+
'01107',
|
36
36
|
' ' * 156
|
37
37
|
]
|
38
38
|
header_str = @header.to_metro2
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: metro_2
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Mascarenhas
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-11-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -79,6 +79,7 @@ files:
|
|
79
79
|
- metro_2-1.1.3.gem
|
80
80
|
- metro_2-1.1.4.gem
|
81
81
|
- metro_2-1.1.5.gem
|
82
|
+
- metro_2-1.1.6.gem
|
82
83
|
- metro_2.gemspec
|
83
84
|
- spec/records/base_segment_spec.rb
|
84
85
|
- spec/records/header_segment_spec.rb
|
@@ -104,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
104
105
|
version: '0'
|
105
106
|
requirements: []
|
106
107
|
rubyforge_project:
|
107
|
-
rubygems_version: 2.5.
|
108
|
+
rubygems_version: 2.5.2
|
108
109
|
signing_key:
|
109
110
|
specification_version: 4
|
110
111
|
summary: Create Metro 2 format files for credit reporting
|