lib/temporize/scheduler.rb
# Extract the auth details from the URL, since HTTParty doesn't like them by default
Extract the auth details from the URL, since HTTParty doesn't like them by default
Extract the auth details from the URL since HTTParty doesn ' t like them by default
def credentials
      if basic_auth = URI.parse(Temporize::Scheduler.base_uri).userinfo
        username, password = basic_auth.split(':')
        {:username => username, :password => password}
      end
    end
def credentials if basic_auth = URI . parse ( Temporize :: Scheduler . base_uri ) . userinfo username , password = basic_auth . split ( ':' ) { :username => username , :password => password } end end
Extract the auth details from the URL, since HTTParty doesn't like them by default
Extract the auth details from the URL since HTTParty doesn ' t like them by default