ap_dates 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/ap_dates/date_formats.rb +11 -7
  2. metadata +3 -3
@@ -1,9 +1,13 @@
1
- ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!(
2
- :ap => lambda do |time|
3
- if [3, 4, 5, 6, 7].include?(time.month)
4
- time.strftime("%B %e, %Y").squeeze(" ")
5
- else
6
- time.strftime("%b. %e, %Y").squeeze(" ")
7
- end
1
+ ap_fmt = lambda do |time|
2
+ if [3, 4, 5, 6, 7].include?(time.month)
3
+ time.strftime("%B %e, %Y").squeeze(" ")
4
+ else
5
+ time.strftime("%b. %e, %Y").squeeze(" ")
8
6
  end
7
+ end
8
+ ActiveSupport::CoreExtensions::Time::Conversions::DATE_FORMATS.merge!(
9
+ :ap => ap_fmt
10
+ )
11
+ ActiveSupport::CoreExtensions::Date::Conversions::DATE_FORMATS.merge!(
12
+ :ap => ap_fmt
9
13
  )
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ap_dates
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
  - Michael D. Ivey