lib/tasks/web.rake in slack-ruby-client-2.0.0 vs lib/tasks/web.rake in slack-ruby-client-2.1.0
- old
+ new
@@ -82,15 +82,9 @@
File.write(
'lib/slack/web/api/endpoints.rb',
endpoints_template.result(files: data.keys.map { |key| key.tr('.', '_') })
)
- commands_template = Erubis::Eruby.new(File.read('lib/slack/web/api/templates/commands.erb'))
- File.write(
- 'bin/commands.rb',
- commands_template.result(files: data.keys.map { |key| key.tr('.', '_') })
- )
-
errors_template = Erubis::Eruby.new(File.read('lib/slack/web/api/templates/errors.erb'))
errors = data.values.map do |names|
names.values.map do |d|
d['errors'].keys
end