easy_style 0.7.1 → 1.0.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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 525da6c148e78f12ea8598607111ea6d2ee620cbcb7b49c7c9fb07d9f5bca75a
4
- data.tar.gz: d9f80d595e8f49c1f05c2755194b70bcac760d613e30d60c8fa6f6fcc91292d1
3
+ metadata.gz: d1c116adcb355436046656f2a169867b2a0db4869838fbbe4141cc90599b0396
4
+ data.tar.gz: 63750783ce4cf5f0eb67b6e6cfad65e1d4c80a2ab3826b1ccecacd8bacf0974a
5
5
  SHA512:
6
- metadata.gz: 427ac7a6441ed81dbe6d521783822c9bff0866ec57e09d144135d544337a0783a5729203be408fab7086c5f7778ad3edd7043533725c2b649b5b174f0afafb14
7
- data.tar.gz: 973c93eb032724cfc1625b825109cf44347c1732f3cb9c15ddefa7d3c22a5c7b9cda33391bff98133dc92f02637d9a5a5723ddc4a371db4899ef7fadd85207d8
6
+ metadata.gz: 86f161cc36d7afd3a2b91f39428ea4338174403051faefc045e8ed614adc09a4b46109fc1885f6996232fff7831d3ab9b60bbf460c692fa2a3cdc315330f7ccf
7
+ data.tar.gz: 5bbc6dcea342ab72c518c7c231e2863c1f45e0da000500726fac0d79245c98b125ea70eae6e8ff85cb3499ab3a9263a11aa68a588763aeefaeb37d8d6e604a55
data/default.yml CHANGED
@@ -1,5 +1,5 @@
1
- plugins:
2
- - rubocop-rails
1
+ inherit_gem:
2
+ rubocop-rails-omakase: rubocop.yml
3
3
 
4
4
  inherit_mode:
5
5
  merge: Exclude
@@ -7,7 +7,7 @@ inherit_mode:
7
7
  Rails:
8
8
  Enabled: true
9
9
  AllCops:
10
- TargetRubyVersion: 3.2
10
+ TargetRubyVersion: 4.0
11
11
  NewCops: enable
12
12
  SuggestExtensions: false
13
13
 
@@ -32,23 +32,23 @@ Lint/SuppressedException:
32
32
  AllowComments: true
33
33
 
34
34
  Metrics/AbcSize:
35
- AllowedMethods: [ 'included' ]
35
+ AllowedMethods: [ "included" ]
36
36
  Metrics/BlockLength:
37
- CountAsOne: [ 'array', 'hash', 'heredoc', 'method_call']
37
+ CountAsOne: [ "array", "hash", "heredoc", "method_call"]
38
38
  Exclude:
39
39
  - "**/patches/**/*"
40
40
  - "**/easy_patch/**/*"
41
41
  - "**/spec/**/*"
42
42
  Metrics/ClassLength:
43
- CountAsOne: [ 'array', 'hash', 'heredoc', 'method_call']
43
+ CountAsOne: [ "array", "hash", "heredoc", "method_call"]
44
44
  Metrics/CyclomaticComplexity:
45
45
  AllowedMethods:
46
46
  - included
47
47
  Metrics/MethodLength:
48
- CountAsOne: [ 'array', 'hash', 'heredoc', 'method_call']
49
- AllowedMethods: [ 'included' ]
48
+ CountAsOne: [ "array", "hash", "heredoc", "method_call"]
49
+ AllowedMethods: [ "included" ]
50
50
  Metrics/ModuleLength:
51
- CountAsOne: [ 'array', 'hash', 'heredoc', 'method_call']
51
+ CountAsOne: [ "array", "hash", "heredoc", "method_call"]
52
52
  Exclude:
53
53
  - "**/patches/**/*"
54
54
  - "**/easy_patch/**/*"
@@ -65,26 +65,28 @@ Rails/ApplicationRecord:
65
65
  Enabled: false
66
66
  Rails/RedundantPresenceValidationOnBelongsTo:
67
67
  Enabled: false
