lib/tasks/web.rake in slack-ruby-client-0.13.1 vs lib/tasks/web.rake in slack-ruby-client-0.14.0
- old
+ new
@@ -51,9 +51,10 @@
puts "- patching #{patch}"
system("git apply #{patch}") || raise('failed to apply patch')
end
# command
raise "Missing group #{group}" unless groups.key?(group)
+
rendered_command = command_template.result(group: groups[group], names: names)
File.write "bin/commands/#{snaked_group}.rb", rendered_command
end
endpoints_template = Erubis::Eruby.new(File.read('lib/slack/web/api/templates/endpoints.erb'))