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 +4 -4
- data/config/default.yml +1 -1
- data/lib/rubocop/sorted_methods_by_call/version.rb +1 -1
- metadata +3 -25
- data/Gemfile +0 -6
- data/Gemfile.lock +0 -92
- data/Rakefile +0 -10
- data/exe/rubocop-sorted_methods_by_call +0 -4
- data/rakelib/docs.rake +0 -73
- data/test_project/.rubocop.test.yml +0 -13
- data/test_project/Gemfile +0 -5
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA256:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: a04b5916bbf8e91aa2792283ad7f15dc939907cb55e6fafec2f77e2cf966b6ff
|
|
4
|
+
data.tar.gz: 4f1475d1b0a3a5233b7f15010ae850dab4e696be9b209782d41d44cd5f1b3318
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2bea6384c391d4a19a1cf83fb8ac9cb671d3325daeda8685d169c52ee8c1906e1f921b1da96a9ba128305b62bc99aaaf2d99567a8e5a9ea9aebd6630efb73383
|
|
7
|
+
data.tar.gz: d3cb6250866427b62ca907a9a4c73f8f30c69e94e6d9f767f105851394abb12d8444ac1e691f83df32f05abd1c40d09bf9da272e66d4dc0a1167dba439dcd83b
|
data/config/default.yml
CHANGED
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.
|
|
4
|
+
version: 1.2.1
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- unurgunite
|
|
8
|
-
bindir:
|
|
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
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
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
|