chefstyle 2.1.2 → 2.1.3
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 +4 -4
 - data/config/disable_all.yml +6 -0
 - data/config/upstream.yml +37 -4
 - data/lib/chefstyle/version.rb +2 -2
 - metadata +4 -4
 
    
        checksums.yaml
    CHANGED
    
    | 
         @@ -1,7 +1,7 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            ---
         
     | 
| 
       2 
2 
     | 
    
         
             
            SHA256:
         
     | 
| 
       3 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       4 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 3 
     | 
    
         
            +
              metadata.gz: df3b49ba17acc295d60953cd43b69b3b5cd532e0383b3cd773ace5621c3c65a1
         
     | 
| 
      
 4 
     | 
    
         
            +
              data.tar.gz: 4292c12460e36e39db5ad65c7328b0de6e033bf7e7d4827eb3bbd8d50f01233c
         
     | 
| 
       5 
5 
     | 
    
         
             
            SHA512:
         
     | 
| 
       6 
     | 
    
         
            -
              metadata.gz:  
     | 
| 
       7 
     | 
    
         
            -
              data.tar.gz:  
     | 
| 
      
 6 
     | 
    
         
            +
              metadata.gz: 36bb76c00546710ecdeaed0e72e92fa70f74ff9d937f2a05429a463f8f0ec46999107deeb1a64756805c5a635ff0a3a57668a135fde232617cd59f3e8aece6a8
         
     | 
| 
      
 7 
     | 
    
         
            +
              data.tar.gz: 65635fd00bba510579420a3d44d17b1925174da919e211bc32749794280cc6ddfe895d510ce6fb321192d68735b86c28f0d5376f7e1eae8667acc76ad61c1164
         
     | 
    
        data/config/disable_all.yml
    CHANGED
    
    | 
         @@ -19,6 +19,8 @@ Gemspec/DuplicatedAssignment: 
     | 
|
| 
       19 
19 
     | 
    
         
             
              Enabled: false
         
     | 
| 
       20 
20 
     | 
    
         
             
            Gemspec/OrderedDependencies:
         
     | 
| 
       21 
21 
     | 
    
         
             
              Enabled: false
         
     | 
| 
      
 22 
     | 
    
         
            +
            Gemspec/RequireMFA:
         
     | 
| 
      
 23 
     | 
    
         
            +
              Enabled: false
         
     | 
| 
       22 
24 
     | 
    
         
             
            Gemspec/RequiredRubyVersion:
         
     | 
| 
       23 
25 
     | 
    
         
             
              Enabled: false
         
     | 
| 
       24 
26 
     | 
    
         
             
            Gemspec/RubyVersionGlobalsUsage:
         
     | 
| 
         @@ -459,6 +461,8 @@ Lint/UselessElseWithoutRescue: 
     | 
|
| 
       459 
461 
     | 
    
         
             
              Enabled: false
         
     | 
| 
       460 
462 
     | 
    
         
             
            Lint/UselessMethodDefinition:
         
     | 
| 
       461 
463 
     | 
    
         
             
              Enabled: false
         
     | 
| 
      
 464 
     | 
    
         
            +
            Lint/UselessRuby2Keywords:
         
     | 
| 
      
 465 
     | 
    
         
            +
              Enabled: false
         
     | 
| 
       462 
466 
     | 
    
         
             
            Lint/UselessSetterCall:
         
     | 
| 
       463 
467 
     | 
    
         
             
              Enabled: false
         
     | 
| 
       464 
468 
     | 
    
         
             
            Lint/UselessTimes:
         
     | 
| 
         @@ -709,6 +713,8 @@ Style/MultilineInPatternThen: 
     | 
|
| 
       709 
713 
     | 
    
         
             
              Enabled: false
         
     | 
| 
       710 
714 
     | 
    
         
             
            Style/NumberedParameters:
         
     | 
| 
       711 
715 
     | 
    
         
             
              Enabled: false
         
     | 
| 
      
 716 
     | 
    
         
            +
            Style/OpenStructUse:
         
     | 
| 
      
 717 
     | 
    
         
            +
              Enabled: false
         
     | 
| 
       712 
718 
     | 
    
         
             
            Style/RedundantAssignment:
         
     | 
| 
       713 
719 
     | 
    
         
             
              Enabled: false
         
     | 
