Skip to content

Commit

Permalink
update style
Browse files Browse the repository at this point in the history
  • Loading branch information
grokify committed Feb 1, 2016
1 parent 1099198 commit d6068f2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 0 additions & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@ end

desc 'Generate YARD documentation.'
task :gendoc do
# puts 'yard doc generation disabled until JRuby build native extensions for redcarpet or yard removes the dependency.'
system 'yardoc'
system 'yard stats --list-undoc'
end
4 changes: 2 additions & 2 deletions lib/glip-poster/poster.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ def initialize(webhook_url_or_id)
@http = Faraday.new(url: GLIP_WEBHOOK_BASE_URL) do |faraday|
faraday.request :json
faraday.response :logger
faraday.adapter Faraday.default_adapter # make requests with Net::HTTP
faraday.adapter Faraday.default_adapter # use Net::HTTP
end
end

Expand All @@ -28,7 +28,7 @@ def set_webhook_url(webhook_url_or_id)
elsif webhook_url_or_id =~ %r{^https?://}
@webhook_url = webhook_url_or_id
else
fail 'must include webhook URL or id argument'
fail ArgumentError, 'must include webhook URL or id argument'
end
end

Expand Down

0 comments on commit d6068f2

Please sign in to comment.