68
+ Rails/SkipsModelValidations:
69
+ Enabled: false
68
70
 
69
71
  Style/Documentation:
70
72
  Enabled: false
71
73
  Style/FrozenStringLiteralComment:
72
74
  EnforcedStyle: never
73
- Style/IfUnlessModifier:
74
- Enabled: false
75
75
  Style/HashSyntax:
76
76
  EnforcedStyle: ruby19_no_mixed_keys
77
+ Style/IfUnlessModifier:
78
+ Enabled: false
77
79
  Style/MutableConstant:
78
80
  Enabled: false
79
81
  Style/NegatedIf:
80
82
  Enabled: false
81
83
  Style/QuotedSymbols:
82
84
  Enabled: false
83
- Rails/SkipsModelValidations:
84
- Enabled: false
85
+ Layout/SpaceInsideArrayLiteralBrackets:
86
+ EnforcedStyle: no_space
85
87
  Style/StringLiterals:
86
88
  EnforcedStyle: double_quotes
87
- Style/TrailingCommaInHashLiteral:
88
- EnforcedStyleForMultiline: consistent_comma
89
89
  Style/TrailingCommaInArrayLiteral:
90
90
  EnforcedStyleForMultiline: consistent_comma
91
+ Style/TrailingCommaInHashLiteral:
92
+ EnforcedStyleForMultiline: consistent_comma
metadata CHANGED
@@ -1,70 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: easy_style
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.1
4
+ version: 1.0.0
5
5
  platform: ruby
6
6
  authors:
7
- - Easy Software Ltd
8
- autorequire:
9
- bindir: exe
7
+ - Easy8
8
+ bindir: bin
10
9
  cert_chain: []
11
- date: 2025-03-12 00:00:00.000000000 Z
10
+ date: 1980-01-02 00:00:00.000000000 Z
12
11
  dependencies:
13
12
  - !ruby/object:Gem::Dependency
14
- name: rubocop
13
+ name: rubocop-rails-omakase
15
14
  requirement: !ruby/object:Gem::Requirement
16
15
  requirements:
17
- - - "~>"
16
+ - - ">="
18
17
  - !ruby/object:Gem::Version
19
- version: '1.73'
18
+ version: '0'
20
19
  type: :runtime
21
20
  prerelease: false
22
21
  version_requirements: !ruby/object:Gem::Requirement
23
22
  requirements:
24
- - - "~>"
23
+ - - ">="
25
24
  - !ruby/object:Gem::Version
26
- version: '1.73'
27
- - !ruby/object:Gem::Dependency
28
- name: rubocop-rails
29
- requirement: !ruby/object:Gem::Requirement
30
- requirements:
31
- - - "~>"
32
- - !ruby/object:Gem::Version
33
- version: '2.30'
34
- type: :runtime
35
- prerelease: false
36
- version_requirements: !ruby/object:Gem::Requirement
37
- requirements:
38
- - - "~>"
39
- - !ruby/object:Gem::Version
40
- version: '2.30'
25
+ version: '0'
41
26
  description: Rubocop configs
42
27
  email:
43
- - info@easyredmine.com
28
+ - developers@easy8.com
44
29
  executables: []
45
30
  extensions: []
46
31
  extra_rdoc_files: []
47
32
  files:
48
- - ".github/workflows/lint.yml"
49
- - ".gitignore"
50
- - ".rubocop.yml"
51
- - Gemfile
52
- - Gemfile.lock
53
- - LICENSE.txt
54
- - README.md
55
- - Rakefile
56
33
  - default.yml
57
- - easy_style.gemspec
58
- - lib/easy_style.rb
59
- - lib/easy_style/version.rb
60
- homepage: https://github.com/easysoftware/easy_style
34
+ homepage: https://git.easy8.com/internal/easy_style
61
35
  licenses:
62
36
  - MIT
63
37
  metadata:
