Skip to content

Commit

Permalink
fix rubocop offenses
Browse files Browse the repository at this point in the history
  • Loading branch information
falexandrou committed Dec 10, 2016
1 parent 4d81979 commit 08ba235
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 3 deletions.
3 changes: 2 additions & 1 deletion lib/tinybucket/api/helper/hooks_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Tinybucket
module Api
module Helper
Expand Down Expand Up @@ -31,7 +33,6 @@ def base_path
[repo_owner, 'repo_owner'],
[repo_slug, 'repo_slug'],
'hooks')

end
end
end
Expand Down
4 changes: 2 additions & 2 deletions lib/tinybucket/api/hooks_api.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Tinybucket
module Api
# Hooks Api client
Expand Down Expand Up @@ -42,7 +44,6 @@ def find(hook, options = {})
)
end


# Send 'POST a hook for a repository' request
# @see https://developer.atlassian.com/bitbucket/api/2/reference/resource/repositories/%7Busername%7D/%7Brepo_slug%7D/hooks#post
#
Expand Down Expand Up @@ -90,7 +91,6 @@ def delete(hook, options = {})
)
true
end

end
end
end
2 changes: 2 additions & 0 deletions lib/tinybucket/model/hook.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Tinybucket
module Model
# Hook
Expand Down
2 changes: 2 additions & 0 deletions lib/tinybucket/parser/hook_parser.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Tinybucket
module Parser
class HookParser < BaseParser
Expand Down
2 changes: 2 additions & 0 deletions lib/tinybucket/parser/hooks_parser.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Tinybucket
module Parser
class HooksParser < BaseParser
Expand Down
2 changes: 2 additions & 0 deletions lib/tinybucket/resource/hooks.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
# frozen_string_literal: true

module Tinybucket
module Resource
class Hooks < Tinybucket::Resource::Base
Expand Down

0 comments on commit 08ba235

Please sign in to comment.