rubocop-powerhome 0.2.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/.rubocop.yml +9 -0
- data/CHANGELOG.md +5 -0
- data/Gemfile +14 -0
- data/Gemfile.lock +89 -0
- data/LICENSE.txt +21 -0
- data/README.md +40 -0
- data/Rakefile +30 -0
- data/config/default.yml +78 -0
- data/lib/rubocop/powerhome/inject.rb +20 -0
- data/lib/rubocop/powerhome/version.rb +7 -0
- data/lib/rubocop/powerhome.rb +16 -0
- data/lib/rubocop-powerhome.rb +11 -0
- data/rubocop-powerhome.gemspec +44 -0
- data/sig/rubocop/powerhome.rbs +6 -0
- metadata +131 -0
    
        checksums.yaml
    ADDED
    
    | @@ -0,0 +1,7 @@ | |
| 1 | 
            +
            ---
         | 
| 2 | 
            +
            SHA256:
         | 
| 3 | 
            +
              metadata.gz: 39410b7a81b2f413f11e1d7a47c47fcff5a16d5ad1c0967cc687fb94595354e4
         | 
| 4 | 
            +
              data.tar.gz: 4e8c866ddee5a181de4b72a28aa739052e74c5071d7f75dbc4b2fa546574eeac
         | 
| 5 | 
            +
            SHA512:
         | 
| 6 | 
            +
              metadata.gz: dc6ddad8767fe3f5f5c8a1574f3a69214d870e46e8b7e182bd53c4d4f02a3a586e5a74cd9d85d18a5cc01419171849ef71bb64c1503f5f50ed55b1404d62aee8
         | 
| 7 | 
            +
              data.tar.gz: 219f37850a53709de7b8953899da72ff31edb5e3dcb50b459d55451d24f0050a7e5ec685449ebbded657106bc1f21ee4820e05e90444f6cee6f2a3055cb05212
         | 
    
        data/.rubocop.yml
    ADDED
    
    
    
        data/CHANGELOG.md
    ADDED
    
    
    
        data/Gemfile
    ADDED
    
    | @@ -0,0 +1,14 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            source "https://rubygems.org"
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            # Specify your gem's dependencies in rubocop-powerhome.gemspec
         | 
| 6 | 
            +
            gemspec
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            gem "rake", "~> 13.0"
         | 
| 9 | 
            +
            gem "rspec", "~> 3.0"
         | 
| 10 | 
            +
            gem "rubocop", "~> 1.29.1"
         | 
| 11 | 
            +
            gem "rubocop-performance"
         | 
| 12 | 
            +
            gem "rubocop-rails"
         | 
| 13 | 
            +
            gem "rubocop-rake"
         | 
| 14 | 
            +
            gem "rubocop-rspec"
         | 
    
        data/Gemfile.lock
    ADDED
    
    | @@ -0,0 +1,89 @@ | |
| 1 | 
            +
            PATH
         | 
| 2 | 
            +
              remote: .
         | 
| 3 | 
            +
              specs:
         | 
| 4 | 
            +
                rubocop-powerhome (0.2.0)
         | 
| 5 | 
            +
                  rubocop
         | 
| 6 | 
            +
                  rubocop-performance
         | 
| 7 | 
            +
                  rubocop-rails
         | 
| 8 | 
            +
                  rubocop-rake
         | 
| 9 | 
            +
                  rubocop-rspec
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            GEM
         | 
| 12 | 
            +
              remote: https://rubygems.org/
         | 
| 13 | 
            +
              specs:
         | 
| 14 | 
            +
                activesupport (7.0.3)
         | 
| 15 | 
            +
                  concurrent-ruby (~> 1.0, >= 1.0.2)
         | 
| 16 | 
            +
                  i18n (>= 1.6, < 2)
         | 
| 17 | 
            +
                  minitest (>= 5.1)
         | 
| 18 | 
            +
                  tzinfo (~> 2.0)
         | 
| 19 | 
            +
                ast (2.4.2)
         | 
