date_formatter 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/date_formatter.rb +1 -1
  2. metadata +3 -3
@@ -10,7 +10,7 @@ module DateFormatter
10
10
 
11
11
  # call strftime on the given date, with this class's strftime_date_string
12
12
  def format_date value
13
- value.strftime strftime_date_string
13
+ value.respond_to?(:strftime) ? value.strftime(strftime_date_string) : value
14
14
  end
15
15
 
16
16
  # generic date formatter
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: date_formatter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 1
10
- version: 0.0.1
9
+ - 2
10
+ version: 0.0.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Dev Fu!