ap_dates 0.0.1 → 0.0.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/lib/ap_dates/date_formats.rb +11 -7
 - metadata +3 -3
 
| 
         @@ -1,9 +1,13 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
             
     | 
| 
       2 
     | 
    
         
            -
               
     | 
| 
       3 
     | 
    
         
            -
                 
     | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
                 
     | 
| 
       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:  
     | 
| 
      
 4 
     | 
    
         
            +
              hash: 27
         
     | 
| 
       5 
5 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       6 
6 
     | 
    
         
             
              segments: 
         
     | 
| 
       7 
7 
     | 
    
         
             
              - 0
         
     | 
| 
       8 
8 
     | 
    
         
             
              - 0
         
     | 
| 
       9 
     | 
    
         
            -
              -  
     | 
| 
       10 
     | 
    
         
            -
              version: 0.0. 
     | 
| 
      
 9 
     | 
    
         
            +
              - 2
         
     | 
| 
      
 10 
     | 
    
         
            +
              version: 0.0.2
         
     | 
| 
       11 
11 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       12 
12 
     | 
    
         
             
            authors: 
         
     | 
| 
       13 
13 
     | 
    
         
             
            - Michael D. Ivey
         
     |