64
- homepage_uri: https://github.com/easysoftware/easy_style
65
- source_code_uri: https://github.com/easysoftware/easy_style
66
- changelog_uri: https://github.com/easysoftware/easy_style
67
- post_install_message:
38
+ homepage_uri: https://git.easy8.com/internal/easy_style
39
+ source_code_uri: https://git.easy8.com/internal/easy_style
40
+ changelog_uri: https://git.easy8.com/internal/easy_style
68
41
  rdoc_options: []
69
42
  require_paths:
70
43
  - lib
@@ -72,15 +45,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
72
45
  requirements:
73
46
  - - ">="
74
47
  - !ruby/object:Gem::Version
75
- version: 3.1.2
48
+ version: '0'
76
49
  required_rubygems_version: !ruby/object:Gem::Requirement
77
50
  requirements:
78
51
  - - ">="
79
52
  - !ruby/object:Gem::Version
80
53
  version: '0'
81
54
  requirements: []
82
- rubygems_version: 3.5.11
83
- signing_key:
55
+ rubygems_version: 4.0.4
84
56
  specification_version: 4
85
- summary: Rubocop configs
57
+ summary: Easy styling for Ruby and Rails projects
86
58
  test_files: []
@@ -1,19 +0,0 @@
1
- name: Lint
2
- on: [push]
3
-
4
- jobs:
5
- build:
6
- strategy:
7
- fail-fast: false
8
- matrix:
9
- ruby: ["3.2", "3.3.7"]
10
- runs-on: ubuntu-latest
11
- steps:
12
- - uses: actions/checkout@v4
13
- - name: Set up Ruby
14
- uses: ruby/setup-ruby@v1
15
- with:
16
- ruby-version: ${{ matrix.ruby }}
17
- bundler-cache: true
18
- - name: Rubocop
19
- run: bundle exec rubocop
data/.gitignore DELETED
@@ -1,9 +0,0 @@
1
- /.bundle/
2
- /.yardoc
3
- /_yardoc/
4
- /coverage/
5
- /doc/
6
- /pkg/
7
- /spec/reports/
8
- /tmp/
9
- /.idea/
data/.rubocop.yml DELETED
@@ -1 +0,0 @@
1
- inherit_from: default.yml
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- source "https://rubygems.org"
2
-
3
- # Specify your gem's dependencies in easy_style.gemspec
4
- gemspec
5
-
6
- gem "rake", "~> 12.0"
data/Gemfile.lock DELETED
@@ -1,80 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- easy_style (0.7.1)
5
- rubocop (~> 1.73)
6
- rubocop-rails (~> 2.30)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- activesupport (7.1.3.2)
12
- base64
13
- bigdecimal
14
- concurrent-ruby (~> 1.0, >= 1.0.2)
15
- connection_pool (>= 2.2.5)
16
- drb
17
- i18n (>= 1.6, < 2)
18
- minitest (>= 5.1)
19
- mutex_m
20
- tzinfo (~> 2.0)
21
- ast (2.4.2)
22
- base64 (0.2.0)
23
- bigdecimal (3.1.7)
24
- concurrent-ruby (1.2.3)
25
- connection_pool (2.4.1)
26
- drb (2.2.1)
27
- i18n (1.14.4)
28
- concurrent-ruby (~> 1.0)
29
- json (2.7.2)
30
- language_server-protocol (3.17.0.3)
31
- lint_roller (1.1.0)
32
- minitest (5.22.3)
33
- mutex_m (0.2.0)
34
- parallel (1.24.0)
35
- parser (3.3.1.0)
36
- ast (~> 2.4.1)
37
- racc
38
- racc (1.7.3)
39
- rack (3.0.10)
40
- rainbow (3.1.1)
41
- rake (12.3.3)
42
- regexp_parser (2.10.0)
43
- rubocop (1.73.2)
44
- json (~> 2.3)
45
- language_server-protocol (~> 3.17.0.2)
46
- lint_roller (~> 1.1.0)
47
- parallel (~> 1.10)
48
- parser (>= 3.3.0.2)
49
- rainbow (>= 2.2.2, < 4.0)
50
- regexp_parser (>= 2.9.3, < 3.0)
51
- rubocop-ast (>= 1.38.0, < 2.0)
52
- ruby-progressbar (~> 1.7)
53
- unicode-display_width (>= 2.4.0, < 4.0)
54
- rubocop-ast (1.38.1)
55
- parser (>= 3.3.1.0)
56
- rubocop-rails (2.30.3)
57
- activesupport (>= 4.2.0)
58
- lint_roller (~> 1.1)
59
- rack (>= 1.1)
60
- rubocop (>= 1.72.1, < 2.0)
61
- rubocop-ast (>= 1.38.0, < 2.0)
62
- ruby-progressbar (1.13.0)
63
- tzinfo (2.0.6)
64
- concurrent-ruby (~> 1.0)
65
- unicode-display_width (2.5.0)
66
-
67
- PLATFORMS
68
- arm64-darwin-22
69
- arm64-darwin-23
70
- arm64-darwin-24
71
- x86_64-darwin-21
72
- x86_64-darwin-22
73
- x86_64-linux
74
-
75
- DEPENDENCIES
76
- easy_style!
77
- rake (~> 12.0)
78
-
79
- BUNDLED WITH
80
- 2.6.5
data/LICENSE.txt DELETED
@@ -1,21 +0,0 @@
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 DELETED
@@ -1,51 +0,0 @@
1
- # EasyStyle
2
-
3
- Default RuboCop configuration for Easy.
4
-
5
- https://docs.rubocop.org/rubocop/
6
-
7
- https://www.easysoftware.com
8
-
9
- ## Installation
10
-
11
- Add this line to your application's Gemfile:
12
-
13
- ```ruby
14
- gem 'easy_style', group: %i[development]
15
- ```
16
-
17
- And then execute:
18
-
19
- $ bundle install
20
-
21
- Or install it yourself as:
22
-
23
- $ gem install easy_style
24
-
25
- ## Usage
26
-
27
- In your `.rubocop.yml` file:
28
- ```yaml
29
- inherit_gem:
30
- easy_style: default.yml
31
- ```
32
-
33
- Generate "todo" file is recommended:
34
- ```bash
35
- bundle exec rubocop --auto-gen-config --auto-gen-only-exclude --exclude-limit 10000
36
- ```
37
-
38
- ## Development
39
-
40
- 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.
41
-
42
- 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).
43
-
44
- ## Contributing
45
-
46
- Bug reports and pull requests are welcome on GitHub at https://github.com/easysoftware/easy_style.
47
-
48
-
49
- ## License
50
-
51
- The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
data/Rakefile DELETED
@@ -1,2 +0,0 @@
1
- require "bundler/gem_tasks"
2
- task default: :spec
data/easy_style.gemspec DELETED
@@ -1,30 +0,0 @@
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/easy_style"
12
- spec.license = "MIT"
13
- spec.required_ruby_version = ">= 3.1.2"
14
-
15
- spec.metadata["homepage_uri"] = spec.homepage
16
- spec.metadata["source_code_uri"] = spec.homepage
17
- spec.metadata["changelog_uri"] = spec.homepage
18
-
19
- # Specify which files should be added to the gem when it is released.
20
- # The `git ls-files -z` loads the files in the RubyGem that have been added into git.
21
- spec.files = Dir.chdir(File.expand_path(__dir__)) do
22
- `git ls-files -z`.split("\x0").reject { |f| f.match(%r{^(test|spec|features)/}) }
23
- end
24
- spec.bindir = "exe"
25
- spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
26
- spec.require_paths = ["lib"]
27
-
28
- spec.add_dependency "rubocop", "~> 1.73"
29
- spec.add_dependency "rubocop-rails", "~> 2.30"
30
- end
@@ -1,5 +0,0 @@
1
- module EasyStyle
2
-
3
- VERSION = "0.7.1"
4
-
5
- end
data/lib/easy_style.rb DELETED
@@ -1,5 +0,0 @@
1
- require "easy_style/version"
2
-
3
- module EasyStyle
4
- # Your code goes here...
5
- end