File tree Expand file tree Collapse file tree 3 files changed +12
-2
lines changed
Expand file tree Collapse file tree 3 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 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.
2222Metrics/ClassLength :
23- Max : 108
23+ Max : 115
2424
2525# Offense count: 2
2626# Configuration parameters: AllowedMethods, AllowedPatterns.
Original file line number Diff line number Diff 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
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments