rubocop-codetakt 0.82.0.0 → 0.82.0.1

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: 9ce6c7a74ef3e10599646185d4cdb5f24e9b7c28a642dab9fcd991320eb0a266
4
- data.tar.gz: 9c5ba3dc1a0cb4ee4a3573fc3d94ad0f18dcbf5b0920690a6335cb57604e3bd2
3
+ metadata.gz: e42d51bc1455fb48b32ff21210ade5dde90b37cc0f5cfe423fdfd381558a2d4c
4
+ data.tar.gz: c939fc2be4ed15dc72678a00946e531b28461d79849c095b40ff182562fb1c7b
5
5
  SHA512:
6
- metadata.gz: 758dda084a7a4ee3463c853642c706fea238a7375c936b5ca36cc2a2a3661df1d87bb37442dae25509c13558cc4844fc8a2d45f62489b6f2818f7958041cfe9a
7
- data.tar.gz: c1941541ff7a5b8a3f605e3de6732ddad53f55e6a171e548b4da5ad809afb478f456370ac458ba765e4d249314473e8ff82bd180ba7e66f75b3364a6532c6ac9
6
+ metadata.gz: 37830772b2b7ff96b139c7a6ee75f0a270fe77baf229032302a0ab4022fa5fb92b4a2194957875a903580ae1c4e59c06cf5844fc81f5ffa586f7bc1afcadfbaa
7
+ data.tar.gz: 69593d0ef9954bc719280b80405119dfe7786dc904786761281cc7dc5fc31fc3ee8ac6f03651ecf3659256ac15a47bfd187f68c48cb4e7847466d85886cac274
@@ -1,12 +1,4 @@
1
- inherit_gem:
2
- rubocop-codetakt:
3
- - "config/rubocop.yml"
4
- # uncomment if use performance cops
5
- - "config/performance.yml"
6
- # uncomment if use rails cops
7
- - "config/rails.yml"
8
- # uncomment if use rspec cops
9
- - "config/rspec.yml"
10
-
11
- AllCops:
12
- TargetRubyVersion: 2.5
1
+ inherit_from:
2
+ - "config/rubocop.yml"
3
+ - "config/performance.yml"
4
+ - "config/rspec.yml"
@@ -1,8 +1,14 @@
1
1
  # rubocop-codetakt:
2
2
 
3
+ ## v0.82.0.1 (2020-06-01)
4
+
5
+ * Make the code in this repository to no offenses
6
+ * Accept the default setting of new cops
7
+
3
8
  ## v0.82.0.0 (2020-04-20)
4
9
 
5
10
  * Fork from onk/onkcop to codetakt/rubocop-codetakt
11
+ * Update `rubocop` v0.82.0, `rubocop-rspec` v1.38.0, `rubocop-rails` v2.5.0 and `rubocop-performance` v1.5.0
6
12
  * Follow upstream renamings
7
13
  * Separate the file of performance settings
8
14
  * Clarify requiring the `rubocop-rails` gem in the Rails settings file
data/Gemfile CHANGED
@@ -1,10 +1,10 @@
1
- source "https://rubygems.org"
1
+ source 'https://rubygems.org'
2
2
 
3
3
  # Specify your gem's dependencies in rubocop-codetakt.gemspec
4
4
  gemspec
5
5
 
6
- gem "rake", "~> 12.0"
7
- gem "rspec", "~> 3.0"
8
- gem "rubocop-performance", "~> 1.5.0"
9
- gem "rubocop-rails", "~> 2.5.0"
10
- gem "rubocop-rspec", "~> 1.38.0"
6
+ gem 'rake', '~> 12.0'
7
+ gem 'rspec', '~> 3.0'
8
+ gem 'rubocop-performance', '~> 1.5.0'
9
+ gem 'rubocop-rails', '~> 2.5.0'
10
+ gem 'rubocop-rspec', '~> 1.38.0'
data/Rakefile CHANGED
@@ -1,4 +1,4 @@
1
- require "bundler/gem_tasks"
2
- require "rspec/core/rake_task"
1
+ require 'bundler/gem_tasks'
2
+ require 'rspec/core/rake_task'
3
3
  RSpec::Core::RakeTask.new(:rspec)
4
4
  task :default => [:rspec]
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "rubocop_codetakt"
3
+ require 'bundler/setup'
4
+ require 'rubocop_codetakt'
5
5
 
6
6
  # You can add fixtures and/or initialization code here to make experimenting
7
7
  # with your gem easier. You can also use a different console, if you like.
@@ -10,5 +10,5 @@ require "rubocop_codetakt"
10
10
  # require "pry"
11
11
  # Pry.start
12
12
 
13
- require "irb"
13
+ require 'irb'
14
14
  IRB.start
@@ -1,5 +1,9 @@
1
- # 自動生成されるものはチェック対象から除外する
2
1
  AllCops:
2
+ # We accept the default setting of rookie cops.
3
+ # https://docs.rubocop.org/rubocop/versioning.html
4
+ NewCops: enable
5
+
6
+ # Exclude automatically generated files.
3
7
  Exclude:
4
8
  - "node_modules/**/*" # rubocop config/default.yml
5
9
  - "vendor/**/*" # rubocop config/default.yml
@@ -1,10 +1,10 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- $LOAD_PATH.unshift File.dirname(__FILE__) + "/../lib"
3
+ $LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
4
4
 
5
5
  # Exit cleanly from an early interrupt
6
- Signal.trap("INT") { exit 1 }
6
+ Signal.trap('INT') { exit 1 }
7
7
 
8
- require "rubocop_codetakt"
8
+ require 'rubocop_codetakt'
9
9
 
10
10
  RuboCop::Codetakt::CLI.start(ARGV)
@@ -1,4 +1,4 @@
1
- require "fileutils"
1
+ require 'fileutils'
2
2
 
3
3
  module RuboCop
4
4
  module Codetakt
@@ -30,15 +30,16 @@ module RuboCop
30
30
  end
31
31
 
32
32
  def self.print_help
33
- puts "rubocop-codetakt commands:"
34
- puts " init - Setup .rubocop.yml"
33
+ puts 'rubocop-codetakt commands:'
34
+ puts ' init - Setup .rubocop.yml'
35
35
  end
36
36
 
37
- CONFIG_FILE_NAME = ".rubocop.yml"
37
+ CONFIG_FILE_NAME = '.rubocop.yml'.freeze
38
38
  def init(args)
39
- raise "usage: rubocop-codetakt init" unless args.empty?
40
- template_path = File.expand_path("../../../templates", __dir__)
41
- puts "#{File.exist?(CONFIG_FILE_NAME) ? "overwrite" : "create"} #{CONFIG_FILE_NAME}"
39
+ raise 'usage: rubocop-codetakt init' unless args.empty?
40
+
41
+ template_path = File.expand_path('../../../templates', __dir__)
42
+ puts "#{File.exist?(CONFIG_FILE_NAME) ? 'overwrite' : 'create'} #{CONFIG_FILE_NAME}"
42
43
  FileUtils.copy_file(File.join(template_path, CONFIG_FILE_NAME), CONFIG_FILE_NAME)
43
44
  end
44
45
  end
@@ -1,5 +1,5 @@
1
1
  module RuboCop
2
2
  module Codetakt
3
- VERSION = "0.82.0.0"
3
+ VERSION = '0.82.0.1'.freeze
4
4
  end
5
5
  end
@@ -1,2 +1,2 @@
1
- require "rubocop/codetakt/cli"
2
- require "rubocop/codetakt/version"
1
+ require 'rubocop/codetakt/cli'
2
+ require 'rubocop/codetakt/version'
@@ -1,25 +1,25 @@
1
- lib = File.expand_path("lib", __dir__)
1
+ lib = File.expand_path('lib', __dir__)
2
2
  $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
3
- require "rubocop/codetakt/version"
3
+ require 'rubocop/codetakt/version'
4
4
 
5
5
  Gem::Specification.new do |spec|
6
- spec.name = "rubocop-codetakt"
6
+ spec.name = 'rubocop-codetakt'
7
7
  spec.version = RuboCop::Codetakt::VERSION
8
- spec.authors = ["codeTakt Developers"]
9
- spec.email = ["dev@codetakt.com"]
8
+ spec.authors = ['codeTakt Developers']
9
+ spec.email = ['dev@codetakt.com']
10
10
 
11
- spec.summary = "Unify the coding style of Ruby within codeTakt Inc."
12
- spec.description = <<-EOF
11
+ spec.summary = 'Unify the coding style of Ruby within codeTakt Inc.'
12
+ spec.description = <<-DESC
13
13
  This includes the RuboCop configuration used by codeTakt. It is
14
14
  for the unification and linting of coding styles.
15
- EOF
16
- spec.homepage = "https://github.com/codetakt/rubocop-codetakt"
17
- spec.license = "MIT"
15
+ DESC
16
+ spec.homepage = 'https://github.com/codetakt/rubocop-codetakt'
17
+ spec.license = 'MIT'
18
18
 
19
19
  spec.files = `git ls-files -z`.split("\x0").reject {|f| f.match(%r{^(test|spec|features)/}) }
20
- spec.bindir = "exe"
20
+ spec.bindir = 'exe'
21
21
  spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
22
- spec.require_paths = ["lib"]
22
+ spec.require_paths = ['lib']
23
23
 
24
- spec.add_dependency "rubocop", "~> 0.82.0"
24
+ spec.add_dependency 'rubocop', '~> 0.82.0'
25
25
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-codetakt
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.82.0.0
4
+ version: 0.82.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - codeTakt Developers
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2020-04-20 00:00:00.000000000 Z
11
+ date: 2020-06-01 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rubocop