rubocop-sorted_methods_by_call 1.2.0 → 1.2.1

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: 02e794a25b73c4b96c7ec77721e5b5e4c71a3a23e0137011f3d272d27e81121e
4
- data.tar.gz: 75db5c1df55a2d40a9fdf596b654bafa76eecbb163e16c419b7c0366ef4cd772
3
+ metadata.gz: a04b5916bbf8e91aa2792283ad7f15dc939907cb55e6fafec2f77e2cf966b6ff
4
+ data.tar.gz: 4f1475d1b0a3a5233b7f15010ae850dab4e696be9b209782d41d44cd5f1b3318
5
5
  SHA512:
6
- metadata.gz: 7c3e6192757164ad8c877337a9bf60e78ccb2c4b8d8abd2a3f8c15a865cfe7ea4b1440f6c443dd26ca9836951884b229927a718081ab521b64926cc25896bab4
7
- data.tar.gz: 14f8232209323631fb6a993282e6133907d3937ecf1b639c9e186b79fb835f531a750a4ebdb6e972c3f558921507c7fbb3a954c6c26e7510d19a3ddc3e3cfd7d
6
+ metadata.gz: 2bea6384c391d4a19a1cf83fb8ac9cb671d3325daeda8685d169c52ee8c1906e1f921b1da96a9ba128305b62bc99aaaf2d99567a8e5a9ea9aebd6630efb73383
7
+ data.tar.gz: d3cb6250866427b62ca907a9a4c73f8f30c69e94e6d9f767f105851394abb12d8444ac1e691f83df32f05abd1c40d09bf9da272e66d4dc0a1167dba439dcd83b
data/config/default.yml CHANGED
@@ -1,7 +1,7 @@
1
1
  SortedMethodsByCall/Waterfall:
2
2
  Description: "Enforces method ordering based on call relationships."
3
3
  Enabled: true
4
- VersionAdded: "1.2.0"
4
+ VersionAdded: "1.2.1"
5
5
  SafeAutoCorrect: false
6
6
  AllowedRecursion: true
7
7
  SkipCyclicSiblingEdges: false
@@ -2,6 +2,6 @@
2
2
 
3
3
  module RuboCop
4
4
  module SortedMethodsByCall
5
- VERSION = '1.2.0'
5
+ VERSION = '1.2.1'
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,11 +1,11 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rubocop-sorted_methods_by_call
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.0
4
+ version: 1.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - unurgunite
8
- bindir: exe
8
+ bindir: bin
9
9
  cert_chain: []
10
10
  date: 1980-01-02 00:00:00.000000000 Z
11
11
  dependencies:
@@ -37,20 +37,6 @@ dependencies:
37
37
  - - ">="
38
38
  - !ruby/object:Gem::Version
39
39
  version: 1.72.0
40
- - !ruby/object:Gem::Dependency
41
- name: fasterer
42
- requirement: !ruby/object:Gem::Requirement
43
- requirements:
44
- - - ">="
45
- - !ruby/object:Gem::Version
46
- version: '0'
47
- type: :development
48
- prerelease: false
49
- version_requirements: !ruby/object:Gem::Requirement
50
- requirements:
51
- - - ">="
52
- - !ruby/object:Gem::Version
53
- version: '0'
54
40
  - !ruby/object:Gem::Dependency
55
41
  name: rake
56
42
  requirement: !ruby/object:Gem::Requirement
@@ -137,8 +123,7 @@ dependencies:
137
123
  version: '0'
138
124
  email:
139
125
  - senpaiguru1488@gmail.com
140
- executables:
141
- - rubocop-sorted_methods_by_call
126
+ executables: []
142
127
  extensions: []
143
128
  extra_rdoc_files: []
144
129
  files:
@@ -147,22 +132,15 @@ files:
147
132
  - ".rubocop_todo.yml"
148
133
  - ".ruby-version"
149
134
  - CODE_OF_CONDUCT.md
150
- - Gemfile
151
- - Gemfile.lock
152
135
  - LICENSE.txt
153
136
  - README.md
154
- - Rakefile
155
137
  - config/default.yml
156
- - exe/rubocop-sorted_methods_by_call
157
138
  - lib/rubocop-sorted_methods_by_call.rb
158
139
  - lib/rubocop/cop/sorted_methods_by_call/waterfall.rb
