unasukecop 0.4.0 → 0.5.0

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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: cf92fa4fafecd6a4054c6fc64f7aa38745a0f95a
4
- data.tar.gz: 9ac5d097bfeef9076de7287dc37c411489007b99
3
+ metadata.gz: d9377ebc835c600829663b6fd183a1a6df173264
4
+ data.tar.gz: 3dec6afa088474762b4d8c33176dc3492b409dbc
5
5
  SHA512:
6
- metadata.gz: bc549a7964de1cfce13623ed8ee5332411bd65ef0bb42802800c2be0887c1ff565de50e4ac7052bbd392a573186975d141d597798efa6c482e4779f6f15679b3
7
- data.tar.gz: e3380213496c920e6572cf7ca0ece879b21192b7fe7262461bf15d0fc4e97a111289e76ad3e3d6498b34200e84a05566330bec6bc0f4e312f0ababe9711e26bf
6
+ metadata.gz: a1754b8fb65e36af79bd397296572d3b3eb13e4a416af3d8f24a87f341fbdff22d0bec250eaaca18853af3609336eea99283f5dea04c96b1c860a1c3443ccbb3
7
+ data.tar.gz: 9adcc5291faaf449dbf50d51b763f6034cf88744626307ac15a9000b152bc2fe92a5ef020257cd84f09d871b42e9e6f57278945537a7b35a7cbcc8f4cccb4a33
@@ -0,0 +1,4 @@
1
+ inherit_from: 'config/rubocop.yml'
2
+
3
+ Style/Documentation:
4
+ Enabled: false
@@ -1,5 +1,10 @@
1
+ notifications:
2
+ email: false
3
+ dist: trusty
1
4
  sudo: false
2
5
  language: ruby
3
6
  rvm:
4
7
  - 2.3.3
5
- before_install: gem install bundler -v 1.14.3
8
+ - 2.4.1
9
+ before_install: gem install bundler
10
+ script: bundle exec rubocop
data/README.md CHANGED
@@ -1,4 +1,5 @@
1
1
  # Unasukecop
2
+ [![Build Status](https://travis-ci.org/unasuke/unasukecop.svg?branch=master)](https://travis-ci.org/unasuke/unasukecop)
2
3
 
3
4
  UnasukeCop is a RuboCop configration gem inspired by [OnkCop](https://github.com/onk/onkcop).
4
5
 
data/Rakefile CHANGED
@@ -1,10 +1,10 @@
1
- require "bundler/gem_tasks"
2
- require "rake/testtask"
1
+ require 'bundler/gem_tasks'
2
+ require 'rake/testtask'
3
3
 
4
4
  Rake::TestTask.new(:test) do |t|
5
- t.libs << "test"
6
- t.libs << "lib"
5
+ t.libs << 'test'
6
+ t.libs << 'lib'
7
7
  t.test_files = FileList['test/**/*_test.rb']
8
8
  end
9
9
 
10
- task :default => :test
10
+ task default: :test
@@ -1,14 +1,14 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
- require "bundler/setup"
4
- require "unasukecop"
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 "pry"
10
+ # require 'pry'
11
11
  # Pry.start
12
12
 
13
- require "irb"
13
+ require 'irb'
14
14
  IRB.start(__FILE__)
@@ -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
@@ -1,4 +1,4 @@
1
- require "unasukecop/version"
1
+ require 'unasukecop/version'
2
2
 
3
3
  module Unasukecop
4
4
  # Your code goes here...
@@ -1,3 +1,3 @@
1
1
  module Unasukecop
2
- VERSION = '0.4.0'.freeze
2
+ VERSION = '0.5.0'.freeze
3
3
  end
@@ -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 = "unasukecop"
8
+ spec.name = 'unasukecop'
8
9
  spec.version = Unasukecop::VERSION
9
- spec.authors = ["Yusuke Nakamura"]
10
- spec.email = ["yusuke1994525@gmail.com"]
10
+ spec.authors = ['Yusuke Nakamura']
11
+ spec.email = ['yusuke1994525@gmail.com']
11
12
 
12
- spec.summary = %q{unasukeCop is a RuboCop configration gem.}
13
- spec.description = %q{unasukeCop is a RuboCop configration gem that optimisation to unasuke.}
14
- spec.homepage = "https://github.com/unasuke/unasukecop"
15
- spec.license = "MIT"
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 = "exe"
21
+ spec.bindir = 'exe'
21
22
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
22
- spec.require_paths = ["lib"]
23
+ spec.require_paths = ['lib']
23
24
 
24
- spec.add_dependency "rubocop", '~> 0.48'
25
+ spec.add_dependency 'rubocop', '~> 0.48'
25
26
 
26
- spec.add_development_dependency "bundler", "~> 1.14"
27
- spec.add_development_dependency "rake", "~> 10.0"
28
- spec.add_development_dependency "minitest", "~> 5.0"
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.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-05-18 00:00:00.000000000 Z
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