lib/bluepill/process_conditions/http.rb in bluepill-rwgps-0.0.62 vs lib/bluepill/process_conditions/http.rb in bluepill-rwgps-0.0.63
- old
+ new
@@ -6,10 +6,10 @@
module ProcessConditions
class Http < ProcessCondition
def initialize(options = {})
@uri = URI.parse(options[:url])
@kind = case options[:kind]
- when Fixnum then Net::HTTPResponse::CODE_TO_OBJ[options[:kind].to_s]
+ when Integer then Net::HTTPResponse::CODE_TO_OBJ[options[:kind].to_s]
when String, Symbol then Net.const_get("HTTP#{options[:kind].to_s.camelize}")
else
Net::HTTPSuccess
end
@pattern = options[:pattern] || nil