lib/danger/ci_source/xcode_server.rb in danger-0.8.4 vs lib/danger/ci_source/xcode_server.rb in danger-0.8.5
- old
+ new
@@ -2,20 +2,20 @@
module Danger
module CISource
class XcodeServer < CI
def self.validates?(env)
- return false unless env["XCS_BOT_NAME"]
+ return false unless env['XCS_BOT_NAME']
return true
end
def supported_request_sources
@supported_request_sources ||= [Danger::RequestSources::GitHub]
end
def initialize(env)
- bot_name = env["XCS_BOT_NAME"]
+ bot_name = env['XCS_BOT_NAME']
return if bot_name.nil?
repo_matches = bot_name.match(/\[(.+)\]/)
self.repo_slug = repo_matches[1] unless repo_matches.nil?
pull_request_id_matches = bot_name.match(/#(\d+)/)