fat_date 0.1.0
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.
- checksums.yaml +7 -0
 - data/.rspec +3 -0
 - data/.rubocop.yml +9 -0
 - data/.ruby-version +1 -0
 - data/CHANGELOG.org +5 -0
 - data/LICENSE.txt +21 -0
 - data/README.org +720 -0
 - data/Rakefile +12 -0
 - data/lib/fat_date/date.rb +2051 -0
 - data/lib/fat_date/patches.rb +20 -0
 - data/lib/fat_date/version.rb +5 -0
 - data/lib/fat_date.rb +18 -0
 - data/sig/fat_date.rbs +4 -0
 - metadata +73 -0
 
| 
         @@ -0,0 +1,20 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            # Provide #positive? and #negative? for older versions of Ruby.
         
     | 
| 
      
 4 
     | 
    
         
            +
            unless 2.respond_to?(:positive?)
         
     | 
| 
      
 5 
     | 
    
         
            +
              # Patch Numeric
         
     | 
| 
      
 6 
     | 
    
         
            +
              class Numeric
         
     | 
| 
      
 7 
     | 
    
         
            +
                def positive?
         
     | 
| 
      
 8 
     | 
    
         
            +
                  self > 0
         
     | 
| 
      
 9 
     | 
    
         
            +
                end
         
     | 
| 
      
 10 
     | 
    
         
            +
              end
         
     | 
| 
      
 11 
     | 
    
         
            +
            end
         
     | 
| 
      
 12 
     | 
    
         
            +
             
     | 
| 
      
 13 
     | 
    
         
            +
            unless 2.respond_to?(:negative?)
         
     | 
| 
      
 14 
     | 
    
         
            +
              # Patch Numeric
         
     | 
| 
      
 15 
     | 
    
         
            +
              class Numeric
         
     | 
| 
      
 16 
     | 
    
         
            +
                def negative?
         
     | 
| 
      
 17 
     | 
    
         
            +
                  self < 0
         
     | 
| 
      
 18 
     | 
    
         
            +
                end
         
     | 
| 
      
 19 
     | 
    
         
            +
              end
         
     | 
| 
      
 20 
     | 
    
         
            +
            end
         
     | 
    
        data/lib/fat_date.rb
    ADDED
    
    | 
         @@ -0,0 +1,18 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # frozen_string_literal: true
         
     | 
| 
      
 2 
     | 
    
         
            +
             
     | 
| 
      
 3 
     | 
    
         
            +
            require 'active_support'
         
     | 
| 
      
 4 
     | 
    
         
            +
            # require 'active_support/core_ext/object/blank'
         
     | 
| 
      
 5 
     | 
    
         
            +
            # require 'active_support/core_ext/object/deep_dup'
         
     | 
| 
      
 6 
     | 
    
         
            +
            require "active_support/isolated_execution_state"
         
     | 
| 
      
 7 
     | 
    
         
            +
            require "active_support/core_ext/date"
         
     | 
| 
      
 8 
     | 
    
         
            +
            require "active_support/core_ext/time"
         
     | 
| 
      
 9 
     | 
    
         
            +
            require "active_support/core_ext/numeric/time"
         
     | 
| 
      
 10 
     | 
    
         
            +
            require "active_support/core_ext/integer/time"
         
     | 
| 
      
 11 
     | 
    
         
            +
             
     | 
| 
      
 12 
     | 
    
         
            +
            require 'fat_core/string'
         
     | 
| 
      
 13 
     | 
    
         
            +
             
     | 
| 
      
 14 
     | 
    
         
            +
            require_relative "fat_date/version"
         
     | 
| 
      
 15 
     | 
    
         
            +
            require_relative "fat_date/patches"
         
     | 
| 
      
 16 
     | 
    
         
            +
            require_relative "fat_date/date"
         
     | 
| 
      
 17 
     | 
    
         
            +
             
     | 
| 
      
 18 
     | 
    
         
            +
            require 'debug'
         
     | 
    
        data/sig/fat_date.rbs
    ADDED
    
    
    
        metadata
    ADDED
    
    | 
         @@ -0,0 +1,73 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            --- !ruby/object:Gem::Specification
         
     | 
| 
      
 2 
     | 
    
         
            +
            name: fat_date
         
     | 
| 
      
 3 
     | 
    
         
            +
            version: !ruby/object:Gem::Version
         
     | 
| 
      
 4 
     | 
    
         
            +
              version: 0.1.0
         
     | 
| 
      
 5 
     | 
    
         
            +
            platform: ruby
         
     | 
| 
      
 6 
     | 
    
         
            +
            authors:
         
     | 
| 
      
 7 
     | 
    
         
            +
            - Daniel E. Doherty
         
     | 
| 
      
 8 
     | 
    
         
            +
            bindir: bin
         
     | 
| 
      
 9 
     | 
    
         
            +
            cert_chain: []
         
     | 
| 
      
 10 
     | 
    
         
            +
            date: 1980-01-02 00:00:00.000000000 Z
         
     | 
| 
      
 11 
     | 
    
         
            +
            dependencies:
         
     | 
| 
      
 12 
     | 
    
         
            +
            - !ruby/object:Gem::Dependency
         
     | 
