Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
### 0.11.1 (Next)

* Your contribution here.
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Put this back please.

* [#185](https://github.com/slack-ruby/slack-ruby-client/pull/185): Updated method template to include a warning for undocumented endpoints - [@aviflombaum](https://github.com/aviflombaum).

### 0.11.0 (11/25/2017)

Expand Down
3 changes: 3 additions & 0 deletions lib/slack/web/api/templates/method.erb
Original file line number Diff line number Diff line change
Expand Up @@ -44,6 +44,9 @@ module Slack
<% if data['args']['user'] %>
options = options.merge(user: users_id(options)['user']['id']) if options[:user]
<% end %>
<% if data['undocumented'] %>
logger.warn('<%= group %>.<%= name %> is an undocumented API endpoint.')
Copy link
Copy Markdown
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe "The <%= group %>.<%= name %> method is undocumented."

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍

<% end %>
<% if data['args'].keys.include?('cursor') %>
if block_given?
Pagination::Cursor.new(self, :<%= group.gsub(".", "_") %>_<%= name %>, options).each do |page|
Expand Down