matkoniecz-ruby-style 0.1.0 → 0.1.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 +1 -0
- data/Gemfile +1 -1
- data/README.md +8 -4
- data/matkoniecz-ruby-style.gemspec +2 -1
- data/standard_rubocop_config.yml +8 -4
- metadata +32 -3
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: d17e0633c982cd2d7ce24135ad284882b9fb25d8
|
|
4
|
+
data.tar.gz: 9ce4f7ec771f00f014b5cc807015954447de4016
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: cefbeef1256ef1883ea8ca02f625657a1e78c7307b6a91d948740f9c195b79cf15328d39b43e9ed5a52a3739aa8765cc4de9fb81edc6a69333e11f474d67712c
|
|
7
|
+
data.tar.gz: 241de6c9b63468af41cef0ca24afe15c1967951f5b70a31f6559cd316b10bdda8c36b922ef0eb4f8ec3f6a4ef2611b328307f53a4e5f90e4e62c645ad1f3270c
|
data/.rubocop.yml
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
inherit_from: matkoniecz-ruby-style.yml
|
data/Gemfile
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
source "https://rubygems.org"
|
|
2
2
|
|
|
3
|
-
git_source(:github) {|repo_name| "https://github.com
|
|
3
|
+
git_source(:github) {|repo_name| "https://github.com/matkoniecz/matkoniecz-ruby-style" }
|
|
4
4
|
|
|
5
5
|
# Specify your gem's dependencies in matkoniecz-ruby-style.gemspec
|
|
6
6
|
gemspec
|
data/README.md
CHANGED
|
@@ -1,8 +1,6 @@
|
|
|
1
|
-
#
|
|
1
|
+
# matkoniecz-ruby-style
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
TODO: Delete this and the text above, and describe your gem
|
|
3
|
+
Shared ruby style config for rubocop.
|
|
6
4
|
|
|
7
5
|
Inspired by [percy-style](https://github.com/percy/percy-style).
|
|
8
6
|
|
|
@@ -16,6 +14,12 @@ or add this line to your application's Gemfile:
|
|
|
16
14
|
gem 'matkoniecz-ruby-style'
|
|
17
15
|
```
|
|
18
16
|
|
|
17
|
+
or, for a Ruby library, add this to your gemspec:
|
|
18
|
+
|
|
19
|
+
```ruby
|
|
20
|
+
spec.add_development_dependency 'matkoniecz-ruby-style'
|
|
21
|
+
```
|
|
22
|
+
|
|
19
23
|
## Usage
|
|
20
24
|
|
|
21
25
|
Create a `.rubocop.yml` with the following directives:
|
|
@@ -1,4 +1,3 @@
|
|
|
1
|
-
|
|
2
1
|
lib = File.expand_path("../lib", __FILE__)
|
|
3
2
|
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
|
4
3
|
require "matkoniecz/ruby/style/version"
|
|
@@ -21,4 +20,6 @@ Gem::Specification.new do |spec|
|
|
|
21
20
|
spec.bindir = "exe"
|
|
22
21
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
|
23
22
|
spec.require_paths = ["lib"]
|
|
23
|
+
spec.add_dependency "rubocop", "~> 0.58.2"
|
|
24
|
+
spec.add_dependency "rubocop-rspec", "~> 1.29.1"
|
|
24
25
|
end
|
data/standard_rubocop_config.yml
CHANGED
|
@@ -1,5 +1,12 @@
|
|
|
1
|
+
require: rubocop-rspec
|
|
2
|
+
|
|
3
|
+
AllCops:
|
|
4
|
+
TargetRubyVersion: 2.4
|
|
5
|
+
|
|
1
6
|
# not preferred as this rule makes harder to move/add/remove items
|
|
2
|
-
Style/
|
|
7
|
+
Style/TrailingCommaInArrayLiteral:
|
|
8
|
+
Enabled: false
|
|
9
|
+
Style/TrailingCommaInHashLiteral:
|
|
3
10
|
Enabled: false
|
|
4
11
|
|
|
5
12
|
# change without benefit ( foobar == nil into foobar.nil?)
|
|
@@ -37,9 +44,6 @@ Lint/UnusedBlockArgument:
|
|
|
37
44
|
Style/SpecialGlobalVars:
|
|
38
45
|
Enabled: false
|
|
39
46
|
|
|
40
|
-
#AllCops:
|
|
41
|
-
# TargetRubyVersion: 2.3
|
|
42
|
-
|
|
43
47
|
# Uncomment following rules to allow using tabs:
|
|
44
48
|
#Layout/Tab:
|
|
45
49
|
# Enabled: false
|
metadata
CHANGED
|
@@ -1,15 +1,43 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: matkoniecz-ruby-style
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.1.
|
|
4
|
+
version: 0.1.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mateusz Konieczny
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: exe
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2018-10-
|
|
12
|
-
dependencies:
|
|
11
|
+
date: 2018-10-16 00:00:00.000000000 Z
|
|
12
|
+
dependencies:
|
|
13
|
+
- !ruby/object:Gem::Dependency
|
|
14
|
+
name: rubocop
|
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
|
16
|
+
requirements:
|
|
17
|
+
- - "~>"
|
|
18
|
+
- !ruby/object:Gem::Version
|
|
19
|
+
version: 0.58.2
|
|
20
|
+
type: :runtime
|
|
21
|
+
prerelease: false
|
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
23
|
+
requirements:
|
|
24
|
+
- - "~>"
|
|
25
|
+
- !ruby/object:Gem::Version
|
|
26
|
+
version: 0.58.2
|
|
27
|
+
- !ruby/object:Gem::Dependency
|
|
28
|
+
name: rubocop-rspec
|
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
|
30
|
+
requirements:
|
|
31
|
+
- - "~>"
|
|
32
|
+
- !ruby/object:Gem::Version
|
|
33
|
+
version: 1.29.1
|
|
34
|
+
type: :runtime
|
|
35
|
+
prerelease: false
|
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
|
37
|
+
requirements:
|
|
38
|
+
- - "~>"
|
|
39
|
+
- !ruby/object:Gem::Version
|
|
40
|
+
version: 1.29.1
|
|
13
41
|
description:
|
|
14
42
|
email:
|
|
15
43
|
- matkoniecz@gmail.com
|
|
@@ -18,6 +46,7 @@ extensions: []
|
|
|
18
46
|
extra_rdoc_files: []
|
|
19
47
|
files:
|
|
20
48
|
- ".gitignore"
|
|
49
|
+
- ".rubocop.yml"
|
|
21
50
|
- Gemfile
|
|
22
51
|
- LICENSE.txt
|
|
23
52
|
- README.md
|