Skip to content

Commit af6885a

Browse files
committed
Re-generate groups files.
1 parent b7b3f7d commit af6885a

File tree

3 files changed

+12
-2
lines changed

3 files changed

+12
-2
lines changed

.rubocop_todo.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# This configuration was generated by
22
# `rubocop --auto-gen-config`
3-
# on 2025-09-06 22:39:09 UTC using RuboCop version 1.80.2.
3+
# on 2025-09-06 23:06:24 UTC using RuboCop version 1.80.2.
44
# The point is for the user to remove these configuration records
55
# one by one as the offenses are removed from the code base.
66
# Note that changes in the inspected code, or installation of new
@@ -20,7 +20,7 @@ Metrics/BlockLength:
2020
# Offense count: 1
2121
# Configuration parameters: CountComments, CountAsOne.
2222
Metrics/ClassLength:
23-
Max: 108
23+
Max: 115
2424

2525
# Offense count: 2
2626
# Configuration parameters: AllowedMethods, AllowedPatterns.

tasks/lib/slack_api/methods_generator.rb

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ def generate!
2121
)
2222
)
2323
end
24+
25+
FileUtils.mkdir_p('groups')
26+
groups.each do |group|
27+
filename = "groups/#{group}.json"
28+
puts filename
29+
File.write(filename, JSON.pretty_generate(name: group))
30+
end
2431
end
2532

2633
private
@@ -43,6 +50,7 @@ def process_method(data)
4350

4451
filename = "methods/#{data['group']}/#{data['name']}.json"
4552
FileUtils.mkdir_p("methods/#{data['group']}")
53+
puts filename
4654
File.write(filename, JSON.pretty_generate(result))
4755
end
4856

tasks/update.rake

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ namespace :api do
44
namespace :methods do
55
desc 'Update methods.'
66
task :update do
7+
FileUtils.rm_rf 'methods'
8+
FileUtils.rm_rf 'groups'
79
SlackApi::MethodsGenerator.new.generate!
810
end
911
end

0 commit comments

Comments
 (0)