airslie-style 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 +13 -0
- data/.rubocop.yml +1 -0
- data/Gemfile +4 -0
- data/LICENSE +21 -0
- data/README.md +43 -0
- data/Rakefile +1 -0
- data/airslie-style.gemspec +36 -0
- data/default.yml +215 -0
- data/lib/airslie/style/version.rb +5 -0
- data/lib/airslie/style.rb +7 -0
- metadata +110 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 7929d4f6bc99e9e68e7730777f2e3e9ab4f8a5e1
|
4
|
+
data.tar.gz: 6f2646a135d0220b00c76b4a75288f1a1f7b9169
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 916a40dad5ab87892b0833dc93d96ed4f0f8660e677447717b3ff82f5d48f4da5cb25b087d05d7c3fd6dde3e72960143f879c6bd0646d09da8373f9ed3c07eb2
|
7
|
+
data.tar.gz: 30aac26a7415819ebdd49312a4b7bf126f160edb6da23ae209323504d3f4be5ae91c76f1ebb7b248054190308faf235b3d4d7311845b3749f81b2bc9c2132638
|
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
|
+
# airslie-style
|
2
|
+
|
3
|
+
Airslie 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 'airslie-style'
|
12
|
+
end
|
13
|
+
```
|
14
|
+
|
15
|
+
Or, for a Ruby library, add this to your gemspec:
|
16
|
+
|
17
|
+
```ruby
|
18
|
+
spec.add_development_dependency 'airslie-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
|
+
airslie-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 dependences. Airslie-style will include a specific version of `rubocop` and `rubocop-rspec` that is shared across all projects.
|
data/Rakefile
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
require "bundler/gem_tasks"
|
@@ -0,0 +1,36 @@
|
|
1
|
+
# coding: utf-8
|
2
|
+
|
3
|
+
lib = File.expand_path("../lib", __FILE__)
|
4
|
+
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
|
5
|
+
require "airslie/style/version"
|
6
|
+
|
7
|
+
Gem::Specification.new do |spec|
|
8
|
+
spec.name = "airslie-style"
|
9
|
+
spec.version = Airslie::Style::VERSION
|
10
|
+
spec.authors = ["Airslie"]
|
11
|
+
spec.email = ["dev@airslie.com"]
|
12
|
+
|
13
|
+
spec.summary = "Airslie style guides and shared style configs."
|
14
|
+
spec.homepage = "https://github.com/airslie/airslie-style"
|
15
|
+
|
16
|
+
# Prevent pushing this gem to RubyGems.org. To allow pushes either set the 'allowed_push_host'
|
17
|
+
# to allow pushing to a single host or delete this section to allow pushing to any host.
|
18
|
+
if spec.respond_to?(:metadata)
|
19
|
+
spec.metadata["allowed_push_host"] = "https://rubygems.org"
|
20
|
+
else
|
21
|
+
raise "RubyGems 2.0 or newer is required to protect against " \
|
22
|
+
"public gem pushes."
|
23
|
+
end
|
24
|
+
|
25
|
+
spec.files = `git ls-files -z`.split("\x0").reject do |f|
|
26
|
+
f.match(%r{^(test|spec|features)/})
|
27
|
+
end
|
28
|
+
spec.bindir = "exe"
|
29
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
30
|
+
spec.require_paths = ["lib"]
|
31
|
+
|
32
|
+
spec.add_dependency "rubocop", "~> 0.49"
|
33
|
+
spec.add_dependency "rubocop-rspec", "~> 1.15"
|
34
|
+
spec.add_development_dependency "bundler", "~> 1.15"
|
35
|
+
spec.add_development_dependency "rake", "~> 10.0"
|
36
|
+
end
|
data/default.yml
ADDED
@@ -0,0 +1,215 @@
|
|
1
|
+
require: rubocop-rspec
|
2
|
+
|
3
|
+
AllCops:
|
4
|
+
TargetRubyVersion: 2.3
|
5
|
+
Exclude:
|
6
|
+
- "vendor/**/*"
|
7
|
+
- "bin/**/*"
|
8
|
+
- "lib/tasks/**/*"
|
9
|
+
- "db/**/*"
|
10
|
+
- "config/initializers/devise.rb"
|
11
|
+
- "spec/dummy/bin/**/*"
|
12
|
+
- "spec/dummy/lib/tasks/**/*"
|
13
|
+
- "spec/dummy/db/**/*"
|
14
|
+
UseCache: false
|
15
|
+
DisabledByDefault: false
|
16
|
+
|
17
|
+
# Linting #
|
18
|
+
|
19
|
+
Lint/UnusedMethodArgument:
|
20
|
+
Enabled: false
|
21
|
+
|
22
|
+
Style/SpecialGlobalVars:
|
23
|
+
Enabled: false
|
24
|
+
|
25
|
+
###################### Metrics ####################################
|
26
|
+
|
27
|
+
Metrics/BlockLength:
|
28
|
+
Enabled: false
|
29
|
+
|
30
|
+
Metrics/AbcSize:
|
31
|
+
Enabled: true
|
32
|
+
Exclude:
|
33
|
+
- "features/**/*"
|
34
|
+
Max: 15
|
35
|
+
|
36
|
+
Metrics/LineLength:
|
37
|
+
Max: 100
|
38
|
+
AllowHeredoc: true
|
39
|
+
AllowURI: true
|
40
|
+
URISchemes:
|
41
|
+
- http
|
42
|
+
- https
|
43
|
+
Exclude:
|
44
|
+
- "features/renalware/**/*"
|
45
|
+
- "features/step_definitions/**/*"
|
46
|
+
Enabled: true
|
47
|
+
|
48
|
+
Metrics/MethodLength:
|
49
|
+
Enabled: true
|
50
|
+
Max: 10
|
51
|
+
Exclude:
|
52
|
+
- "features/**/*"
|
53
|
+
|
54
|
+
Metrics/ModuleLength:
|
55
|
+
Enabled: true
|
56
|
+
Max: 100
|
57
|
+
Exclude:
|
58
|
+
- "features/**/*"
|
59
|
+
|
60
|
+
# ##################### Rails ##################################
|
61
|
+
|
62
|
+
Rails/HasAndBelongsToMany:
|
63
|
+
Enabled: false
|
64
|
+
|
65
|
+
Rails/Validation:
|
66
|
+
Enabled: false
|
67
|
+
|
68
|
+
# ################## Style #################################
|
69
|
+
|
70
|
+
Style/AccessorMethodName:
|
71
|
+
Enabled: true
|
72
|
+
|
73
|
+
Style/Alias:
|
74
|
+
Enabled: true
|
75
|
+
|
76
|
+
Layout/AlignArray:
|
77
|
+
Enabled: false
|
78
|
+
|
79
|
+
Layout/AlignHash:
|
80
|
+
Enabled: false
|
81
|
+
|
82
|
+
Layout/AlignParameters:
|
83
|
+
Enabled: false
|
84
|
+
|
85
|
+
Style/BarePercentLiterals:
|
86
|
+
Enabled: false
|
87
|
+
|
88
|
+
Style/BlockDelimiters:
|
89
|
+
Enabled: false
|
90
|
+
|
91
|
+
Style/BracesAroundHashParameters:
|
92
|
+
Enabled: false
|
93
|
+
|
94
|
+
Layout/ClosingParenthesisIndentation:
|
95
|
+
Enabled: false
|
96
|
+
|
97
|
+
Style/Documentation:
|
98
|
+
Enabled: false
|
99
|
+
|
100
|
+
Layout/EmptyLines:
|
101
|
+
Enabled: true
|
102
|
+
Exclude:
|
103
|
+
- "features/**/*"
|
104
|
+
- "config/**/*"
|
105
|
+
|
106
|
+
Layout/EmptyLinesAroundBlockBody:
|
107
|
+
Enabled: false
|
108
|
+
|
109
|
+
Layout/EmptyLinesAroundClassBody:
|
110
|
+
Enabled: false
|
111
|
+
|
112
|
+
Layout/EmptyLinesAroundModuleBody:
|
113
|
+
Enabled: false
|
114
|
+
|
115
|
+
Layout/FirstParameterIndentation:
|
116
|
+
Enabled: false
|
117
|
+
|
118
|
+
Style/FormatString:
|
119
|
+
Enabled: false
|
120
|
+
|
121
|
+
Style/IfUnlessModifier:
|
122
|
+
Enabled: false
|
123
|
+
|
124
|
+
Style/LambdaCall:
|
125
|
+
Exclude:
|
126
|
+
- Guardfile
|
127
|
+
Enabled: false
|
128
|
+
|
129
|
+
Style/NumericLiterals:
|
130
|
+
Enabled: false
|
131
|
+
|
132
|
+
Style/PredicateName:
|
133
|
+
Enabled: false
|
134
|
+
|
135
|
+
Style/RegexpLiteral:
|
136
|
+
Exclude:
|
137
|
+
- features/**/*
|
138
|
+
Enabled: true
|
139
|
+
|
140
|
+
Style/SignalException:
|
141
|
+
Enabled: false
|
142
|
+
|
143
|
+
Style/SingleLineBlockParams:
|
144
|
+
Enabled: false
|
145
|
+
|
146
|
+
Layout/SpaceBeforeBlockBraces:
|
147
|
+
Enabled: false
|
148
|
+
|
149
|
+
Style/StringLiterals:
|
150
|
+
Enabled: true
|
151
|
+
EnforcedStyle: double_quotes
|
152
|
+
SupportedStyles:
|
153
|
+
- single_quotes
|
154
|
+
- double_quotes
|
155
|
+
|
156
|
+
Style/WhenThen:
|
157
|
+
Enabled: false
|
158
|
+
|
159
|
+
Layout/MultilineMethodCallIndentation:
|
160
|
+
Enabled: false
|
161
|
+
|
162
|
+
Layout/MultilineMethodCallBraceLayout:
|
163
|
+
Enabled: false
|
164
|
+
|
165
|
+
Style/VariableNumber:
|
166
|
+
Enabled: false
|
167
|
+
|
168
|
+
Style/Alias:
|
169
|
+
Enabled: false
|
170
|
+
|
171
|
+
Style/NumericLiteralPrefix:
|
172
|
+
Enabled: false
|
173
|
+
|
174
|
+
Style/ClassAndModuleChildren:
|
175
|
+
Enabled: false
|
176
|
+
|
177
|
+
Layout/MultilineHashBraceLayout:
|
178
|
+
Enabled: false
|
179
|
+
|
180
|
+
Style/AsciiComments:
|
181
|
+
Enabled: false
|
182
|
+
|
183
|
+
Style/NumericPredicate:
|
184
|
+
Enabled: false
|
185
|
+
|
186
|
+
Layout/MultilineArrayBraceLayout:
|
187
|
+
Enabled: false
|
188
|
+
|
189
|
+
Style/FrozenStringLiteralComment:
|
190
|
+
Enabled: false
|
191
|
+
|
192
|
+
Style/TernaryParentheses:
|
193
|
+
Enabled: false
|
194
|
+
|
195
|
+
Layout/DotPosition:
|
196
|
+
Enabled: true
|
197
|
+
EnforcedStyle: leading
|
198
|
+
|
199
|
+
Style/GuardClause:
|
200
|
+
Enabled: false
|
201
|
+
|
202
|
+
Style/SymbolArray:
|
203
|
+
Enabled: false
|
204
|
+
|
205
|
+
Style/PercentLiteralDelimiters:
|
206
|
+
PreferredDelimiters:
|
207
|
+
default: ()
|
208
|
+
'%r': '{}'
|
209
|
+
'%w': '()'
|
210
|
+
'%W': '()'
|
211
|
+
'%i': '()'
|
212
|
+
'%I': '()'
|
213
|
+
|
214
|
+
Lint/AmbiguousBlockAssociation:
|
215
|
+
Enabled: false
|
metadata
ADDED
@@ -0,0 +1,110 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: airslie-style
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Airslie
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2017-07-21 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.49'
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '0.49'
|
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.15'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '1.15'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: bundler
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '1.15'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '1.15'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rake
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '10.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '10.0'
|
69
|
+
description:
|
70
|
+
email:
|
71
|
+
- dev@airslie.com
|
72
|
+
executables: []
|
73
|
+
extensions: []
|
74
|
+
extra_rdoc_files: []
|
75
|
+
files:
|
76
|
+
- ".gitignore"
|
77
|
+
- ".rubocop.yml"
|
78
|
+
- Gemfile
|
79
|
+
- LICENSE
|
80
|
+
- README.md
|
81
|
+
- Rakefile
|
82
|
+
- airslie-style.gemspec
|
83
|
+
- default.yml
|
84
|
+
- lib/airslie/style.rb
|
85
|
+
- lib/airslie/style/version.rb
|
86
|
+
homepage: https://github.com/airslie/airslie-style
|
87
|
+
licenses: []
|
88
|
+
metadata:
|
89
|
+
allowed_push_host: https://rubygems.org
|
90
|
+
post_install_message:
|
91
|
+
rdoc_options: []
|
92
|
+
require_paths:
|
93
|
+
- lib
|
94
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: '0'
|
99
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
requirements: []
|
105
|
+
rubyforge_project:
|
106
|
+
rubygems_version: 2.6.11
|
107
|
+
signing_key:
|
108
|
+
specification_version: 4
|
109
|
+
summary: Airslie style guides and shared style configs.
|
110
|
+
test_files: []
|