| 
       714 
720 
     | 
    
         
             
            Style/RedundantFetchBlock:
         
     | 
    
        data/config/upstream.yml
    CHANGED
    
    | 
         @@ -150,6 +150,7 @@ AllCops: 
     | 
|
| 
       150 
150 
     | 
    
         
             
                rubocop-minitest: [minitest]
         
     | 
| 
       151 
151 
     | 
    
         
             
                rubocop-sequel: [sequel]
         
     | 
| 
       152 
152 
     | 
    
         
             
                rubocop-rake: [rake]
         
     | 
| 
      
 153 
     | 
    
         
            +
                rubocop-graphql: [graphql]
         
     | 
| 
       153 
154 
     | 
    
         | 
| 
       154 
155 
     | 
    
         
             
            #################### Bundler ###############################
         
     | 
| 
       155 
156 
     | 
    
         | 
| 
         @@ -258,6 +259,15 @@ Gemspec/OrderedDependencies: 
     | 
|
| 
       258 
259 
     | 
    
         
             
              Include:
         
     | 
| 
       259 
260 
     | 
    
         
             
                - '**/*.gemspec'
         
     | 
| 
       260 
261 
     | 
    
         | 
| 
      
 262 
     | 
    
         
            +
            Gemspec/RequireMFA:
         
     | 
| 
      
 263 
     | 
    
         
            +
              Description: 'Checks that the gemspec has metadata to require MFA from RubyGems.'
         
     | 
| 
      
 264 
     | 
    
         
            +
              Enabled: pending
         
     | 
| 
      
 265 
     | 
    
         
            +
              VersionAdded: '1.23'
         
     | 
| 
      
 266 
     | 
    
         
            +
              Reference:
         
     | 
| 
      
 267 
     | 
    
         
            +
                - https://guides.rubygems.org/mfa-requirement-opt-in/
         
     | 
| 
      
 268 
     | 
    
         
            +
              Include:
         
     | 
| 
      
 269 
     | 
    
         
            +
                - '**/*.gemspec'
         
     | 
| 
      
 270 
     | 
    
         
            +
             
     | 
| 
       261 
271 
     | 
    
         
             
            Gemspec/RequiredRubyVersion:
         
     | 
| 
       262 
272 
     | 
    
         
             
              Description: 'Checks that `required_ruby_version` of gemspec is specified and equal to `TargetRubyVersion` of .rubocop.yml.'
         
     | 
| 
       263 
273 
     | 
    
         
             
              Enabled: true
         
     | 
| 
         @@ -511,13 +521,13 @@ Layout/EmptyLineBetweenDefs: 
     | 
|
| 
       511 
521 
     | 
    
         
             
              StyleGuide: '#empty-lines-between-methods'
         
     | 
| 
       512 
522 
     | 
    
         
             
              Enabled: true
         
     | 
| 
       513 
523 
     | 
    
         
             
              VersionAdded: '0.49'
         
     | 
| 
       514 
     | 
    
         
            -
              VersionChanged: '1. 
     | 
| 
      
 524 
     | 
    
         
            +
              VersionChanged: '1.23'
         
     | 
| 
       515 
525 
     | 
    
         
             
              EmptyLineBetweenMethodDefs: true
         
     | 
| 
       516 
526 
     | 
    
         
             
              EmptyLineBetweenClassDefs: true
         
     | 
| 
       517 
527 
     | 
    
         
             
              EmptyLineBetweenModuleDefs: true
         
     | 
| 
       518 
     | 
    
         
            -
              #  
     | 
| 
       519 
     | 
    
         
            -
              # need an empty line between them.
         
     | 
| 
       520 
     | 
    
         
            -
              AllowAdjacentOneLineDefs:  
     | 
| 
      
 528 
     | 
    
         
            +
              # `AllowAdjacentOneLineDefs` means that single line method definitions don't
         
     | 
| 
      
 529 
     | 
    
         
            +
              # need an empty line between them. `true` by default.
         
     | 
| 
      
 530 
     | 
    
         
            +
              AllowAdjacentOneLineDefs: true
         
     | 
| 
       521 
531 
     | 
    
         
             
              # Can be array to specify minimum and maximum number of empty lines, e.g. [1, 2]
         
     | 
| 
       522 
