rubocop-codetakt 0.82.0.0 → 0.82.0.1
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/.rubocop.yml +4 -12
- data/CHANGELOG.md +6 -0
- data/Gemfile +6 -6
- data/Rakefile +2 -2
- data/bin/console +3 -3
- data/config/rubocop.yml +5 -1
- data/exe/rubocop-codetakt +3 -3
- data/lib/rubocop/codetakt/cli.rb +8 -7
- data/lib/rubocop/codetakt/version.rb +1 -1
- data/lib/rubocop_codetakt.rb +2 -2
- data/rubocop-codetakt.gemspec +13 -13
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: e42d51bc1455fb48b32ff21210ade5dde90b37cc0f5cfe423fdfd381558a2d4c
|
4
|
+
data.tar.gz: c939fc2be4ed15dc72678a00946e531b28461d79849c095b40ff182562fb1c7b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 37830772b2b7ff96b139c7a6ee75f0a270fe77baf229032302a0ab4022fa5fb92b4a2194957875a903580ae1c4e59c06cf5844fc81f5ffa586f7bc1afcadfbaa
|
7
|
+
data.tar.gz: 69593d0ef9954bc719280b80405119dfe7786dc904786761281cc7dc5fc31fc3ee8ac6f03651ecf3659256ac15a47bfd187f68c48cb4e7847466d85886cac274
|
data/.rubocop.yml
CHANGED
@@ -1,12 +1,4 @@
|
|
1
|
-
|
2
|
-
rubocop
|
3
|
-
|
4
|
-
|
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"
|
data/CHANGELOG.md
CHANGED
@@ -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
|
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
|
7
|
-
gem
|
8
|
-
gem
|
9
|
-
gem
|
10
|
-
gem
|
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
data/bin/console
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
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
|
13
|
+
require 'irb'
|
14
14
|
IRB.start
|
data/config/rubocop.yml
CHANGED
@@ -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
|
data/exe/rubocop-codetakt
CHANGED
@@ -1,10 +1,10 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
$LOAD_PATH.unshift File.dirname(__FILE__) +
|
3
|
+
$LOAD_PATH.unshift File.dirname(__FILE__) + '/../lib'
|
4
4
|
|
5
5
|
# Exit cleanly from an early interrupt
|
6
|
-
Signal.trap(
|
6
|
+
Signal.trap('INT') { exit 1 }
|
7
7
|
|
8
|
-
require
|
8
|
+
require 'rubocop_codetakt'
|
9
9
|
|
10
10
|
RuboCop::Codetakt::CLI.start(ARGV)
|
data/lib/rubocop/codetakt/cli.rb
CHANGED
@@ -1,4 +1,4 @@
|
|
1
|
-
require
|
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
|
34
|
-
puts
|
33
|
+
puts 'rubocop-codetakt commands:'
|
34
|
+
puts ' init - Setup .rubocop.yml'
|
35
35
|
end
|
36
36
|
|
37
|
-
CONFIG_FILE_NAME =
|
37
|
+
CONFIG_FILE_NAME = '.rubocop.yml'.freeze
|
38
38
|
def init(args)
|
39
|
-
raise
|
40
|
-
|
41
|
-
|
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
|
data/lib/rubocop_codetakt.rb
CHANGED
@@ -1,2 +1,2 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'rubocop/codetakt/cli'
|
2
|
+
require 'rubocop/codetakt/version'
|
data/rubocop-codetakt.gemspec
CHANGED
@@ -1,25 +1,25 @@
|
|
1
|
-
lib = File.expand_path(
|
1
|
+
lib = File.expand_path('lib', __dir__)
|
2
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
-
require
|
3
|
+
require 'rubocop/codetakt/version'
|
4
4
|
|
5
5
|
Gem::Specification.new do |spec|
|
6
|
-
spec.name =
|
6
|
+
spec.name = 'rubocop-codetakt'
|
7
7
|
spec.version = RuboCop::Codetakt::VERSION
|
8
|
-
spec.authors = [
|
9
|
-
spec.email = [
|
8
|
+
spec.authors = ['codeTakt Developers']
|
9
|
+
spec.email = ['dev@codetakt.com']
|
10
10
|
|
11
|
-
spec.summary =
|
12
|
-
spec.description = <<-
|
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
|
-
|
16
|
-
spec.homepage =
|
17
|
-
spec.license =
|
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 =
|
20
|
+
spec.bindir = 'exe'
|
21
21
|
spec.executables = spec.files.grep(%r{^exe/}) {|f| File.basename(f) }
|
22
|
-
spec.require_paths = [
|
22
|
+
spec.require_paths = ['lib']
|
23
23
|
|
24
|
-
spec.add_dependency
|
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.
|
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-
|
11
|
+
date: 2020-06-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|