Shopify / ruby-style-guide

Shopify’s Ruby Style Guide
https://ruby-style-guide.shopify.dev
MIT License
499 stars 48 forks source link

Gemspec/DateAssignment cop has been removed. #463

Closed lacostenycoder closed 1 year ago

lacostenycoder commented 1 year ago

Ruby Version: 2.6.9

GemEnv

RubyGems Environment:
  - RUBYGEMS VERSION: 3.0.3.1
  - RUBY VERSION: 2.6.9 (2021-11-24 patchlevel 207) [x86_64-linux]
  - INSTALLATION DIRECTORY: /home/lance/.gem/ruby/2.6.9
  - USER INSTALLATION DIRECTORY: /home/lance/.gem/ruby/2.6.0
  - RUBY EXECUTABLE: /home/lance/.rubies/ruby-2.6.9/bin/ruby
  - GIT EXECUTABLE: /usr/bin/git
  - EXECUTABLE DIRECTORY: /home/lance/.gem/ruby/2.6.9/bin
  - SPEC CACHE DIRECTORY: /home/lance/.gem/specs
  - SYSTEM CONFIGURATION DIRECTORY: /home/lance/.rubies/ruby-2.6.9/etc
  - RUBYGEMS PLATFORMS:
    - ruby
    - x86_64-linux
  - GEM PATHS:
     - /home/lance/.gem/ruby/2.6.9
     - /home/lance/.rubies/ruby-2.6.9/lib/ruby/gems/2.6.0
  - GEM CONFIGURATION:
     - :update_sources => true
     - :verbose => true
     - :backtrace => false
     - :bulk_threshold => 1000
     - :sources => ["https://rubygems.org/"]
     - :concurrent_downloads => 8
     - "gem" => "--document=yri"
  - REMOTE SOURCES:
     - https://rubygems.org/
  - SHELL PATH:
     - /home/lance/.gem/ruby/2.6.9/bin
     - /home/lance/.rubies/ruby-2.6.9/lib/ruby/gems/2.6.0/bin
     - /home/lance/.rubies/ruby-2.6.9/bin
     - /home/lance/.local/bin
     - /home/lance/.nvm/versions/node/v14.19.1/bin
     - /home/lance/.local/bin
     - /usr/local/sbin
     - /usr/local/bin
     - /usr/sbin
     - /usr/bin
     - /sbin
     - /bin
     - /usr/games
     - /usr/local/games
     - /snap/bin
     - /home/lance/dev/bin/

Added just this gem (no other rubocop gems) to my project and get this error.

bundle exec rubocop
Error: The `Gemspec/DateAssignment` cop has been removed. Please use `Gemspec/DeprecatedAttributeAssignment` instead.
(obsolete configuration found in /home/lance/.gem/ruby/2.6.9/gems/rubocop-shopify-2.5.0/rubocop.yml, please update it)

gem list rubocop      

*** LOCAL GEMS ***

rubocop (1.31.0)
rubocop-ast (1.24.0)
rubocop-rspec (2.11.1)
rubocop-shopify (2.5.0)
sambostock commented 1 year ago

This was fixed in #406