532 
     | 
    
         
             
              NumberOfEmptyLines: 1
         
     | 
| 
       523 
533 
     | 
    
         | 
| 
         @@ -2308,6 +2318,11 @@ Lint/UselessMethodDefinition: 
     | 
|
| 
       2308 
2318 
     | 
    
         
             
              Safe: false
         
     | 
| 
       2309 
2319 
     | 
    
         
             
              AllowComments: true
         
     | 
| 
       2310 
2320 
     | 
    
         | 
| 
      
 2321 
     | 
    
         
            +
            Lint/UselessRuby2Keywords:
         
     | 
| 
      
 2322 
     | 
    
         
            +
              Description: 'Finds unnecessary uses of `ruby2_keywords`.'
         
     | 
| 
      
 2323 
     | 
    
         
            +
              Enabled: pending
         
     | 
| 
      
 2324 
     | 
    
         
            +
              VersionAdded: '1.23'
         
     | 
| 
      
 2325 
     | 
    
         
            +
             
     | 
| 
       2311 
2326 
     | 
    
         
             
            Lint/UselessSetterCall:
         
     | 
| 
       2312 
2327 
     | 
    
         
             
              Description: 'Checks for useless setter call to a local variable.'
         
     | 
| 
       2313 
2328 
     | 
    
         
             
              Enabled: true
         
     | 
| 
         @@ -2501,6 +2516,7 @@ Naming/FileName: 
     | 
|
| 
       2501 
2516 
     | 
    
         
             
              StyleGuide: '#snake-case-files'
         
     | 
| 
       2502 
2517 
     | 
    
         
             
              Enabled: true
         
     | 
| 
       2503 
2518 
     | 
    
         
             
              VersionAdded: '0.50'
         
     | 
| 
      
 2519 
     | 
    
         
            +
              VersionChanged: '1.23'
         
     | 
| 
       2504 
2520 
     | 
    
         
             
              # Camel case file names listed in `AllCops:Include` and all file names listed
         
     | 
| 
       2505 
2521 
     | 
    
         
             
              # in `AllCops:Exclude` are excluded by default. Add extra excludes here.
         
     | 
| 
       2506 
2522 
     | 
    
         
             
              Exclude: []
         
     | 
| 
         @@ -2513,6 +2529,13 @@ Naming/FileName: 
     | 
|
| 
       2513 
2529 
     | 
    
         
             
              # whether each source file's class or module name matches the file name --
         
     | 
| 
       2514 
2530 
     | 
    
         
             
              # not whether the nested module hierarchy matches the subdirectory path.
         
     | 
| 
       2515 
2531 
     | 
    
         
             
              CheckDefinitionPathHierarchy: true
         
     | 
| 
      
 2532 
     | 
    
         
            +
              # paths that are considered root directories, for example "lib" in most ruby projects
         
     | 
| 
      
 2533 
     | 
    
         
            +
              # or "app/models" in rails projects
         
     | 
| 
      
 2534 
     | 
    
         
            +
              CheckDefinitionPathHierarchyRoots:
         
     | 
| 
      
 2535 
     | 
    
         
            +
                - lib
         
     | 
| 
      
 2536 
     | 
    
         
            +
                - spec
         
     | 
| 
      
 2537 
     | 
    
         
            +
                - test
         
     | 
| 
      
 2538 
     | 
    
         
            +
                - src
         
     | 
| 
       2516 
2539 
     | 
    
         
             
              # If non-`nil`, expect all source file names to match the following regex.
         
     | 
| 
       2517 
2540 
     | 
    
         
             
              # Only the file name itself is matched, not the entire file path.
         
     | 
| 
       2518 
2541 
     | 
    
         
             
              # Use anchors as necessary if you want to match the entire name rather than
         
     | 
| 
         @@ -4216,6 +4239,16 @@ Style/OneLineConditional: 
     | 
|
| 
       4216 
4239 
     | 
    
         
             
              VersionAdded: '0.9'
         
     | 
| 
       4217 
4240 
     | 
    
         
             
              VersionChanged: '0.90'
         
     | 
| 
       4218 
4241 
     | 
    
         | 
| 
      
 4242 
     | 
    
         
            +
            Style/OpenStructUse:
         
     | 
| 
      
 4243 
     | 
    
         
            +
              Description: >-
         
     | 
