hippo 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +2 -0
- data/lib/hippo/field.rb +1 -1
- data/lib/hippo/parser/segment.rb +1 -1
- data/lib/hippo/segments/base.rb +1 -1
- data/lib/hippo/version.rb +1 -1
- metadata +4 -4
data/CHANGELOG
CHANGED
data/lib/hippo/field.rb
CHANGED
@@ -127,7 +127,7 @@ module Hippo
|
|
127
127
|
when "String"
|
128
128
|
format = case value
|
129
129
|
when /\A\d{6}\z/ then '%y%m%d'
|
130
|
-
when /\A\d{8}\z/ then '%Y
|
130
|
+
when /\A\d{8}\z/ then '%Y%m%d'
|
131
131
|
when /\A(\d{8})-(\d{8})\z/ then
|
132
132
|
return Date.parse($1, '%Y%m%d')..Date.parse($2, '%Y%m%d')
|
133
133
|
else
|
data/lib/hippo/parser/segment.rb
CHANGED
data/lib/hippo/segments/base.rb
CHANGED
@@ -146,8 +146,8 @@ module Hippo::Segments
|
|
146
146
|
end
|
147
147
|
|
148
148
|
unless self.class.fixed_width
|
149
|
-
output = output.gsub(repeating_composite_separator_regexp, @field_separator)
|
150
149
|
output = output.gsub(empty_field_regexp,'\1\2')
|
150
|
+
output = output.gsub(repeating_composite_separator_regexp, @field_separator)
|
151
151
|
end
|
152
152
|
|
153
153
|
output += @segment_separator
|
data/lib/hippo/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: hippo
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2012-09-
|
13
|
+
date: 2012-09-14 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: minitest
|
@@ -341,7 +341,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
341
341
|
version: '0'
|
342
342
|
segments:
|
343
343
|
- 0
|
344
|
-
hash:
|
344
|
+
hash: 734824617931556958
|
345
345
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
346
346
|
none: false
|
347
347
|
requirements:
|
@@ -350,7 +350,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
350
350
|
version: '0'
|
351
351
|
segments:
|
352
352
|
- 0
|
353
|
-
hash:
|
353
|
+
hash: 734824617931556958
|
354
354
|
requirements: []
|
355
355
|
rubyforge_project: hippo
|
356
356
|
rubygems_version: 1.8.24
|