Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

revert unwanted changes introduced in #26

  • Loading branch information...
commit b5d2cb68567bdceba2fc89a6fe9ebc1bdcbeff97 1 parent 4738159
@sr sr authored
View
2  lib/janky.rb
@@ -155,7 +155,7 @@ def self.setup(settings)
chat_name = settings["JANKY_CHAT"] || "campfire"
chat_settings = {}
settings.each do |key, value|
- if key =~ /^JANKY_CHAT_#{chat_name}_/i
+ if key =~ /^JANKY_CHAT_#{chat_name}_/
chat_settings[key] = value
end
end
View
2  lib/janky/hubot.rb
@@ -35,7 +35,7 @@ class Hubot < Sinatra::Base
repo = find_repo(repo_name)
branch = repo.branch_for(branch_name)
build = branch.current_build
- room_id = params["room_id"] && Integer(params["room_id"]) rescue nil
+ room_id = params["room_id"] && Integer(params["room_id"])
if build
build.rerun(room_id)
View
3  lib/janky/notifier/chat.rb
@@ -5,14 +5,13 @@ def self.completed(build)
status = build.green? ? "was successful" : "failed"
color = build.green? ? "green" : "red"
- message = "Build #%s (%s) of %s/%s %s (%ss) <a href='%s'>%s</a>" % [
+ message = "Build #%s (%s) of %s/%s %s (%ss) %s" % [
build.number,
build.sha1,
build.repo_name,
build.branch_name,
status,
build.duration,
- build.compare,
build.compare
]
Please sign in to comment.
Something went wrong with that request. Please try again.