cache_keeper 0.5.0 → 0.6.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
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA256:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: e3d6e043fb7e1bc65aaf6ca5c4e35db60822b27d41e8055f53cf24d1624e9374
         | 
| 4 | 
            +
              data.tar.gz: 040cd7ceb6ab94ff67c940d3378b29e076b62cf0d10c8ff40c4f0c90a3b3be02
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 6bb884305464e91b0a0eb2aaa329cf884db1dd6305bea38e49d910eb9e4ba99d280b27049d3d8e0bca09862b2244357f6461e6e865c0b7b90d96b575431f1dcb
         | 
| 7 | 
            +
              data.tar.gz: 930b08b46a524b2eaab7f50956d0b883e763eb460011c6158709841feddecb8f9dfbefa80ee17e9499b2faf52d201af3452f98cd8c70c7f1fb4e9c46647c5f01
         | 
    
        data/README.md
    CHANGED
    
    | @@ -123,6 +123,10 @@ Rails.application.configure do | |
| 123 123 | 
             
              # The queue to use for the refresh jobs.
         | 
| 124 124 | 
             
              # Default: nil (uses the default queue)
         | 
| 125 125 | 
             
              config.cache_keeper.queues.refresh = :low_priority
         | 
| 126 | 
            +
             | 
| 127 | 
            +
              # The parent class of the refresh jobs.
         | 
| 128 | 
            +
              # Default: "ActiveJob::Base"
         | 
| 129 | 
            +
              config.cache_keeper.active_job_parent_class = "ApplicationJob"
         | 
| 126 130 | 
             
            end
         | 
| 127 131 | 
             
            ```
         | 
| 128 132 |  | 
| @@ -2,6 +2,7 @@ module CacheKeeper | |
| 2 2 | 
             
              class Configuration
         | 
| 3 3 | 
             
                DEFAULT_MUST_REVALIDATE = false
         | 
| 4 4 | 
             
                DEFAULT_QUEUES = {}.freeze
         | 
| 5 | 
            +
                DEFAULT_ACTIVE_JOB_PARENT_CLASS = "ActiveJob::Base".freeze
         | 
| 5 6 |  | 
| 6 7 | 
             
                def must_revalidate
         | 
| 7 8 | 
             
                  return rails_config.must_revalidate unless rails_config.must_revalidate.nil?
         | 
| @@ -13,6 +14,10 @@ module CacheKeeper | |
| 13 14 | 
             
                  rails_config.queues || DEFAULT_QUEUES
         | 
| 14 15 | 
             
                end
         | 
| 15 16 |  | 
| 17 | 
            +
                def active_job_parent_class
         | 
| 18 | 
            +
                  rails_config.active_job_parent_class || DEFAULT_ACTIVE_JOB_PARENT_CLASS
         | 
| 19 | 
            +
                end
         | 
| 20 | 
            +
             | 
| 16 21 | 
             
                private
         | 
| 17 22 |  | 
| 18 23 | 
             
                def rails_config
         | 
    
        data/lib/cache_keeper/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            --- !ruby/object:Gem::Specification
         | 
| 2 2 | 
             
            name: cache_keeper
         | 
| 3 3 | 
             
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            -
              version: 0. | 
| 4 | 
            +
              version: 0.6.0
         | 
| 5 5 | 
             
            platform: ruby
         | 
| 6 6 | 
             
            authors:
         | 
| 7 7 | 
             
            - Martin Zamuner
         | 
| @@ -36,6 +36,7 @@ files: | |
| 36 36 | 
             
            - Gemfile
         | 
| 37 37 | 
             
            - MIT-LICENSE
         | 
| 38 38 | 
             
            - README.md
         | 
| 39 | 
            +
            - app/jobs/cache_keeper/active_job_parent_class.rb
         | 
| 39 40 | 
             
            - app/jobs/cache_keeper/autorefresh_job.rb
         | 
| 40 41 | 
             
            - app/jobs/cache_keeper/base_job.rb
         | 
| 41 42 | 
             
            - app/jobs/cache_keeper/refresh_job.rb
         |