| 
      
 4244 
     | 
    
         
            +
                             Avoid using OpenStruct. As of Ruby 3.0, use is officially discouraged due to performance,
         
     | 
| 
      
 4245 
     | 
    
         
            +
                             version compatibility, and potential security issues.
         
     | 
| 
      
 4246 
     | 
    
         
            +
              Reference:
         
     | 
| 
      
 4247 
     | 
    
         
            +
                - https://docs.ruby-lang.org/en/3.0.0/OpenStruct.html#class-OpenStruct-label-Caveats
         
     | 
| 
      
 4248 
     | 
    
         
            +
             
     | 
| 
      
 4249 
     | 
    
         
            +
              Enabled: pending
         
     | 
| 
      
 4250 
     | 
    
         
            +
              VersionAdded: '1.23'
         
     | 
| 
      
 4251 
     | 
    
         
            +
             
     | 
| 
       4219 
4252 
     | 
    
         
             
            Style/OptionHash:
         
     | 
| 
       4220 
4253 
     | 
    
         
             
              Description: "Don't use option hashes when you can use keyword arguments."
         
     | 
| 
       4221 
4254 
     | 
    
         
             
              Enabled: false
         
     | 
    
        data/lib/chefstyle/version.rb
    CHANGED
    
    
    
        metadata
    CHANGED
    
    | 
         @@ -1,14 +1,14 @@ 
     | 
|
| 
       1 
1 
     | 
    
         
             
            --- !ruby/object:Gem::Specification
         
     | 
| 
       2 
2 
     | 
    
         
             
            name: chefstyle
         
     | 
| 
       3 
3 
     | 
    
         
             
            version: !ruby/object:Gem::Version
         
     | 
| 
       4 
     | 
    
         
            -
              version: 2.1. 
     | 
| 
      
 4 
     | 
    
         
            +
              version: 2.1.3
         
     | 
| 
       5 
5 
     | 
    
         
             
            platform: ruby
         
     | 
| 
       6 
6 
     | 
    
         
             
            authors:
         
     | 
| 
       7 
7 
     | 
    
         
             
            - Chef Software, Inc.
         
     | 
| 
       8 
8 
     | 
    
         
             
            autorequire: 
         
     | 
| 
       9 
9 
     | 
    
         
             
            bindir: bin
         
     | 
| 
       10 
10 
     | 
    
         
             
            cert_chain: []
         
     | 
| 
       11 
     | 
    
         
            -
            date: 2021- 
     | 
| 
      
 11 
     | 
    
         
            +
            date: 2021-11-15 00:00:00.000000000 Z
         
     | 
| 
       12 
12 
     | 
    
         
             
            dependencies:
         
     | 
| 
       13 
13 
     | 
    
         
             
            - !ruby/object:Gem::Dependency
         
     | 
| 
       14 
14 
     | 
    
         
             
              name: rubocop
         
     | 
| 
         @@ -16,14 +16,14 @@ dependencies: 
     | 
|
| 
       16 
16 
     | 
    
         
             
                requirements:
         
     | 
| 
       17 
17 
     | 
    
         
             
                - - '='
         
     | 
| 
       18 
18 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       19 
     | 
    
         
            -
                    version: 1. 
     | 
| 
      
 19 
     | 
    
         
            +
                    version: 1.23.0
         
     | 
| 
       20 
20 
     | 
    
         
             
              type: :runtime
         
     | 
| 
       21 
21 
     | 
    
         
             
              prerelease: false
         
     | 
| 
       22 
22 
     | 
    
         
             
              version_requirements: !ruby/object:Gem::Requirement
         
     | 
| 
       23 
23 
     | 
    
         
             
                requirements:
         
     | 
| 
       24 
24 
     | 
    
         
             
                - - '='
         
     | 
| 
       25 
25 
     | 
    
         
             
                  - !ruby/object:Gem::Version
         
     | 
| 
       26 
     | 
    
         
            -
                    version: 1. 
     | 
| 
      
 26 
     | 
    
         
            +
                    version: 1.23.0
         
     | 
| 
       27 
27 
     | 
    
         
             
            description: 
         
     | 
| 
       28 
28 
     | 
    
         
             
            email:
         
     | 
| 
       29 
29 
     | 
    
         
             
            - oss@chef.io
         
     |