159
140
  - lib/rubocop/sorted_methods_by_call/compare.rb
160
141
  - lib/rubocop/sorted_methods_by_call/extensions/util.rb
161
142
  - lib/rubocop/sorted_methods_by_call/plugin.rb
162
143
  - lib/rubocop/sorted_methods_by_call/version.rb
163
- - rakelib/docs.rake
164
- - test_project/.rubocop.test.yml
165
- - test_project/Gemfile
166
144
  homepage: https://github.com/unurgunite/rubocop-sorted_methods_by_call
167
145
  licenses: []
168
146
  metadata:
data/Gemfile DELETED
@@ -1,6 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- # Specify your gem's dependencies in rubocop-sorted_methods_by_call.gemspec
6
- gemspec
data/Gemfile.lock DELETED
@@ -1,92 +0,0 @@
1
- PATH
2
- remote: .
3
- specs:
4
- rubocop-sorted_methods_by_call (1.2.0)
5
- lint_roller
6
- rubocop (>= 1.72.0)
7
-
8
- GEM
9
- remote: https://rubygems.org/
10
- specs:
11
- ast (2.4.3)
12
- diff-lcs (1.5.0)
13
- fasterer (0.11.0)
14
- ruby_parser (>= 3.19.1)
15
- json (2.15.2)
16
- language_server-protocol (3.17.0.5)
17
- lint_roller (1.1.0)
18
- parallel (1.27.0)
19
- parser (3.3.10.0)
20
- ast (~> 2.4.1)
21
- racc
22
- prism (1.6.0)
23
- racc (1.8.1)
24
- rainbow (3.1.1)
25
- rake (13.0.6)
26
- regexp_parser (2.11.3)
27
- rspec (3.12.0)
28
- rspec-core (~> 3.12.0)
29
- rspec-expectations (~> 3.12.0)
30
- rspec-mocks (~> 3.12.0)
31
- rspec-core (3.12.0)
32
- rspec-support (~> 3.12.0)
33
- rspec-expectations (3.12.0)
34
- diff-lcs (>= 1.2.0, < 2.0)
35
- rspec-support (~> 3.12.0)
36
- rspec-mocks (3.12.0)
37
- diff-lcs (>= 1.2.0, < 2.0)
38
- rspec-support (~> 3.12.0)
39
- rspec-support (3.12.0)
40
- rubocop (1.81.7)
41
- json (~> 2.3)
42
- language_server-protocol (~> 3.17.0.2)
43
- lint_roller (~> 1.1.0)
44
- parallel (~> 1.10)
45
- parser (>= 3.3.0.2)
46
- rainbow (>= 2.2.2, < 4.0)
47
- regexp_parser (>= 2.9.3, < 3.0)
48
- rubocop-ast (>= 1.47.1, < 2.0)
49
- ruby-progressbar (~> 1.7)
50
- unicode-display_width (>= 2.4.0, < 4.0)
51
- rubocop-ast (1.47.1)
52
- parser (>= 3.3.7.2)
53
- prism (~> 1.4)
54
- rubocop-performance (1.26.0)
55
- lint_roller (~> 1.1)
56
- rubocop (>= 1.75.0, < 2.0)
57
- rubocop-ast (>= 1.44.0, < 2.0)
58
- rubocop-rake (0.7.1)
59
- lint_roller (~> 1.1)
60
- rubocop (>= 1.72.1)
61
- rubocop-rspec (3.7.0)
62
- lint_roller (~> 1.1)
63
- rubocop (~> 1.72, >= 1.72.1)
64
- ruby-progressbar (1.13.0)
65
- ruby_parser (3.21.1)
66
- racc (~> 1.5)
67
- sexp_processor (~> 4.16)
68
- sexp_processor (4.17.4)
69
- unicode-display_width (3.2.0)
70
- unicode-emoji (~> 4.1)
71
- unicode-emoji (4.1.0)
72
- webrick (1.7.0)
73
- yard (0.9.28)
74
- webrick (~> 1.7.0)
75
-
76
- PLATFORMS
77
- arm64-darwin-24
78
- arm64-darwin-25
79
- x86_64-linux
80
-
81
- DEPENDENCIES
82
- fasterer
83
- rake (>= 13.0)
84
- rspec (>= 3.0)
85
- rubocop-performance
86
- rubocop-rake
87
- rubocop-rspec
88
- rubocop-sorted_methods_by_call!
89
- yard
90
-
91
- BUNDLED WITH
92
- 2.3.25
data/Rakefile DELETED
@@ -1,10 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'bundler/gem_tasks'
4
- require 'rspec/core/rake_task'
5
- RSpec::Core::RakeTask.new(:spec)
6
-
7
- require 'rubocop/rake_task'
8
- RuboCop::RakeTask.new
9
-
10
- task default: %i[spec rubocop]
@@ -1,4 +0,0 @@
1
- #!/usr/bin/env ruby
2
- # frozen_string_literal: true
3
-
4
- require 'rubocop-sorted_methods_by_call'
data/rakelib/docs.rake DELETED
@@ -1,73 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- require 'English'
4
- require 'yard'
5
- require 'fileutils'
6
-
7
- GEM_NAME = Bundler.load_gemspec(Dir.glob('*.gemspec').first).name
8
- DOCS_REPO_NAME = "#{GEM_NAME}_docs".freeze
9
- DOCS_REPO_PATH = "../#{DOCS_REPO_NAME}".freeze
10
-
11
- namespace :docs do # rubocop:disable Metrics/BlockLength
12
- desc 'Generate new docs and push them to repo'
13
- task generate: :clean do
14
- puts 'Generating docs...'
15
- YARD::CLI::Yardoc.run
16
- puts 'OK!'
17
- end
18
-
19
- desc 'Clean existing docs'
20
- task :clean do
21
- if File.directory?('doc')
22
- FileUtils.rm_rf('doc')
23
- puts 'Cleaned existing docs directory'
24
- end
25
- end
26
-
27
- desc 'Pushes docs to github'
28
- task push: :generate do
29
- unless File.directory?(DOCS_REPO_PATH)
30
- puts "Error: Docs repo not found at #{DOCS_REPO_PATH}"
31
- puts 'Please clone the docs repo first:'
32
- puts " git clone git@github.com:unurgunite/#{DOCS_REPO_NAME}.git #{DOCS_REPO_PATH}"
33
- exit 1
34
- end
35
-
36
- puts "Copying docs to #{DOCS_REPO_PATH}..."
37
- FileUtils.mkdir_p('doc') unless File.directory?('doc')
38
- FileUtils.cp_r('doc/.', DOCS_REPO_PATH)
39
-
40
- puts 'Changing dir...'
41
- Dir.chdir(DOCS_REPO_PATH) do
42
- puts 'Checking git status...'
43
- status_output = `git status --porcelain`
44
-
45
- if status_output.strip.empty?
46
- puts 'No changes to commit'
47
- else
48
- puts 'Committing git changes...'
49
- puts `git add .`
50
- commit_result = `git commit -m "Update docs for #{GEM_NAME} #{Time.now.utc.strftime('%Y-%m-%d %H:%M:%S UTC')}"`
51
- puts commit_result
52
-
53
- if $CHILD_STATUS.success?
54
- puts 'Pushing to GitHub...'
55
- push_result = `git push origin master 2>&1`
56
- puts push_result
57
- if $CHILD_STATUS.success?
58
- puts 'Docs successfully pushed!'
59
- else
60
- puts 'Push failed!'
61
- exit 1
62
- end
63
- else
64
- puts 'Commit failed!'
65
- exit 1
66
- end
67
- end
68
- end
69
- end
70
-
71
- desc 'Generate and push docs in one command'
72
- task deploy: :push
73
- end
@@ -1,13 +0,0 @@
1
- plugins:
2
- - rubocop-sorted_methods_by_call
3
-
4
- inherit_from: ../.rubocop.yml
5
-
6
- SortedMethodsByCall/Waterfall:
7
- Enabled: true
8
-
9
- AllCops:
10
- Exclude:
11
- - 'rubocop-sorted_methods_by_call.gemspec'
12
- - 'Gemfile'
13
- - 'Gemfile.lock'
data/test_project/Gemfile DELETED
@@ -1,5 +0,0 @@
1
- # frozen_string_literal: true
2
-
3
- source 'https://rubygems.org'
4
-
5
- gem 'rubocop-sorted_methods_by_call', path: '../rubocop-sorted_methods_by_call'