hlrubo 0.1.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 +7 -0
- data/.gitignore +8 -0
- data/.rubocop.yml +1 -0
- data/Gemfile +6 -0
- data/README.md +37 -0
- data/Rakefile +2 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/default.yml +88 -0
- data/hlrubo.gemspec +30 -0
- data/lib/hlrubo.rb +8 -0
- data/lib/hlrubo/version.rb +5 -0
- metadata +112 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 56073b277199b062e5fb682211b9d8e06a104d840fe06d0665cbb64129beffc1
|
4
|
+
data.tar.gz: 6d84aac5cb2637c785e21b6f23fe73af0987b1cf5919f78097f092fbde8b6a15
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 54f815b860dded8f2009fefa7ece7acd50e618ed8afd3b6d5622c9e10f07d950d73951b4ecfca4e23c7ed660e5ea6862514a07607aba3a9c6c158931372727f1
|
7
|
+
data.tar.gz: dd445627b9e3497519c8e6d1ce2151bc7def87a34d4f7c52b6952137b47fea0c358dd81ad3a52cd46174a9b490755fbdd2977cb8026ee09ee602290b823e3d28
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
inherit_from: default.yml
|
data/Gemfile
ADDED
data/README.md
ADDED
@@ -0,0 +1,37 @@
|
|
1
|
+
# HomeLight Rubo
|
2
|
+
|
3
|
+
HomeLight shared ruby style configs.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
group :development do
|
11
|
+
gem "hlrubo"
|
12
|
+
end
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
```bash
|
18
|
+
$ bundle install
|
19
|
+
```
|
20
|
+
|
21
|
+
## Usage
|
22
|
+
|
23
|
+
Create a `.rubocop.yml` with the following directives:
|
24
|
+
|
25
|
+
```yaml
|
26
|
+
inherit_gem:
|
27
|
+
hlrubo:
|
28
|
+
- default.yml
|
29
|
+
```
|
30
|
+
|
31
|
+
Now, run:
|
32
|
+
|
33
|
+
```bash
|
34
|
+
$ bundle exec rubocop
|
35
|
+
```
|
36
|
+
|
37
|
+
No need to include rubocop directly application dependencies. Hlrubo will include specific versions of `rubocop`, `rubocop-performance`, `rubocop-rails` and `rubocop-rspec` that is shared across projects.
|
data/Rakefile
ADDED
data/bin/console
ADDED
@@ -0,0 +1,14 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require "bundler/setup"
|
4
|
+
require "hlrubo"
|
5
|
+
|
6
|
+
# You can add fixtures and/or initialization code here to make experimenting
|
7
|
+
# with your gem easier. You can also use a different console, if you like.
|
8
|
+
|
9
|
+
# (If you use this, don't forget to add pry to your Gemfile!)
|
10
|
+
# require "pry"
|
11
|
+
# Pry.start
|
12
|
+
|
13
|
+
require "irb"
|
14
|
+
IRB.start(__FILE__)
|
data/bin/setup
ADDED
data/default.yml
ADDED
@@ -0,0 +1,88 @@
|
|
1
|
+
# https://github.com/rubocop-hq/rubocop/blob/master/config/default.yml
|
2
|
+
require:
|
3
|
+
- rubocop-performance
|
4
|
+
- rubocop-rails
|
5
|
+
- rubocop-rspec
|
6
|
+
|
7
|
+
AllCops:
|
8
|
+
Exclude:
|
9
|
+
- "db/**/*"
|
10
|
+
- "Rakefile"
|
11
|
+
- "*.gemspec"
|
12
|
+
|
13
|
+
Rails:
|
14
|
+
Enabled: true
|
15
|
+
|
16
|
+
|
17
|
+
Layout/EmptyLinesAroundBlockBody:
|
18
|
+
Enabled: false
|
19
|
+
|
20
|
+
Layout/EmptyLinesAroundClassBody:
|
21
|
+
Enabled: false
|
22
|
+
|
23
|
+
Layout/EmptyLinesAroundModuleBody:
|
24
|
+
Enabled: false
|
25
|
+
|
26
|
+
Layout/LineLength:
|
27
|
+
Max: 130
|
28
|
+
|
29
|
+
Layout/MultilineMethodCallIndentation:
|
30
|
+
EnforcedStyle: indented
|
31
|
+
|
32
|
+
Layout/MultilineOperationIndentation:
|
33
|
+
Enabled: false
|
34
|
+
|
35
|
+
|
36
|
+
Metrics/AbcSize:
|
37
|
+
Max: 30
|
38
|
+
|
39
|
+
Metrics/BlockLength:
|
40
|
+
Exclude:
|
41
|
+
- "config/routes.rb"
|
42
|
+
|
43
|
+
Metrics/CyclomaticComplexity:
|
44
|
+
Max: 10
|
45
|
+
|
46
|
+
Metrics/MethodLength:
|
47
|
+
Max: 45
|
48
|
+
|
49
|
+
Metrics/PerceivedComplexity:
|
50
|
+
Max: 10
|
51
|
+
|
52
|
+
|
53
|
+
Style/AndOr:
|
54
|
+
EnforcedStyle: conditionals
|
55
|
+
|
56
|
+
Style/Documentation:
|
57
|
+
Enabled: false
|
58
|
+
|
59
|
+
Style/FrozenStringLiteralComment:
|
60
|
+
Enabled: true
|
61
|
+
|
62
|
+
Style/HashEachMethods:
|
63
|
+
Enabled: false
|
64
|
+
|
65
|
+
Style/HashTransformKeys:
|
66
|
+
Enabled: false
|
67
|
+
|
68
|
+
Style/HashTransformValues:
|
69
|
+
Enabled: false
|
70
|
+
|
71
|
+
Style/MethodDefParentheses:
|
72
|
+
EnforcedStyle: require_no_parentheses
|
73
|
+
|
74
|
+
Style/StringLiterals:
|
75
|
+
Enabled: true
|
76
|
+
EnforcedStyle: double_quotes
|
77
|
+
|
78
|
+
Style/StringLiteralsInInterpolation:
|
79
|
+
EnforcedStyle: double_quotes
|
80
|
+
|
81
|
+
Style/SymbolArray:
|
82
|
+
Enabled: false
|
83
|
+
|
84
|
+
Style/TrailingCommaInArrayLiteral:
|
85
|
+
Enabled: false
|
86
|
+
|
87
|
+
Style/TrailingCommaInHashLiteral:
|
88
|
+
Enabled: false
|
data/hlrubo.gemspec
ADDED
@@ -0,0 +1,30 @@
|
|
1
|
+
require_relative 'lib/hlrubo/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = "hlrubo"
|
5
|
+
spec.version = Hlrubo::VERSION
|
6
|
+
spec.authors = ["HomeLight Engineering"]
|
7
|
+
spec.email = ["engineering@homelight.com"]
|
8
|
+
|
9
|
+
spec.summary = "Homelight Shared Ruby Style Guides"
|
10
|
+
spec.homepage = "https://github.com/homelight/hlrubo"
|
11
|
+
|
12
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
13
|
+
spec.metadata["homepage_uri"] = spec.homepage
|
14
|
+
spec.metadata["source_code_uri"] = spec.homepage
|
15
|
+
|
16
|
+
# Specify which files should be added to the gem when it is released.
|
17
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
18
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
19
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
20
|
+
end
|
21
|
+
|
22
|
+
spec.bindir = "exe"
|
23
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
24
|
+
spec.require_paths = ["lib"]
|
25
|
+
|
26
|
+
spec.add_dependency "rubocop", "0.80.0"
|
27
|
+
spec.add_dependency "rubocop-performance", "1.5.2"
|
28
|
+
spec.add_dependency "rubocop-rails", "2.4.1"
|
29
|
+
spec.add_dependency "rubocop-rspec", "1.37.1"
|
30
|
+
end
|
data/lib/hlrubo.rb
ADDED
metadata
ADDED
@@ -0,0 +1,112 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: hlrubo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- HomeLight Engineering
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-05-01 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.80.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - '='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 0.80.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rubocop-performance
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - '='
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: 1.5.2
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - '='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.5.2
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rubocop-rails
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - '='
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: 2.4.1
|
48
|
+
type: :runtime
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - '='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: 2.4.1
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rubocop-rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - '='
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 1.37.1
|
62
|
+
type: :runtime
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - '='
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: 1.37.1
|
69
|
+
description:
|
70
|
+
email:
|
71
|
+
- engineering@homelight.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rubocop.yml"
|
78
|
+
- Gemfile
|
79
|
+
- README.md
|
80
|
+
- Rakefile
|
81
|
+
- bin/console
|
82
|
+
- bin/setup
|
83
|
+
- default.yml
|
84
|
+
- hlrubo.gemspec
|
85
|
+
- lib/hlrubo.rb
|
86
|
+
- lib/hlrubo/version.rb
|
87
|
+
homepage: https://github.com/homelight/hlrubo
|
88
|
+
licenses: []
|
89
|
+
metadata:
|
90
|
+
allowed_push_host: https://rubygems.org
|
91
|
+
homepage_uri: https://github.com/homelight/hlrubo
|
92
|
+
source_code_uri: https://github.com/homelight/hlrubo
|
93
|
+
post_install_message:
|
94
|
+
rdoc_options: []
|
95
|
+
require_paths:
|
96
|
+
- lib
|
97
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
98
|
+
requirements:
|
99
|
+
- - ">="
|
100
|
+
- !ruby/object:Gem::Version
|
101
|
+
version: '0'
|
102
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
103
|
+
requirements:
|
104
|
+
- - ">="
|
105
|
+
- !ruby/object:Gem::Version
|
106
|
+
version: '0'
|
107
|
+
requirements: []
|
108
|
+
rubygems_version: 3.1.2
|
109
|
+
signing_key:
|
110
|
+
specification_version: 4
|
111
|
+
summary: Homelight Shared Ruby Style Guides
|
112
|
+
test_files: []
|