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 CHANGED
@@ -1,3 +1,5 @@
1
+ 0.4.1 - 2012/09/14
2
+ * Fix major issue (stupid typo) with Date parsing.
1
3
  0.4.0 - 2012/09/13
2
4
  * Do not hard-code separators in Hippo::Segments::Base#to_s.
3
5
  * Properly escape regexps involving separators.
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%`%d'
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
@@ -32,4 +32,4 @@ module Hippo
32
32
  end
33
33
  end
34
34
  end
35
- end
35
+ end
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Hippo
2
- VERSION = "0.4.0"
2
+ VERSION = "0.4.1"
3
3
  end
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.0
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 00:00:00.000000000 Z
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: 3757696545577319633
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: 3757696545577319633
353
+ hash: 734824617931556958
354
354
  requirements: []
355
355
  rubyforge_project: hippo
356
356
  rubygems_version: 1.8.24