lib/medea/jasondb.rb in medea-0.6.6 vs lib/medea/jasondb.rb in medea-0.6.7
- old
+ new
@@ -17,11 +17,15 @@
host = config["jason_host"]
else
host = "rest.jasondb.com"
end
protocol = "http"
- protocol << "s" if mode == :secure
- "#{protocol}://#{user}:#{password}@#{host}/#{topic}/"
+ if mode == :secure
+ protocol << "s"
+ "#{protocol}://#{user}:#{password}@#{host}/#{topic}/"
+ else #mode == :public
+ "#{protocol}://#{host}/#{topic}/"
+ end
end
end
module Medea
\ No newline at end of file