rubocop-rails_deprecation 0.2.0 → 0.3.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: da01f0263fa7e9a3194e60ab4d57c81c4b393f75428aca97ec06996d336ee9a7
4
- data.tar.gz: 3b90560d249ea93480f1b18a849f06b4b424b2eaa26c7698b52a9bbd0ea36cf9
3
+ metadata.gz: d83f59fd0e86b57e1f9007ddcd710071091255333a97c4d58da168769f62b882
4
+ data.tar.gz: 83824a404a65eb8d6d05d4946d1747823dab4d70fdcc5cd5a589e09c8cfdb67a
5
5
  SHA512:
6
- metadata.gz: d306908941b38c43bbc6891a29d22902b2673fba6d51278d97a6d650df1ec9ba5a5f536923b502c25352dd47041f8b9f189b802415dcc18c08965058415c722c
7
- data.tar.gz: 6d314536880558be1dcfa822fd0d7fbd537946ea37d34ae782c2c3daa6a768279d7d1cb73478678966b570253392245cbf0bd2bb85ced777561969ab52228fe0
6
+ metadata.gz: 8dddc57f6cc13086ff9b84d400156726fa06bd3c5468298cdf324088bad93e18c83f275bd17a01628a58f7ec06cfbd95f85bbebfd51a987c9ed426b3f839beba
7
+ data.tar.gz: e5599be38bde11643bb4fe83edbf9a3722fee7e6139a8368acb3ee545dc58711b6784b63b3989f0412f7ecc9164150f7b61bb6fdc90092aa5c0a8341e43d84b5
data/CHANGELOG.md CHANGED
@@ -2,6 +2,13 @@
2
2
 
3
3
  ## Unreleased
4
4
 
5
+ ## 0.3.0
6
+
7
+ ### Changed
8
+
9
+ - Rename RailsDeprecation/ToFormattedS with Deprecation/ToFormattedS.
10
+ - Enable cop by default.
11
+
5
12
  ## 0.2.0
6
13
 
7
14
  ### Changed
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rubocop-rails_deprecation (0.2.0)
4
+ rubocop-rails_deprecation (0.3.0)
5
5
  rubocop
6
6
 
7
7
  GEM
data/config/default.yml CHANGED
@@ -1,4 +1,4 @@
1
- RailsDeprecation/ToFormattedS:
2
- Description: Use `to_formatted_s(...)` instead of `to_s(...)`.
3
- Enabled: pending
1
+ Deprecation/ToFormattedS:
2
+ Description: Use `to_fs(...)` instead of `to_s(...)`.
3
+ Enabled: true
4
4
  VersionAdded: '0.1'
@@ -2,7 +2,7 @@
2
2
 
3
3
  module RuboCop
4
4
  module Cop
5
- module RailsDeprecation
5
+ module Deprecation
6
6
  class Base < ::RuboCop::Cop::Base
7
7
  DEFAULT_MINIMUM_TARGET_RAILS_VERSION = 5.0
8
8
 
@@ -2,7 +2,7 @@
2
2
 
3
3
  module RuboCop
4
4
  module Cop
5
- module RailsDeprecation
5
+ module Deprecation
6
6
  # This cop identifies passing a format to `#to_s`.
7
7
  #
8
8
  # @safety
@@ -3,7 +3,7 @@
3
3
  # The original code is from https://github.com/rubocop/rubocop-rspec/blob/main/lib/rubocop/rspec/inject.rb
4
4
  # See https://github.com/rubocop/rubocop-rspec/blob/main/MIT-LICENSE.md
5
5
  module RuboCop
6
- module RailsDeprecation
6
+ module Deprecation
7
7
  # Because RuboCop doesn't yet support plugins, we have to monkey patch in a
8
8
  # bit of our configuration.
9
9
  module Inject
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RuboCop
4
- module RailsDeprecation
5
- VERSION = '0.2.0'
4
+ module Deprecation
5
+ VERSION = '0.3.0'
6
6
  end
7
7
  end
@@ -3,7 +3,7 @@
3
3
  require_relative 'rails_deprecation/version'
4
4
 
5
5
  module RuboCop
6
- module RailsDeprecation
6
+ module Deprecation
7
7
  class Error < StandardError; end
8
8
  # Your code goes here...
9
9
  PROJECT_ROOT = Pathname.new(__dir__).parent.parent.expand_path.freeze
@@ -6,6 +6,6 @@ require_relative 'rubocop/rails_deprecation'
6
6
  require_relative 'rubocop/rails_deprecation/version'
7
7
  require_relative 'rubocop/rails_deprecation/inject'
8
8
 
9
- RuboCop::RailsDeprecation::Inject.defaults!
9
+ RuboCop::Deprecation::Inject.defaults!
10
10
 
11
11
  require_relative 'rubocop/cop/rails_deprecation_cops'
@@ -4,7 +4,7 @@ require_relative 'lib/rubocop/rails_deprecation/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
6
  spec.name = 'rubocop-rails_deprecation'
7
- spec.version = RuboCop::RailsDeprecation::VERSION
7
+ spec.version = RuboCop::Deprecation::VERSION
8
8
  spec.authors = ['Ryo Nakamura']
9
9
  spec.email = ['r7kamura@gmail.com']
10
10
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-rails_deprecation
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.3.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryo Nakamura