unasukecop 0.4.0 → 0.5.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.rubocop.yml +4 -0
- data/.travis.yml +6 -1
- data/README.md +1 -0
- data/Rakefile +5 -5
- data/bin/console +4 -4
- data/config/rubocop.yml +16 -14
- data/lib/unasukecop.rb +1 -1
- data/lib/unasukecop/version.rb +1 -1
- data/unasukecop.gemspec +14 -13
- metadata +3 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d9377ebc835c600829663b6fd183a1a6df173264
|
4
|
+
data.tar.gz: 3dec6afa088474762b4d8c33176dc3492b409dbc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a1754b8fb65e36af79bd397296572d3b3eb13e4a416af3d8f24a87f341fbdff22d0bec250eaaca18853af3609336eea99283f5dea04c96b1c860a1c3443ccbb3
|
7
|
+
data.tar.gz: 9adcc5291faaf449dbf50d51b763f6034cf88744626307ac15a9000b152bc2fe92a5ef020257cd84f09d871b42e9e6f57278945537a7b35a7cbcc8f4cccb4a33
|
data/.rubocop.yml
ADDED
data/.travis.yml
CHANGED
data/README.md
CHANGED
data/Rakefile
CHANGED
@@ -1,10 +1,10 @@
|
|
1
|
-
require
|
2
|
-
require
|
1
|
+
require 'bundler/gem_tasks'
|
2
|
+
require 'rake/testtask'
|
3
3
|
|
4
4
|
Rake::TestTask.new(:test) do |t|
|
5
|
-
t.libs <<
|
6
|
-
t.libs <<
|
5
|
+
t.libs << 'test'
|
6
|
+
t.libs << 'lib'
|
7
7
|
t.test_files = FileList['test/**/*_test.rb']
|
8
8
|
end
|
9
9
|
|
10
|
-
task :
|
10
|
+
task default: :test
|
data/bin/console
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
require
|
4
|
-
require
|
3
|
+
require 'bundler/setup'
|
4
|
+
require 'unasukecop'
|
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.
|
8
8
|
|
9
9
|
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
-
# require
|
10
|
+
# require 'pry'
|
11
11
|
# Pry.start
|
12
12
|
|
13
|
-
require
|
13
|
+
require 'irb'
|
14
14
|
IRB.start(__FILE__)
|
data/config/rubocop.yml
CHANGED
@@ -19,11 +19,6 @@ Metrics/MethodLength:
|
|
19
19
|
|
20
20
|
## Style
|
21
21
|
|
22
|
-
# when copy-and-past to REPL, trailing dot is more safety
|
23
|
-
# inherit from onkcop
|
24
|
-
Style/DotPosition:
|
25
|
-
EnforcedStyle: trailing
|
26
|
-
|
27
22
|
# just a preference
|
28
23
|
Style/EmptyMethod:
|
29
24
|
EnforcedStyle: expanded
|
@@ -37,15 +32,6 @@ Style/FormatString:
|
|
37
32
|
Style/HashSyntax:
|
38
33
|
EnforcedStyle: ruby19_no_mixed_keys
|
39
34
|
|
40
|
-
# more short line length and compact diff when change method name
|
41
|
-
# inherit from onkcop
|
42
|
-
Style/IndentArray:
|
43
|
-
EnforcedStyle: consistent
|
44
|
-
|
45
|
-
# same as reason of Style/IndentArray
|
46
|
-
Style/IndentHash:
|
47
|
-
EnforcedStyle: consistent
|
48
|
-
|
49
35
|
# just a preference
|
50
36
|
Style/InlineComment:
|
51
37
|
Enabled: false
|
@@ -79,3 +65,19 @@ Style/TrailingCommaInArguments:
|
|
79
65
|
# same as reason of Style/TrailingCommaInArguments
|
80
66
|
Style/TrailingCommaInLiteral:
|
81
67
|
EnforcedStyleForMultiline: consistent_comma
|
68
|
+
|
69
|
+
## Layout
|
70
|
+
|
71
|
+
# when copy-and-past to REPL, trailing dot is more safety
|
72
|
+
# inherit from onkcop
|
73
|
+
Layout/DotPosition:
|
74
|
+
EnforcedStyle: trailing
|
75
|
+
|
76
|
+
# more short line length and compact diff when change method name
|
77
|
+
# inherit from onkcop
|
78
|
+
Layout/IndentArray:
|
79
|
+
EnforcedStyle: consistent
|
80
|
+
|
81
|
+
# same as reason of Style/IndentArray
|
82
|
+
Layout/IndentHash:
|
83
|
+
EnforcedStyle: consistent
|
data/lib/unasukecop.rb
CHANGED
data/lib/unasukecop/version.rb
CHANGED
data/unasukecop.gemspec
CHANGED
@@ -1,29 +1,30 @@
|
|
1
1
|
# coding: utf-8
|
2
|
+
|
2
3
|
lib = File.expand_path('../lib', __FILE__)
|
3
4
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
4
5
|
require 'unasukecop/version'
|
5
6
|
|
6
7
|
Gem::Specification.new do |spec|
|
7
|
-
spec.name =
|
8
|
+
spec.name = 'unasukecop'
|
8
9
|
spec.version = Unasukecop::VERSION
|
9
|
-
spec.authors = [
|
10
|
-
spec.email = [
|
10
|
+
spec.authors = ['Yusuke Nakamura']
|
11
|
+
spec.email = ['yusuke1994525@gmail.com']
|
11
12
|
|
12
|
-
spec.summary =
|
13
|
-
spec.description =
|
14
|
-
spec.homepage =
|
15
|
-
spec.license =
|
13
|
+
spec.summary = 'unasukeCop is a RuboCop configration gem.'
|
14
|
+
spec.description = 'unasukeCop is a RuboCop configration gem that optimisation to unasuke.'
|
15
|
+
spec.homepage = 'https://github.com/unasuke/unasukecop'
|
16
|
+
spec.license = 'MIT'
|
16
17
|
|
17
18
|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
18
19
|
f.match(%r{^(test|spec|features)/})
|
19
20
|
end
|
20
|
-
spec.bindir =
|
21
|
+
spec.bindir = 'exe'
|
21
22
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
22
|
-
spec.require_paths = [
|
23
|
+
spec.require_paths = ['lib']
|
23
24
|
|
24
|
-
spec.add_dependency
|
25
|
+
spec.add_dependency 'rubocop', '~> 0.48'
|
25
26
|
|
26
|
-
spec.add_development_dependency
|
27
|
-
spec.add_development_dependency
|
28
|
-
spec.add_development_dependency
|
27
|
+
spec.add_development_dependency 'bundler', '~> 1.14'
|
28
|
+
spec.add_development_dependency 'rake', '~> 10.0'
|
29
|
+
spec.add_development_dependency 'minitest', '~> 5.0'
|
29
30
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: unasukecop
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.5.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Yusuke Nakamura
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-07-23 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rubocop
|
@@ -74,6 +74,7 @@ extensions: []
|
|
74
74
|
extra_rdoc_files: []
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
|
+
- ".rubocop.yml"
|
77
78
|
- ".travis.yml"
|
78
79
|
- Gemfile
|
79
80
|
- LICENSE.txt
|