| 20 | 
            +
                concurrent-ruby (1.1.10)
         | 
| 21 | 
            +
                diff-lcs (1.5.0)
         | 
| 22 | 
            +
                i18n (1.10.0)
         | 
| 23 | 
            +
                  concurrent-ruby (~> 1.0)
         | 
| 24 | 
            +
                minitest (5.15.0)
         | 
| 25 | 
            +
                parallel (1.22.1)
         | 
| 26 | 
            +
                parser (3.1.2.0)
         | 
| 27 | 
            +
                  ast (~> 2.4.1)
         | 
| 28 | 
            +
                rack (2.2.3)
         | 
| 29 | 
            +
                rainbow (3.1.1)
         | 
| 30 | 
            +
                rake (13.0.6)
         | 
| 31 | 
            +
                regexp_parser (2.4.0)
         | 
| 32 | 
            +
                rexml (3.2.5)
         | 
| 33 | 
            +
                rspec (3.11.0)
         | 
| 34 | 
            +
                  rspec-core (~> 3.11.0)
         | 
| 35 | 
            +
                  rspec-expectations (~> 3.11.0)
         | 
| 36 | 
            +
                  rspec-mocks (~> 3.11.0)
         | 
| 37 | 
            +
                rspec-core (3.11.0)
         | 
| 38 | 
            +
                  rspec-support (~> 3.11.0)
         | 
| 39 | 
            +
                rspec-expectations (3.11.0)
         | 
| 40 | 
            +
                  diff-lcs (>= 1.2.0, < 2.0)
         | 
| 41 | 
            +
                  rspec-support (~> 3.11.0)
         | 
| 42 | 
            +
                rspec-mocks (3.11.1)
         | 
| 43 | 
            +
                  diff-lcs (>= 1.2.0, < 2.0)
         | 
| 44 | 
            +
                  rspec-support (~> 3.11.0)
         | 
| 45 | 
            +
                rspec-support (3.11.0)
         | 
| 46 | 
            +
                rubocop (1.29.1)
         | 
| 47 | 
            +
                  parallel (~> 1.10)
         | 
| 48 | 
            +
                  parser (>= 3.1.0.0)
         | 
| 49 | 
            +
                  rainbow (>= 2.2.2, < 4.0)
         | 
| 50 | 
            +
                  regexp_parser (>= 1.8, < 3.0)
         | 
| 51 | 
            +
                  rexml (>= 3.2.5, < 4.0)
         | 
| 52 | 
            +
                  rubocop-ast (>= 1.17.0, < 2.0)
         | 
| 53 | 
            +
                  ruby-progressbar (~> 1.7)
         | 
| 54 | 
            +
                  unicode-display_width (>= 1.4.0, < 3.0)
         | 
| 55 | 
            +
                rubocop-ast (1.18.0)
         | 
| 56 | 
            +
                  parser (>= 3.1.1.0)
         | 
| 57 | 
            +
                rubocop-performance (1.13.3)
         | 
| 58 | 
            +
                  rubocop (>= 1.7.0, < 2.0)
         | 
| 59 | 
            +
                  rubocop-ast (>= 0.4.0)
         | 
| 60 | 
            +
                rubocop-rails (2.12.2)
         | 
| 61 | 
            +
                  activesupport (>= 4.2.0)
         | 
| 62 | 
            +
                  rack (>= 1.1)
         | 
| 63 | 
            +
                  rubocop (>= 1.7.0, < 2.0)
         | 
| 64 | 
            +
                rubocop-rake (0.6.0)
         | 
| 65 | 
            +
                  rubocop (~> 1.0)
         | 
| 66 | 
            +
                rubocop-rspec (2.4.0)
         | 
| 67 | 
            +
                  rubocop (~> 1.0)
         | 
| 68 | 
            +
                  rubocop-ast (>= 1.1.0)
         | 
| 69 | 
            +
                ruby-progressbar (1.11.0)
         | 
