fog-core 2.1.0 → 2.4.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 +5 -5
 - data/.github/dependabot.yml +12 -0
 - data/.github/workflows/ruby.yml +18 -0
 - data/.github/workflows/stale.yml +9 -0
 - data/.rubocop.yml +16 -12
 - data/.rubocop_todo.yml +724 -0
 - data/CONTRIBUTING.md +5 -1
 - data/Gemfile +1 -1
 - data/README.md +1 -1
 - data/Rakefile +2 -14
 - data/changelog.md +224 -141
 - data/fog-core.gemspec +11 -8
 - data/lib/fog/account.rb +0 -16
 - data/lib/fog/billing.rb +0 -11
 - data/lib/fog/compute/models/server.rb +7 -3
 - data/lib/fog/compute.rb +2 -24
 - data/lib/fog/core/association.rb +1 -0
 - data/lib/fog/core/attributes/default.rb +7 -0
 - data/lib/fog/core/attributes.rb +42 -5
 - data/lib/fog/core/cache.rb +58 -55
 - data/lib/fog/core/collection.rb +9 -3
 - data/lib/fog/core/connection.rb +4 -6
 - data/lib/fog/core/current_machine.rb +1 -1
 - data/lib/fog/core/errors.rb +1 -1
 - data/lib/fog/core/logger.rb +5 -2
 - data/lib/fog/core/mock.rb +6 -1
 - data/lib/fog/core/model.rb +34 -5
 - data/lib/fog/core/provider.rb +37 -4
 - data/lib/fog/core/scp.rb +16 -11
 - data/lib/fog/core/service.rb +4 -4
 - data/lib/fog/core/services_mixin.rb +62 -10
 - data/lib/fog/core/ssh.rb +49 -25
 - data/lib/fog/core/stringify_keys.rb +0 -2
 - data/lib/fog/core/time.rb +2 -2
 - data/lib/fog/core/uuid.rb +2 -8
 - data/lib/fog/core/version.rb +1 -1
 - data/lib/fog/core/wait_for.rb +2 -1
 - data/lib/fog/core/wait_for_defaults.rb +2 -0
 - data/lib/fog/core.rb +57 -58
 - data/lib/fog/dns.rb +0 -11
 - data/lib/fog/formatador.rb +7 -6
 - data/lib/fog/monitoring.rb +0 -11
 - data/lib/fog/network.rb +0 -12
 - data/lib/fog/schema/data_validator.rb +1 -0
 - data/lib/fog/storage.rb +15 -29
 - data/lib/fog/support.rb +0 -12
 - data/lib/fog/test_helpers/collection_helper.rb +2 -0
 - data/lib/fog/test_helpers/formats_helper.rb +2 -2
 - data/lib/fog/test_helpers/helper.rb +3 -3
 - data/lib/fog/test_helpers/minitest/assertions.rb +1 -1
 - data/lib/fog/test_helpers/minitest/expectations.rb +1 -1
 - data/lib/fog/test_helpers/mock_helper.rb +84 -84
 - data/lib/fog/test_helpers/succeeds_helper.rb +2 -2
 - data/lib/fog/test_helpers/types_helper.rb +1 -0
 - data/lib/fog/vpn.rb +0 -12
 - data/lib/tasks/test_task.rb +2 -2
 - data/spec/compute/models/server_spec.rb +7 -7
 - data/spec/compute_spec.rb +33 -33
 - data/spec/connection_spec.rb +11 -9
 - data/spec/core/cache_spec.rb +52 -16
 - data/spec/core/collection_spec.rb +24 -0
 - data/spec/core/model_spec.rb +36 -3
 - data/spec/core/stringify_keys_spec.rb +3 -3
 - data/spec/core/whitelist_keys_spec.rb +2 -2
 - data/spec/current_machine_spec.rb +2 -2
 - data/spec/fog_attribute_spec.rb +183 -163
 - data/spec/formatador_spec.rb +7 -7
 - data/spec/identity_spec.rb +32 -32
 - data/spec/mocking_spec.rb +3 -3
 - data/spec/service_spec.rb +19 -19
 - data/spec/spec_helper.rb +3 -8
 - data/spec/storage_spec.rb +33 -35
 - data/spec/test_helpers/formats_helper_spec.rb +8 -8
 - data/spec/test_helpers/schema_validator_spec.rb +8 -8
 - data/spec/utils_spec.rb +6 -6
 - data/spec/wait_for_spec.rb +2 -2
 - metadata +57 -59
 - data/.travis.yml +0 -39
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
     | 
    
         
            -
             
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 2 
     | 
    
         
            +
            SHA256:
         
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: db8a9288ea6ab96cad44beb5929626aa0a46471f97eb59847b28959e6da86c24
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: c3511cc0aa13da61f238f973aea137942c59c6b7965153e179d3b3f5929720cc
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 9b283a4a4236e3bc1fd9d42322d8fa30992f3f3fc76bd5d117d7dc04b22caa3c835e39bc236e8160d860a373e7f370660f6f3e13cbb34caf1d1767e56346c3cf
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: db4ed981ea6177822599954a389865959d56e5aab1421c4161f9f33b090e73d28966b6c2a16f56ba724d99cb9216460ce0fd0d4a72a48d5f2cbb7df4fd8fd6a5
         
     | 
| 
         @@ -0,0 +1,12 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            version: 2
         
     | 
| 
      
 2 
     | 
    
         
            +
            updates:
         
     | 
| 
      
 3 
     | 
    
         
            +
              - package-ecosystem: "bundler"
         
     | 
