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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 63fcca29eb30008f424d14a2872a7cade820c8a8
4
- data.tar.gz: 738190e9ee511aea1cc67949c6398f04d1348790
3
+ metadata.gz: ba4d81ba1913fb8d851aa1d2358363bb2c9df621
4
+ data.tar.gz: 3ca82726a472a6c4f7a85476ad907d91a1e4180b
5
5
  SHA512:
6
- metadata.gz: 930e7631aa97258d31309c69fd1e1ad0151508c196914c0f2749f5e69d978472e89cc121e6351826c784de01a8ba7deb8a01d52a6fc7371720575d6bdd879d90
7
- data.tar.gz: 743f03e58c875ca0cd8ef3d8b52e674a23154ed94869ada4f632c073c424308e0666b5d62ae56ca0302bc05ab85e8b8c92c48452a7e67bc883c17cd6131550f7
6
+ metadata.gz: 124b8dac92288c6e1740488e58aa78c89e709d9d7d2b1e9cf0f3a2dae9986aa04179001367d0d554c96e049ab4bd140265a2bddb6518fcd279cd0efedc3c9fea
7
+ data.tar.gz: 45af980b0d503ce080d7e8f651796f681f3186019a289768aea67e08053c999de42f16eb390aadef73b73cf799701515a40de15bc612a64ce7441057336cede6
@@ -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
- if val
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.strftime('%m%d%Y%H%M%S') if 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
@@ -1,5 +1,5 @@
1
1
  module Metro2
2
- VERSION = "1.1.6"
2
+ VERSION = "1.1.7"
3
3
 
4
4
  def self.version_string
5
5
  str = VERSION.split('.')
Binary file
@@ -27,12 +27,12 @@ describe Metro2::Records::HeaderSegment do
27
27
  '09142014',
28
28
  '09152014',
29
29
  '09012014',
30
- '00000001',
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
- '01106',
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.6
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-10-04 00:00:00.000000000 Z
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.1
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