easy_style 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +10 -0
- data/.rubocop.yml +1 -0
- data/Gemfile +6 -0
- data/LICENSE.txt +21 -0
- data/README.md +40 -0
- data/Rakefile +2 -0
- data/default.yml +51 -0
- data/easy_style.gemspec +31 -0
- data/forgiving.yml +79 -0
- data/lib/easy_style.rb +5 -0
- data/lib/easy_style/version.rb +3 -0
- metadata +75 -0
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: c1913a9f860fe3c8ed0d869a2b99958d5dc1a8afee7496a35354b83b02e6b6a7
|
4
|
+
data.tar.gz: 205d1dd1f2045e627ff46b2550babbc37652693d9429e08dd049b0efb1c745e0
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 499a9ce1279479bc579178a5f3e72f86853348b7bc56210eaeeeb3d10771138f37924a396c162e070a3c91ad0f1ac365a2ee10a2fad7d4cfa4d8657869bcaa23
|
7
|
+
data.tar.gz: c21319ef63e61dad632f298fa96aaf1cf62aae6037e28193fbb7393e64904c82987dba4cdc7dc14b4d74dedcaffe511cfb9583d960bd9f2f0ba5e61a01265aed
|
data/.gitignore
ADDED
data/.rubocop.yml
ADDED
@@ -0,0 +1 @@
|
|
1
|
+
inherit_from: forgiving.yml
|
data/Gemfile
ADDED
data/LICENSE.txt
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
The MIT License (MIT)
|
2
|
+
|
3
|
+
Copyright (c) 2021 Ondrej Pop
|
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
|
13
|
+
all 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
|
21
|
+
THE SOFTWARE.
|
data/README.md
ADDED
@@ -0,0 +1,40 @@
|
|
1
|
+
# EasyStyle
|
2
|
+
|
3
|
+
Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/easy_style`. To experiment with that code, run `bin/console` for an interactive prompt.
|
4
|
+
|
5
|
+
TODO: Delete this and the text above, and describe your gem
|
6
|
+
|
7
|
+
## Installation
|
8
|
+
|
9
|
+
Add this line to your application's Gemfile:
|
10
|
+
|
11
|
+
```ruby
|
12
|
+
gem 'easy_style'
|
13
|
+
```
|
14
|
+
|
15
|
+
And then execute:
|
16
|
+
|
17
|
+
$ bundle install
|
18
|
+
|
19
|
+
Or install it yourself as:
|
20
|
+
|
21
|
+
$ gem install easy_style
|
22
|
+
|
23
|
+
## Usage
|
24
|
+
|
25
|
+
TODO: Write usage instructions here
|
26
|
+
|
27
|
+
## Development
|
28
|
+
|
29
|
+
After checking out the repo, run `bin/setup` to install dependencies. You can also run `bin/console` for an interactive prompt that will allow you to experiment.
|
30
|
+
|
31
|
+
To install this gem onto your local machine, run `bundle exec rake install`. To release a new version, update the version number in `version.rb`, and then run `bundle exec rake release`, which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
|
32
|
+
|
33
|
+
## Contributing
|
34
|
+
|
35
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/easy_style.
|
36
|
+
|
37
|
+
|
38
|
+
## License
|
39
|
+
|
40
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
data/Rakefile
ADDED
data/default.yml
ADDED
@@ -0,0 +1,51 @@
|
|
1
|
+
require:
|
2
|
+
- rubocop-rails
|
3
|
+
|
4
|
+
Rails:
|
5
|
+
Enabled: true
|
6
|
+
AllCops:
|
7
|
+
TargetRubyVersion: 2.5
|
8
|
+
|
9
|
+
Layout/EmptyLinesAroundClassBody:
|
10
|
+
EnforcedStyle: empty_lines_special
|
11
|
+
Layout/EmptyLinesAroundModuleBody:
|
12
|
+
EnforcedStyle: empty_lines_except_namespace
|
13
|
+
Layout/MultilineMethodCallIndentation:
|
14
|
+
EnforcedStyle: indented_relative_to_receiver
|
15
|
+
Layout/LineLength:
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
Lint/SuppressedException:
|
19
|
+
AllowComments: true
|
20
|
+
|
21
|
+
Metrics/AbcSize:
|
22
|
+
Enabled: false
|
23
|
+
Metrics/BlockLength:
|
24
|
+
Enabled: false
|
25
|
+
Metrics/MethodLength:
|
26
|
+
Enabled: false
|
27
|
+
|
28
|
+
Rails/ApplicationRecord:
|
29
|
+
Enabled: false
|
30
|
+
|
31
|
+
Style/Documentation:
|
32
|
+
Enabled: false
|
33
|
+
Style/FrozenStringLiteralComment:
|
34
|
+
Enabled: false
|
35
|
+
Style/IfUnlessModifier:
|
36
|
+
Enabled: false
|
37
|
+
Style/HashSyntax:
|
38
|
+
EnforcedStyle: ruby19_no_mixed_keys
|
39
|
+
Style/MutableConstant:
|
40
|
+
Enabled: false
|
41
|
+
Style/NegatedIf:
|
42
|
+
Enabled: false
|
43
|
+
Style/StringLiterals:
|
44
|
+
Enabled: false
|
45
|
+
Style/TrailingCommaInHashLiteral:
|
46
|
+
Enabled: false
|
47
|
+
EnforcedStyleForMultiline: consistent_comma
|
48
|
+
Style/SymbolArray:
|
49
|
+
Enabled: false
|
50
|
+
Style/EmptyMethod:
|
51
|
+
EnforcedStyle: expanded
|
data/easy_style.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
require_relative 'lib/easy_style/version'
|
2
|
+
|
3
|
+
Gem::Specification.new do |spec|
|
4
|
+
spec.name = 'easy_style'
|
5
|
+
spec.version = EasyStyle::VERSION
|
6
|
+
spec.authors = ['Easy Software Ltd']
|
7
|
+
spec.email = ['info@easyredmine.com']
|
8
|
+
|
9
|
+
spec.summary = 'Rubocop configs'
|
10
|
+
spec.description = 'Rubocop configs'
|
11
|
+
spec.homepage = 'https://github.com/easysoftware/rys'
|
12
|
+
spec.license = 'MIT'
|
13
|
+
spec.required_ruby_version = Gem::Requirement.new('>= 2.5.0')
|
14
|
+
|
15
|
+
# spec.metadata['allowed_push_host'] = 'TODO: Set to \'http://mygemserver.com\''
|
16
|
+
|
17
|
+
spec.metadata['homepage_uri'] = spec.homepage
|
18
|
+
spec.metadata['source_code_uri'] = spec.homepage
|
19
|
+
spec.metadata['changelog_uri'] = spec.homepage
|
20
|
+
|
21
|
+
# Specify which files should be added to the gem when it is released.
|
22
|
+
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
|
23
|
+
spec.files = Dir.chdir(File.expand_path('..', __FILE__)) do
|
24
|
+
`git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
|
25
|
+
end
|
26
|
+
spec.bindir = 'exe'
|
27
|
+
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
28
|
+
spec.require_paths = ['lib']
|
29
|
+
|
30
|
+
spec.add_dependency 'rubocop-rails', '~> 2.9.0'
|
31
|
+
end
|
data/forgiving.yml
ADDED
@@ -0,0 +1,79 @@
|
|
1
|
+
inherit_from: default.yml
|
2
|
+
|
3
|
+
### Bundler
|
4
|
+
|
5
|
+
Bundler/OrderedGems:
|
6
|
+
Enabled: false
|
7
|
+
|
8
|
+
### Gemspec
|
9
|
+
|
10
|
+
Gemspec/OrderedDependencies:
|
11
|
+
Enabled: false
|
12
|
+
|
13
|
+
### Layout
|
14
|
+
|
15
|
+
Layout:
|
16
|
+
Enabled: false
|
17
|
+
|
18
|
+
### Lint
|
19
|
+
|
20
|
+
Lint/AmbiguousBlockAssociation:
|
21
|
+
Enabled: false
|
22
|
+
Lint/AmbiguousOperator:
|
23
|
+
Enabled: false
|
24
|
+
Lint/AmbiguousRegexpLiteral:
|
25
|
+
Enabled: false
|
26
|
+
Lint/AssignmentInCondition:
|
27
|
+
Enabled: false
|
28
|
+
Lint/EmptyWhen:
|
29
|
+
Enabled: false
|
30
|
+
Lint/Loop:
|
31
|
+
Enabled: false
|
32
|
+
Lint/RedundantCopDisableDirective:
|
33
|
+
Enabled: false
|
34
|
+
Lint/UnusedBlockArgument:
|
35
|
+
Enabled: false
|
36
|
+
Lint/UnusedMethodArgument:
|
37
|
+
Enabled: false
|
38
|
+
|
39
|
+
### Metrics
|
40
|
+
|
41
|
+
Metrics/AbcSize:
|
42
|
+
Max: 50
|
43
|
+
Metrics/BlockLength:
|
44
|
+
Max: 50
|
45
|
+
CountAsOne: ['array', 'hash', 'heredoc']
|
46
|
+
Exclude:
|
47
|
+
# Rake
|
48
|
+
- '**/Rakefile'
|
49
|
+
- '**/*.rake'
|
50
|
+
# RSpec
|
51
|
+
- 'spec/**/*.rb'
|
52
|
+
# Rails
|
53
|
+
- 'config/routes.rb'
|
54
|
+
Metrics/BlockNesting:
|
55
|
+
Max: 10
|
56
|
+
Metrics/ClassLength:
|
57
|
+
Enabled: false
|
58
|
+
Metrics/CyclomaticComplexity:
|
59
|
+
Max: 20
|
60
|
+
Metrics/MethodLength:
|
61
|
+
Max: 100
|
62
|
+
CountAsOne: ['array', 'hash', 'heredoc']
|
63
|
+
Metrics/ModuleLength:
|
64
|
+
Max: 300
|
65
|
+
CountAsOne: ['array', 'hash', 'heredoc']
|
66
|
+
Metrics/ParameterLists:
|
67
|
+
Max: 20
|
68
|
+
Metrics/PerceivedComplexity:
|
69
|
+
Max: 30
|
70
|
+
|
71
|
+
### Naming
|
72
|
+
|
73
|
+
Naming:
|
74
|
+
Enabled: false
|
75
|
+
|
76
|
+
### Style
|
77
|
+
|
78
|
+
Style:
|
79
|
+
Enabled: false
|
data/lib/easy_style.rb
ADDED
metadata
ADDED
@@ -0,0 +1,75 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: easy_style
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.1.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Easy Software Ltd
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2021-05-08 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: rubocop-rails
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: 2.9.0
|
20
|
+
type: :runtime
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 2.9.0
|
27
|
+
description: Rubocop configs
|
28
|
+
email:
|
29
|
+
- info@easyredmine.com
|
30
|
+
executables: []
|
31
|
+
extensions: []
|
32
|
+
extra_rdoc_files: []
|
33
|
+
files:
|
34
|
+
- ".gitignore"
|
35
|
+
- ".idea/.gitignore"
|
36
|
+
- ".idea/misc.xml"
|
37
|
+
- ".idea/modules.xml"
|
38
|
+
- ".idea/vcs.xml"
|
39
|
+
- ".rubocop.yml"
|
40
|
+
- Gemfile
|
41
|
+
- LICENSE.txt
|
42
|
+
- README.md
|
43
|
+
- Rakefile
|
44
|
+
- default.yml
|
45
|
+
- easy_style.gemspec
|
46
|
+
- forgiving.yml
|
47
|
+
- lib/easy_style.rb
|
48
|
+
- lib/easy_style/version.rb
|
49
|
+
homepage: https://github.com/easysoftware/rys
|
50
|
+
licenses:
|
51
|
+
- MIT
|
52
|
+
metadata:
|
53
|
+
homepage_uri: https://github.com/easysoftware/rys
|
54
|
+
source_code_uri: https://github.com/easysoftware/rys
|
55
|
+
changelog_uri: https://github.com/easysoftware/rys
|
56
|
+
post_install_message:
|
57
|
+
rdoc_options: []
|
58
|
+
require_paths:
|
59
|
+
- lib
|
60
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
61
|
+
requirements:
|
62
|
+
- - ">="
|
63
|
+
- !ruby/object:Gem::Version
|
64
|
+
version: 2.5.0
|
65
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
+
requirements:
|
67
|
+
- - ">="
|
68
|
+
- !ruby/object:Gem::Version
|
69
|
+
version: '0'
|
70
|
+
requirements: []
|
71
|
+
rubygems_version: 3.1.4
|
72
|
+
signing_key:
|
73
|
+
specification_version: 4
|
74
|
+
summary: Rubocop configs
|
75
|
+
test_files: []
|