| 
      
 4 
     | 
    
         
            +
                directory: "/"
         
     | 
| 
      
 5 
     | 
    
         
            +
                schedule:
         
     | 
| 
      
 6 
     | 
    
         
            +
                  interval: "daily"
         
     | 
| 
      
 7 
     | 
    
         
            +
                allow:
         
     | 
| 
      
 8 
     | 
    
         
            +
                  - dependency-type: "all" # update both gemspec and lock
         
     | 
| 
      
 9 
     | 
    
         
            +
              - package-ecosystem: "github-actions"
         
     | 
| 
      
 10 
     | 
    
         
            +
                directory: "/"
         
     | 
| 
      
 11 
     | 
    
         
            +
                schedule:
         
     | 
| 
      
 12 
     | 
    
         
            +
                  interval: "daily"
         
     | 
| 
         @@ -0,0 +1,18 @@ 
     | 
|
| 
      
 1 
     | 
    
         
            +
            # This workflow uses actions that are not certified by GitHub.
         
     | 
| 
      
 2 
     | 
    
         
            +
            # They are provided by a third-party and are governed by
         
     | 
| 
      
 3 
     | 
    
         
            +
            # separate terms of service, privacy policy, and support
         
     | 
| 
      
 4 
     | 
    
         
            +
            # documentation.
         
     | 
| 
      
 5 
     | 
    
         
            +
            # This workflow will download a prebuilt Ruby version, install dependencies and run tests with Rake
         
     | 
| 
      
 6 
     | 
    
         
            +
            # For more information see: https://github.com/marketplace/actions/setup-ruby-jruby-and-truffleruby
         
     | 
| 
      
 7 
     | 
    
         
            +
             
     | 
| 
      
 8 
     | 
    
         
            +
            name: Ruby
         
     | 
| 
      
 9 
     | 
    
         
            +
             
     | 
| 
      
 10 
     | 
    
         
            +
            on:
         
     | 
| 
      
 11 
     | 
    
         
            +
              push:
         
     | 
| 
      
 12 
     | 
    
         
            +
                branches: [ master ]
         
     | 
| 
      
 13 
     | 
    
         
            +
              pull_request:
         
     | 
| 
      
 14 
     | 
    
         
            +
                branches: [ master ]
         
     | 
| 
      
 15 
     | 
    
         
            +
             
     | 
| 
      
 16 
     | 
    
         
            +
            jobs:
         
     | 
| 
      
 17 
     | 
    
         
            +
              test:
         
     | 
| 
      
 18 
     | 
    
         
            +
                uses: fog/.github/.github/workflows/ruby.yml@v1.3.0
         
     | 
    
        data/.rubocop.yml
    CHANGED
    
    | 
         @@ -1,20 +1,24 @@ 
     | 
|
| 
       1 
     | 
    
         
            -
             
     | 
| 
       2 
     | 
    
         
            -
              Enabled: false
         
     | 
| 
      
 1 
     | 
    
         
            +
            inherit_from: .rubocop_todo.yml
         
     | 
| 
       3 
2 
     | 
    
         | 
| 
       4 
     | 
    
         
            -
             
     | 
| 
       5 
     | 
    
         
            -
               
     | 
| 
      
 3 
     | 
    
         
            +
            AllCops:
         
     | 
| 
      
 4 
     | 
    
         
            +
              TargetRubyVersion: 2.0
         
     | 
| 
      
 5 
     | 
    
         
            +
              NewCops: enable
         
     | 
| 
       6 
6 
     | 
    
         | 
| 
       7 
     | 
    
         
            -
             
     | 
| 
       8 
     | 
    
         
            -
               
     | 
| 
      
 7 
     | 
    
         
            +
            require:
         
     | 
| 
      
 8 
     | 
    
         
            +
              - rubocop-rake
         
     | 
| 
      
 9 
     | 
    
         
            +
              - rubocop-minitest
         
     | 
| 
       9 
10 
     | 
    
         | 
| 
       10 
     | 
    
         
            -
             
     | 
| 
       11 
     | 
    
         
            -
               
     | 
| 
      
 11 
     | 
    
         
            +
            Gemspec/DevelopmentDependencies:
         
     | 
| 
      
 12 
     | 
    
         
            +
              EnforcedStyle: gemspec
         
     | 
| 
       12 
13 
     | 
    
         | 
| 
       13 
     | 
    
         
            -
             
     | 
| 
       14 
     | 
    
         
            -
               
     | 
| 
      
 14 
     | 
    
         
            +
            Layout/LineLength:
         
     | 
| 
      
 15 
     | 
    
         
            +
              Enabled: 120
         
     | 
| 
       15 
16 
     | 
    
         | 
| 
       16 
     | 
    
         
            -
            Style/ 
     | 
| 
       17 
     | 
    
         
            -
              EnforcedStyle:  
     | 
| 
      
 17 
     | 
    
         
            +
            Style/HashSyntax:
         
     | 
| 
      
 18 
     | 
    
         
            +
              EnforcedStyle: ruby19_no_mixed_keys
         
     | 
| 
       18 
19 
     | 
    
         | 
| 
       19 
20 
     | 
    
         
             
            Style/StringLiterals:
         
     | 
| 
       20 
21 
     | 
    
         
             
              EnforcedStyle: double_quotes
         
     | 
| 
      
 22 
     | 
    
         
            +
             
     | 
| 
      
 23 
     | 
    
         
            +
            Style/StringLiteralsInInterpolation:
         
     | 
| 
      
 24 
     | 
    
         
            +
              EnforcedStyle: single_quotes
         
     |