| 70 | 
            +
                tzinfo (2.0.4)
         | 
| 71 | 
            +
                  concurrent-ruby (~> 1.0)
         | 
| 72 | 
            +
                unicode-display_width (2.1.0)
         | 
| 73 | 
            +
             | 
| 74 | 
            +
            PLATFORMS
         | 
| 75 | 
            +
              arm64-darwin-21
         | 
| 76 | 
            +
              x86_64-linux
         | 
| 77 | 
            +
             | 
| 78 | 
            +
            DEPENDENCIES
         | 
| 79 | 
            +
              rake (~> 13.0)
         | 
| 80 | 
            +
              rspec (~> 3.0)
         | 
| 81 | 
            +
              rubocop (~> 1.29.1)
         | 
| 82 | 
            +
              rubocop-performance
         | 
| 83 | 
            +
              rubocop-powerhome!
         | 
| 84 | 
            +
              rubocop-rails
         | 
| 85 | 
            +
              rubocop-rake
         | 
| 86 | 
            +
              rubocop-rspec
         | 
| 87 | 
            +
             | 
| 88 | 
            +
            BUNDLED WITH
         | 
| 89 | 
            +
               2.3.7
         | 
    
        data/LICENSE.txt
    ADDED
    
    | @@ -0,0 +1,21 @@ | |
| 1 | 
            +
            The MIT License (MIT)
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            Copyright Power Home Remodeling Group, LLC
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            Permission is hereby granted, free of charge, to any person obtaining a copy
         | 
| 6 | 
            +
            of this software and associated documentation files (the "Software"), to deal
         | 
| 7 | 
            +
            in the Software without restriction, including without limitation the rights
         | 
| 8 | 
            +
            to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
         | 
| 9 | 
            +
            copies of the Software, and to permit persons to whom the Software is
         | 
| 10 | 
            +
            furnished to do so, subject to the following conditions:
         | 
| 11 | 
            +
             | 
| 12 | 
            +
            The above copyright notice and this permission notice shall be included in
         | 
| 13 | 
            +
            all copies or substantial portions of the Software.
         | 
| 14 | 
            +
             | 
| 15 | 
            +
            THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
         | 
| 16 | 
            +
            IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
         | 
| 17 | 
            +
            FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
         | 
| 18 | 
            +
            AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
         | 
| 19 | 
            +
            LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
         | 
| 20 | 
            +
            OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
         | 
| 21 | 
            +
            THE SOFTWARE.
         | 
    
        data/README.md
    ADDED
    
    | @@ -0,0 +1,40 @@ | |
| 1 | 
            +
            # Rubocop::Powerhome
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            This gem is focused on providing standard rubocop configuration for Power Home Remodeling ruby apps.
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            ## Installation
         | 
| 6 | 
            +
             | 
| 7 | 
            +
            Add this line to your application's Gemfile under development:
         | 
| 8 | 
            +
             | 
| 9 | 
            +
            ```ruby
         | 
| 10 | 
            +
            gem 'rubocop-powerhome', require: false
         | 
| 11 | 
            +
            ```
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            And then execute:
         | 
| 14 | 
            +
             | 
| 15 | 
            +
                $ bundle install
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            ## Usage
         | 
| 18 | 
            +
             | 
| 19 | 
            +
            Add a `require` line to your `.rubocop.yml`:
         | 
| 20 | 
            +
             | 
| 21 | 
            +
            ```yml
         | 
| 22 | 
            +
            require:
         | 
| 23 | 
            +
              - rubocop-powerhome
         | 
| 24 | 
            +
            ```
         | 
| 25 | 
            +
             | 
| 26 | 
            +
            That's it! You can override the standard configuration after that.
         | 
| 27 | 
            +
             | 
| 28 | 
            +
            ## Development
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            After checking out the repo, run `bin/setup` to install dependencies. Then, run `rake spec` to run the tests. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
         | 
| 31 | 
            +
             | 