| 
      
 13 
     | 
    
         
            +
              name: activesupport
         
     | 
| 
      
 14 
     | 
    
         
            +
              requirement: !ruby/object:Gem::Requirement
         
     | 
| 
      
 15 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 16 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 17 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 18 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 19 
     | 
    
         
            +
              type: :runtime
         
     | 
| 
      
 20 
     | 
    
         
            +
              prerelease: false
         
     | 
| 
      
 21 
     | 
    
         
            +
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
      
 22 
     | 
    
         
            +
                requirements:
         
     | 
| 
      
 23 
     | 
    
         
            +
                - - ">="
         
     | 
| 
      
 24 
     | 
    
         
            +
                  - !ruby/object:Gem::Version
         
     | 
| 
      
 25 
     | 
    
         
            +
                    version: '0'
         
     | 
| 
      
 26 
     | 
    
         
            +
            description: |
         
     | 
| 
      
 27 
     | 
    
         
            +
              FatDate provides useful extensions to the Date class including a way to
         
     | 
| 
      
 28 
     | 
    
         
            +
              specify dates via a number of rich 'specs', strings that allow specifying
         
     | 
| 
      
 29 
     | 
    
         
            +
              dates using calendar-based concepts, such as years, quarters, months,
         
     | 
| 
      
 30 
     | 
    
         
            +
              semimonths, biweeks, weeks, and days.  Also, provide methods for determining
         
     | 
| 
      
 31 
     | 
    
         
            +
              whether a given Date is a federal or NYSE holidays, and more.
         
     | 
| 
      
 32 
     | 
    
         
            +
            email:
         
     | 
| 
      
 33 
     | 
    
         
            +
            - ded@ddoherty.net
         
     | 
| 
      
 34 
     | 
    
         
            +
            executables: []
         
     | 
| 
      
 35 
     | 
    
         
            +
            extensions: []
         
     | 
| 
      
 36 
     | 
    
         
            +
            extra_rdoc_files: []
         
     | 
| 
      
 37 
     | 
    
         
            +
            files:
         
     | 
| 
      
 38 
     | 
    
         
            +
            - ".rspec"
         
     | 
| 
      
 39 
     | 
    
         
            +
            - ".rubocop.yml"
         
     | 
| 
      
 40 
     | 
    
         
            +
            - ".ruby-version"
         
     | 
| 
      
 41 
     | 
    
         
            +
            - CHANGELOG.org
         
     | 
| 
      
 42 
     | 
    
         
            +
            - LICENSE.txt
         
     | 
| 
      
 43 
     | 
    
         
            +
            - README.org
         
     | 
| 
      
 44 
     | 
    
         
            +
            - Rakefile
         
     | 
| 
      
 45 
     | 
    
         
            +
            - lib/fat_date.rb
         
     | 
| 
      
 46 
     | 
    
         
            +
            - lib/fat_date/date.rb
         
     | 
| 
      
 47 
     | 
    
         
            +
            - lib/fat_date/patches.rb
         
     | 
| 
      
 48 
     | 
    
         
            +
            - lib/fat_date/version.rb
         
     | 
| 
      
 49 
     | 
    
         
            +
            - sig/fat_date.rbs
         
     | 
| 
      
 50 
     | 
    
         
            +
            homepage: https://github.com/ddoherty03/fat_date.git
         
     | 
| 
      
 51 
     | 
    
         
            +
            licenses:
         
     | 
| 
      
 52 
     | 
    
         
            +
            - MIT
         
     | 
| 
      
 53 
     | 
    
         
            +
            metadata:
         
     | 
| 
      
 54 
     | 
    
         
            +
              homepage_uri: https://github.com/ddoherty03/fat_date.git
         
     | 
| 
      
 55 
     | 
    
         
            +
              source_code_uri: https://github.com/ddoherty03/fat_date.git
         
     | 
| 
      
 56 
     | 
    
         
            +
            rdoc_options: []
         
     | 
| 
      
 57 
     | 
    
         
            +
            require_paths:
         
     | 
| 
      
 58 
     | 
    
         
            +
            - lib
         
     | 
| 
      
 59 
     | 
    
         
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 60 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 61 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 62 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 63 
     | 
    
         
            +
                  version: 3.1.0
         
     | 
| 
      
 64 
     | 
    
         
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         
     | 
| 
      
 65 
     | 
    
         
            +
              requirements:
         
     | 
| 
      
 66 
     | 
    
         
            +
              - - ">="
         
     | 
| 
      
 67 
     | 
    
         
            +
                - !ruby/object:Gem::Version
         
     | 
| 
      
 68 
     | 
    
         
            +
                  version: '0'
         
     | 
| 
      
 69 
     | 
    
         
            +
            requirements: []
         
     | 
| 
      
 70 
     | 
    
         
            +
            rubygems_version: 3.6.7
         
     | 
| 
      
 71 
     | 
    
         
            +
            specification_version: 4
         
     | 
| 
      
 72 
     | 
    
         
            +
            summary: Useful extensions to the Date class.
         
     | 
| 
      
 73 
     | 
    
         
            +
            test_files: []
         
     |