farmworx-style 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +3 -0
- data/.rubocop.yml +1 -0
- data/Gemfile +3 -0
- data/LICENSE +21 -0
- data/README.md +43 -0
- data/RELEASING.md +16 -0
- data/Rakefile +1 -0
- data/default.yml +44 -0
- data/farmworx-style.gemspec +19 -0
- data/lib/farmworx/style.rb +4 -0
- data/lib/farmworx/style/version.rb +5 -0
- metadata +95 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 615bb702d8992c277fd374510e0dd14571f2af2c2c45f754b0199db323276e5f
|
4
|
+
data.tar.gz: 10f6f31632cdc9554d32c3b1b444b237b168052c84338039e0ecf02748aadee0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: d5b493856e673c88654850dcf2b629de0c8fb0e273276bc58b32eb36ee82094ccbd8bf1f5fc1001f4464eff2e2f75b4204d98124fdb7c1775dd595b8959b3ad9
|
7
|
+
data.tar.gz: bd6b5376d2718fe94a586d0dc1589a03bc1e108c489d2eaa1ada42fc2b92c48b077dd18f16f93eada6b23d54ba2987a3887534e0122627de846604499e28865c
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
inherit_from: default.yml
|
data/Gemfile
ADDED
data/LICENSE
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
MIT License
|
2
|
+
|
3
|
+
Copyright (c) 2017 Perceptual Inc.
|
4
|
+
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
7
|
+
in the Software without restriction, including without limitation the rights
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
10
|
+
furnished to do so, subject to the following conditions:
|
11
|
+
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
13
|
+
copies or substantial portions of the Software.
|
14
|
+
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
21
|
+
SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,43 @@
|
|
1
|
+
# farmworx-style
|
2
|
+
|
3
|
+
Farmworx shared style configs.
|
4
|
+
|
5
|
+
## Installation
|
6
|
+
|
7
|
+
Add this line to your application's Gemfile:
|
8
|
+
|
9
|
+
```ruby
|
10
|
+
group :test, :development do
|
11
|
+
gem 'farmworx-style'
|
12
|
+
end
|
13
|
+
```
|
14
|
+
|
15
|
+
Or, for a Ruby library, add this to your gemspec:
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
spec.add_development_dependency 'farmworx-style'
|
19
|
+
```
|
20
|
+
|
21
|
+
And then run:
|
22
|
+
|
23
|
+
```bash
|
24
|
+
$ bundle install
|
25
|
+
```
|
26
|
+
|
27
|
+
## Usage
|
28
|
+
|
29
|
+
Create a `.rubocop.yml` with the following directives:
|
30
|
+
|
31
|
+
```yaml
|
32
|
+
inherit_gem:
|
33
|
+
farmworx-style:
|
34
|
+
- default.yml
|
35
|
+
```
|
36
|
+
|
37
|
+
Now, run:
|
38
|
+
|
39
|
+
```bash
|
40
|
+
$ bundle exec rubocop
|
41
|
+
```
|
42
|
+
|
43
|
+
You do not need to include rubocop directly in your application's dependencies. Farmworx-style will include a specific version of `rubocop` that is shared across all projects.
|
data/RELEASING.md
ADDED
@@ -0,0 +1,16 @@
|
|
1
|
+
# Releasing
|
2
|
+
|
3
|
+
1. Update version.rb file accordingly.
|
4
|
+
1. Tag the release: `git tag vX.X.X`
|
5
|
+
1. Push changes: `git push --tags`
|
6
|
+
1. Update the release notes on GitHub.com
|
7
|
+
1. Build and publish:
|
8
|
+
|
9
|
+
```bash
|
10
|
+
bundle exec rake build
|
11
|
+
gem push pkg/farmworx-style-X.X.X.gem
|
12
|
+
```
|
13
|
+
|
14
|
+
* Announce the new release,
|
15
|
+
making sure to say "thank you" to the contributors
|
16
|
+
who helped shape this version!
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require 'bundler/gem_tasks'
|
data/default.yml
ADDED
@@ -0,0 +1,44 @@
|
|
1
|
+
AllCops:
|
2
|
+
TargetRubyVersion: 2.6
|
3
|
+
Exclude:
|
4
|
+
- "db/schema.rb"
|
5
|
+
|
6
|
+
Layout/FirstHashElementIndentation:
|
7
|
+
EnforcedStyle: consistent
|
8
|
+
|
9
|
+
Layout/LineLength:
|
10
|
+
Max: 120
|
11
|
+
|
12
|
+
Layout/MultilineMethodCallIndentation:
|
13
|
+
EnforcedStyle: indented
|
14
|
+
|
15
|
+
Layout/MultilineOperationIndentation:
|
16
|
+
EnforcedStyle: indented
|
17
|
+
|
18
|
+
Layout/ParameterAlignment:
|
19
|
+
EnforcedStyle: with_fixed_indentation
|
20
|
+
|
21
|
+
Metrics/BlockLength:
|
22
|
+
Exclude:
|
23
|
+
- test/**/*
|
24
|
+
- spec/**/*
|
25
|
+
|
26
|
+
Metrics/ClassLength:
|
27
|
+
Exclude:
|
28
|
+
- test/**/*
|
29
|
+
- spec/**/*
|
30
|
+
|
31
|
+
Metrics/MethodLength:
|
32
|
+
Max: 20
|
33
|
+
|
34
|
+
Style/ClassAndModuleChildren:
|
35
|
+
Enabled: false
|
36
|
+
|
37
|
+
Style/Documentation:
|
38
|
+
Enabled: false
|
39
|
+
|
40
|
+
Style/DoubleNegation:
|
41
|
+
Enabled: false
|
42
|
+
|
43
|
+
Style/FrozenStringLiteralComment:
|
44
|
+
Enabled: false
|
@@ -0,0 +1,19 @@
|
|
1
|
+
lib = File.expand_path('../lib', __FILE__)
|
2
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
3
|
+
require 'farmworx/style/version'
|
4
|
+
|
5
|
+
Gem::Specification.new do |spec|
|
6
|
+
spec.name = 'farmworx-style'
|
7
|
+
spec.version = Farmworx::Style::VERSION
|
8
|
+
spec.authors = ['Team Farmworx']
|
9
|
+
spec.email = ['team@farmworx.io']
|
10
|
+
spec.summary = 'Farmworx style guides and shared style configs.'
|
11
|
+
spec.homepage = 'https://github.com/farmworx/farmworx-style'
|
12
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
13
|
+
f.match(%r{^(test|spec|features)/})
|
14
|
+
end
|
15
|
+
|
16
|
+
spec.add_dependency 'rubocop', '~> 0.84.0'
|
17
|
+
spec.add_development_dependency 'bundler', '~> 2.1'
|
18
|
+
spec.add_development_dependency 'rake', '~> 13.0'
|
19
|
+
end
|
metadata
ADDED
@@ -0,0 +1,95 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: farmworx-style
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.1
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Team Farmworx
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
date: 2020-05-27 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.84.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.84.0
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: bundler
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2.1'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2.1'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: rake
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '13.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '13.0'
|
55
|
+
description:
|
56
|
+
email:
|
57
|
+
- team@farmworx.io
|
58
|
+
executables: []
|
59
|
+
extensions: []
|
60
|
+
extra_rdoc_files: []
|
61
|
+
files:
|
62
|
+
- ".gitignore"
|
63
|
+
- ".rubocop.yml"
|
64
|
+
- Gemfile
|
65
|
+
- LICENSE
|
66
|
+
- README.md
|
67
|
+
- RELEASING.md
|
68
|
+
- Rakefile
|
69
|
+
- default.yml
|
70
|
+
- farmworx-style.gemspec
|
71
|
+
- lib/farmworx/style.rb
|
72
|
+
- lib/farmworx/style/version.rb
|
73
|
+
homepage: https://github.com/farmworx/farmworx-style
|
74
|
+
licenses: []
|
75
|
+
metadata: {}
|
76
|
+
post_install_message:
|
77
|
+
rdoc_options: []
|
78
|
+
require_paths:
|
79
|
+
- lib
|
80
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
81
|
+
requirements:
|
82
|
+
- - ">="
|
83
|
+
- !ruby/object:Gem::Version
|
84
|
+
version: '0'
|
85
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
requirements: []
|
91
|
+
rubygems_version: 3.0.6
|
92
|
+
signing_key:
|
93
|
+
specification_version: 4
|
94
|
+
summary: Farmworx style guides and shared style configs.
|
95
|
+
test_files: []
|