lib/kanoko.rb in kanoko-0.0.1 vs lib/kanoko.rb in kanoko-0.0.2

- old
+ new

@@ -1,11 +1,11 @@ require 'uri' require 'kanoko/configure' module Kanoko # example: - # Kanoko.configure.resource_host = "http://example.com" + # Kanoko.configure.kanoko_host = "http://example.com" # p Kanoko.configure #=> #<Kanoko::Configure ...> def configure @configure ||= Configure.new end module_function :configure @@ -13,13 +13,13 @@ def configure=(value) @configure = value end def url_for(func, args, src) - if configure.resource_host.nil? - fail ConfigureError, "`resource_host' must be set" + if configure.kanoko_host.nil? + fail ConfigureError, "`kanoko_host' must be set" end - "#{configure.resource_host}#{make_path(func, args, src)}" + "#{configure.kanoko_host}#{make_path(func, args, src)}" end module_function :url_for def make_hash(*args) configure.hash_proc.call(*args)