Skip to content

Commit

Permalink
Hide httparty & httparty= methods from Gitlab.actions - just like end…
Browse files Browse the repository at this point in the history
…point, private_token, etc.
  • Loading branch information
asedge committed Jan 15, 2015
1 parent 358deeb commit c8e5f50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/gitlab.rb
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ def self.http_proxy(address = nil, port = nil, username = nil, password = nil)
#
# @return [Array<Symbol>]
def self.actions
hidden = /endpoint|private_token|user_agent|sudo|get|post|put|\Adelete\z|validate|set_request_defaults/
hidden = /endpoint|private_token|user_agent|sudo|get|post|put|\Adelete\z|validate|set_request_defaults|httparty/
(Gitlab::Client.instance_methods - Object.methods).reject {|e| e[hidden]}
end
end

0 comments on commit c8e5f50

Please sign in to comment.