| 32 | 
            +
            To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and the created tag, and push the `.gem` file to [rubygems.org](https://rubygems.org).
         | 
| 33 | 
            +
             | 
| 34 | 
            +
            ## Contributing
         | 
| 35 | 
            +
             | 
| 36 | 
            +
            Bug reports and pull requests are welcome on GitHub at https://github.com/powerhome/power_linting/rubocop-powerhome.
         | 
| 37 | 
            +
             | 
| 38 | 
            +
            ## License
         | 
| 39 | 
            +
             | 
| 40 | 
            +
            The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
         | 
    
        data/Rakefile
    ADDED
    
    | @@ -0,0 +1,30 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            require "bundler/gem_tasks"
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            require "rspec/core/rake_task"
         | 
| 6 | 
            +
            RSpec::Core::RakeTask.new(:spec)
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            require "rubocop/rake_task"
         | 
| 9 | 
            +
            RuboCop::RakeTask.new(:rubocop)
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            task default: %i[spec rubocop]
         | 
| 12 | 
            +
             | 
| 13 | 
            +
            desc "Generate a new cop with a template"
         | 
| 14 | 
            +
            task :new_cop, [:cop] do |_task, args|
         | 
| 15 | 
            +
              require "rubocop"
         | 
| 16 | 
            +
             | 
| 17 | 
            +
              cop_name = args.fetch(:cop) do
         | 
| 18 | 
            +
                warn "usage: bundle exec rake new_cop[Department/Name]"
         | 
| 19 | 
            +
                exit!
         | 
| 20 | 
            +
              end
         | 
| 21 | 
            +
             | 
| 22 | 
            +
              generator = RuboCop::Cop::Generator.new(cop_name)
         | 
| 23 | 
            +
             | 
| 24 | 
            +
              generator.write_source
         | 
| 25 | 
            +
              generator.write_spec
         | 
| 26 | 
            +
              generator.inject_require(root_file_path: "lib/rubocop/cop/powerhome_cops.rb")
         | 
| 27 | 
            +
              generator.inject_config(config_file_path: "config/default.yml")
         | 
| 28 | 
            +
             | 
| 29 | 
            +
              puts generator.todo
         | 
| 30 | 
            +
            end
         | 
    
        data/config/default.yml
    ADDED
    
    | @@ -0,0 +1,78 @@ | |
| 1 | 
            +
            AllCops:
         | 
| 2 | 
            +
              TargetRubyVersion: 2.7
         | 
| 3 | 
            +
              NewCops: enable
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            Gemspec/RequiredRubyVersion:
         | 
| 6 | 
            +
              Enabled: false
         | 
| 7 | 
            +
             | 
| 8 | 
            +
            Layout/AccessModifierIndentation:
         | 
| 9 | 
            +
              EnforcedStyle: outdent
         | 
| 10 | 
            +
             | 
| 11 | 
            +
            Lint/OrAssignmentToConstant:
         | 
| 12 | 
            +
              Enabled: false
         | 
| 13 | 
            +
             | 
| 14 | 
            +
            Lint/ScriptPermission:
         | 
| 15 | 
            +
              Enabled: false
         | 
| 16 | 
            +
             | 
| 17 | 
            +
            Naming/MethodParameterName:
         | 
| 18 | 
            +
              AllowedNames:
         | 
| 19 | 
            +
                - io
         | 
| 20 | 
            +
                - id
         | 
| 21 | 
            +
                - to
         | 
| 22 | 
            +
                - by
         | 
| 23 | 
            +
                - 'on'
         | 
| 24 | 
            +
                - in
         | 
| 25 | 
            +
                - at
         | 
| 26 | 
            +
             | 
| 27 | 
            +
            Rails:
         | 
| 28 | 
            +
              Enabled: true
         | 
| 29 | 
            +
             | 
| 30 | 
            +
            # This was the rubocop default until Oct. 2019, when it was changed to slashes.
         | 
| 31 | 
            +
            # This preserves the original setting.
         | 
| 32 | 
            +
            Rails/FilePath:
         | 
| 33 | 
            +
              EnforcedStyle: arguments
         | 
| 34 | 
            +
             | 
| 35 | 
            +
            Rails/HasManyOrHasOneDependent:
         | 
| 36 | 
            +
              Enabled: false
         | 
| 37 | 
            +
             | 
| 38 | 
            +
            Rake:
         | 
| 39 | 
            +
              Enabled: true
         | 
| 40 | 
            +
             | 
| 41 | 
            +
            RSpec:
         | 
| 42 | 
            +
              Enabled: false
         | 
| 43 | 
            +
             | 
| 44 | 
            +
            RSpec/FactoryBot:
         | 
| 45 | 
            +
              Enabled: true
         | 
| 46 | 
            +
             | 
| 47 | 
            +
            Style/Documentation:
         | 
| 48 | 
            +
              Enabled: false
         | 
| 49 | 
            +
             | 
| 50 | 
            +
            Style/HashEachMethods:
         | 
| 51 | 
            +
              Enabled: false
         | 
| 52 | 
            +
             | 
| 53 | 
            +
            Style/HashTransformKeys:
         | 
| 54 | 
            +
              Enabled: false
         | 
| 55 | 
            +
             | 
| 56 | 
            +
            Style/HashTransformValues:
         | 
| 57 | 
            +
              Enabled: false
         | 
| 58 | 
            +
             | 
| 59 | 
            +
            Style/Lambda:
         | 
| 60 | 
            +
              EnforcedStyle: literal
         | 
| 61 | 
            +
             | 
| 62 | 
            +
            Style/NumericPredicate:
         | 
| 63 | 
            +
              Enabled: false
         | 
| 64 | 
            +
             | 
| 65 | 
            +
            Style/RescueStandardError:
         | 
| 66 | 
            +
              EnforcedStyle: implicit
         | 
| 67 | 
            +
             | 
| 68 | 
            +
            # Single quotes being faster is hardly measurable and only affects parse time.
         | 
| 69 | 
            +
            # Enforcing double quotes reduces the times where you need to change them when introducing an interpolation.
         | 
| 70 | 
            +
            # Use single quotes only if their semantics are needed.
         | 
| 71 | 
            +
            Style/StringLiterals:
         | 
| 72 | 
            +
              EnforcedStyle: double_quotes
         | 
| 73 | 
            +
             | 
| 74 | 
            +
            Style/TrailingCommaInArrayLiteral:
         | 
| 75 | 
            +
              EnforcedStyleForMultiline: comma
         | 
| 76 | 
            +
             | 
| 77 | 
            +
            Style/TrailingCommaInHashLiteral:
         | 
| 78 | 
            +
              EnforcedStyleForMultiline: comma
         | 
| @@ -0,0 +1,20 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            # The original code is from https://github.com/rubocop/rubocop-rspec/blob/master/lib/rubocop/rspec/inject.rb
         | 
| 4 | 
            +
            # See https://github.com/rubocop/rubocop-rspec/blob/master/MIT-LICENSE.md
         | 
| 5 | 
            +
            module RuboCop
         | 
| 6 | 
            +
              module Powerhome
         | 
| 7 | 
            +
                # Because RuboCop doesn't yet support plugins, we have to monkey patch in a
         | 
| 8 | 
            +
                # bit of our configuration.
         | 
| 9 | 
            +
                module Inject
         | 
| 10 | 
            +
                  def self.defaults!
         | 
| 11 | 
            +
                    path = CONFIG_DEFAULT.to_s
         | 
| 12 | 
            +
                    hash = ConfigLoader.send(:load_yaml_configuration, path)
         | 
| 13 | 
            +
                    config = Config.new(hash, path).tap(&:make_excludes_absolute)
         | 
| 14 | 
            +
                    puts "configuration from #{path}" if ConfigLoader.debug?
         | 
| 15 | 
            +
                    config = ConfigLoader.merge_with_default(config, path)
         | 
| 16 | 
            +
                    ConfigLoader.instance_variable_set(:@default_configuration, config)
         | 
| 17 | 
            +
                  end
         | 
| 18 | 
            +
                end
         | 
| 19 | 
            +
              end
         | 
| 20 | 
            +
            end
         | 
| @@ -0,0 +1,16 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            module RuboCop
         | 
| 4 | 
            +
              module Powerhome
         | 
| 5 | 
            +
                class Error < StandardError; end
         | 
| 6 | 
            +
                # Your code goes here...
         | 
| 7 | 
            +
                PROJECT_ROOT   = Pathname.new(__dir__).parent.parent.expand_path.freeze
         | 
| 8 | 
            +
                CONFIG_DEFAULT = PROJECT_ROOT.join("config", "default.yml").freeze
         | 
| 9 | 
            +
                CONFIG         = YAML.safe_load(CONFIG_DEFAULT.read).freeze
         | 
| 10 | 
            +
             | 
| 11 | 
            +
                private_constant(:CONFIG_DEFAULT, :PROJECT_ROOT)
         | 
| 12 | 
            +
             | 
| 13 | 
            +
                require_relative "powerhome/version"
         | 
| 14 | 
            +
                require_relative "powerhome/inject"
         | 
| 15 | 
            +
              end
         | 
| 16 | 
            +
            end
         | 
| @@ -0,0 +1,44 @@ | |
| 1 | 
            +
            # frozen_string_literal: true
         | 
| 2 | 
            +
             | 
| 3 | 
            +
            require_relative "lib/rubocop/powerhome/version"
         | 
| 4 | 
            +
             | 
| 5 | 
            +
            Gem::Specification.new do |spec|
         | 
| 6 | 
            +
              spec.name = "rubocop-powerhome"
         | 
| 7 | 
            +
              spec.version = RuboCop::Powerhome::VERSION
         | 
| 8 | 
            +
              spec.authors = ["Carlos Palhares"]
         | 
| 9 | 
            +
              spec.email = ["chjunior@gmail.com"]
         | 
| 10 | 
            +
             | 
| 11 | 
            +
              spec.summary = "Powerhome Rubocop standard rules"
         | 
| 12 | 
            +
              spec.description = "Powerhome Rubocop standard rules"
         | 
| 13 | 
            +
              spec.homepage = "https://github.com/powerhome/power_linting"
         | 
| 14 | 
            +
              spec.license = "MIT"
         | 
| 15 | 
            +
              spec.required_ruby_version = ">= 2.6.0"
         | 
| 16 | 
            +
             | 
| 17 | 
            +
              spec.metadata["homepage_uri"] = spec.homepage
         | 
| 18 | 
            +
              spec.metadata["source_code_uri"] = spec.homepage
         | 
| 19 | 
            +
              spec.metadata["changelog_uri"] = "#{spec.homepage}/CHANGELOG.md"
         | 
| 20 | 
            +
             | 
| 21 | 
            +
              # Specify which files should be added to the gem when it is released.
         | 
| 22 | 
            +
              # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
         | 
| 23 | 
            +
              spec.files = Dir.chdir(File.expand_path(__dir__)) do
         | 
| 24 | 
            +
                `git ls-files -z`.split("\x0").reject do |f|
         | 
| 25 | 
            +
                  (f == __FILE__) || f.match(%r{\A(?:(?:bin|test|spec|features)/|\.(?:git|travis|circleci)|appveyor)})
         | 
| 26 | 
            +
                end
         | 
| 27 | 
            +
              end
         | 
| 28 | 
            +
              spec.bindir = "exe"
         | 
| 29 | 
            +
              spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
         | 
| 30 | 
            +
              spec.require_paths = ["lib"]
         | 
| 31 | 
            +
             | 
| 32 | 
            +
              # Uncomment to register a new dependency of your gem
         | 
| 33 | 
            +
              # spec.add_dependency "example-gem", "~> 1.0"
         | 
| 34 | 
            +
             | 
| 35 | 
            +
              # For more information and examples about making a new gem, check out our
         | 
| 36 | 
            +
              # guide at: https://bundler.io/guides/creating_gem.html
         | 
| 37 | 
            +
             | 
| 38 | 
            +
              spec.add_runtime_dependency "rubocop"
         | 
| 39 | 
            +
              spec.add_runtime_dependency "rubocop-performance"
         | 
| 40 | 
            +
              spec.add_runtime_dependency "rubocop-rails"
         | 
| 41 | 
            +
              spec.add_runtime_dependency "rubocop-rake"
         | 
| 42 | 
            +
              spec.add_runtime_dependency "rubocop-rspec"
         | 
| 43 | 
            +
              spec.metadata["rubygems_mfa_required"] = "true"
         | 
| 44 | 
            +
            end
         | 
    
        metadata
    ADDED
    
    | @@ -0,0 +1,131 @@ | |
| 1 | 
            +
            --- !ruby/object:Gem::Specification
         | 
| 2 | 
            +
            name: rubocop-powerhome
         | 
| 3 | 
            +
            version: !ruby/object:Gem::Version
         | 
| 4 | 
            +
              version: 0.2.0
         | 
| 5 | 
            +
            platform: ruby
         | 
| 6 | 
            +
            authors:
         | 
| 7 | 
            +
            - Carlos Palhares
         | 
| 8 | 
            +
            autorequire: 
         | 
| 9 | 
            +
            bindir: exe
         | 
| 10 | 
            +
            cert_chain: []
         | 
| 11 | 
            +
            date: 2022-05-19 00:00:00.000000000 Z
         | 
| 12 | 
            +
            dependencies:
         | 
| 13 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 14 | 
            +
              name: rubocop
         | 
| 15 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 16 | 
            +
                requirements:
         | 
| 17 | 
            +
                - - ">="
         | 
| 18 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 19 | 
            +
                    version: '0'
         | 
| 20 | 
            +
              type: :runtime
         | 
| 21 | 
            +
              prerelease: false
         | 
| 22 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 23 | 
            +
                requirements:
         | 
| 24 | 
            +
                - - ">="
         | 
| 25 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 26 | 
            +
                    version: '0'
         | 
| 27 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 28 | 
            +
              name: rubocop-performance
         | 
| 29 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 30 | 
            +
                requirements:
         | 
| 31 | 
            +
                - - ">="
         | 
| 32 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 33 | 
            +
                    version: '0'
         | 
| 34 | 
            +
              type: :runtime
         | 
| 35 | 
            +
              prerelease: false
         | 
| 36 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 37 | 
            +
                requirements:
         | 
| 38 | 
            +
                - - ">="
         | 
| 39 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 40 | 
            +
                    version: '0'
         | 
| 41 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 42 | 
            +
              name: rubocop-rails
         | 
| 43 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 44 | 
            +
                requirements:
         | 
| 45 | 
            +
                - - ">="
         | 
| 46 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 47 | 
            +
                    version: '0'
         | 
| 48 | 
            +
              type: :runtime
         | 
| 49 | 
            +
              prerelease: false
         | 
| 50 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 51 | 
            +
                requirements:
         | 
| 52 | 
            +
                - - ">="
         | 
| 53 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 54 | 
            +
                    version: '0'
         | 
| 55 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 56 | 
            +
              name: rubocop-rake
         | 
| 57 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 58 | 
            +
                requirements:
         | 
| 59 | 
            +
                - - ">="
         | 
| 60 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 61 | 
            +
                    version: '0'
         | 
| 62 | 
            +
              type: :runtime
         | 
| 63 | 
            +
              prerelease: false
         | 
| 64 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 65 | 
            +
                requirements:
         | 
| 66 | 
            +
                - - ">="
         | 
| 67 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 68 | 
            +
                    version: '0'
         | 
| 69 | 
            +
            - !ruby/object:Gem::Dependency
         | 
| 70 | 
            +
              name: rubocop-rspec
         | 
| 71 | 
            +
              requirement: !ruby/object:Gem::Requirement
         | 
| 72 | 
            +
                requirements:
         | 
| 73 | 
            +
                - - ">="
         | 
| 74 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 75 | 
            +
                    version: '0'
         | 
| 76 | 
            +
              type: :runtime
         | 
| 77 | 
            +
              prerelease: false
         | 
| 78 | 
            +
              version_requirements: !ruby/object:Gem::Requirement
         | 
| 79 | 
            +
                requirements:
         | 
| 80 | 
            +
                - - ">="
         | 
| 81 | 
            +
                  - !ruby/object:Gem::Version
         | 
| 82 | 
            +
                    version: '0'
         | 
| 83 | 
            +
            description: Powerhome Rubocop standard rules
         | 
| 84 | 
            +
            email:
         | 
| 85 | 
            +
            - chjunior@gmail.com
         | 
| 86 | 
            +
            executables: []
         | 
| 87 | 
            +
            extensions: []
         | 
| 88 | 
            +
            extra_rdoc_files: []
         | 
| 89 | 
            +
            files:
         | 
| 90 | 
            +
            - ".rubocop.yml"
         | 
| 91 | 
            +
            - CHANGELOG.md
         | 
| 92 | 
            +
            - Gemfile
         | 
| 93 | 
            +
            - Gemfile.lock
         | 
| 94 | 
            +
            - LICENSE.txt
         | 
| 95 | 
            +
            - README.md
         | 
| 96 | 
            +
            - Rakefile
         | 
| 97 | 
            +
            - config/default.yml
         | 
| 98 | 
            +
            - lib/rubocop-powerhome.rb
         | 
| 99 | 
            +
            - lib/rubocop/powerhome.rb
         | 
| 100 | 
            +
            - lib/rubocop/powerhome/inject.rb
         | 
| 101 | 
            +
            - lib/rubocop/powerhome/version.rb
         | 
| 102 | 
            +
            - rubocop-powerhome.gemspec
         | 
| 103 | 
            +
            - sig/rubocop/powerhome.rbs
         | 
| 104 | 
            +
            homepage: https://github.com/powerhome/power_linting
         | 
| 105 | 
            +
            licenses:
         | 
| 106 | 
            +
            - MIT
         | 
| 107 | 
            +
            metadata:
         | 
| 108 | 
            +
              homepage_uri: https://github.com/powerhome/power_linting
         | 
| 109 | 
            +
              source_code_uri: https://github.com/powerhome/power_linting
         | 
| 110 | 
            +
              changelog_uri: https://github.com/powerhome/power_linting/CHANGELOG.md
         | 
| 111 | 
            +
              rubygems_mfa_required: 'true'
         | 
| 112 | 
            +
            post_install_message: 
         | 
| 113 | 
            +
            rdoc_options: []
         | 
| 114 | 
            +
            require_paths:
         | 
| 115 | 
            +
            - lib
         | 
| 116 | 
            +
            required_ruby_version: !ruby/object:Gem::Requirement
         | 
| 117 | 
            +
              requirements:
         | 
| 118 | 
            +
              - - ">="
         | 
| 119 | 
            +
                - !ruby/object:Gem::Version
         | 
| 120 | 
            +
                  version: 2.6.0
         | 
| 121 | 
            +
            required_rubygems_version: !ruby/object:Gem::Requirement
         | 
| 122 | 
            +
              requirements:
         | 
| 123 | 
            +
              - - ">="
         | 
| 124 | 
            +
                - !ruby/object:Gem::Version
         | 
| 125 | 
            +
                  version: '0'
         | 
| 126 | 
            +
            requirements: []
         | 
| 127 | 
            +
            rubygems_version: 3.3.7
         | 
| 128 | 
            +
            signing_key: 
         | 
| 129 | 
            +
            specification_version: 4
         | 
| 130 | 
            +
            summary: Powerhome Rubocop standard rules
         | 
| 131 | 
            +
            test_files: []
         |