lib/sched/client.rb in sched-0.1.12 vs lib/sched/client.rb in sched-0.1.13
- old
+ new
@@ -15,11 +15,11 @@
def events
@events ||= parse_sessions(CSV.parse(request("session/list", nil, :get)))
end
def api_url
- "https://#{@conference}.sched.org/api"
+ "https://#{@conference}.sched.com/api"
end
def request(path, data = {}, method = :post)
data ||= {}
data[:api_key] = @api_key
@@ -36,10 +36,10 @@
"\xEF\xBB\xBF".force_encoding("UTF-8")
end
def curl_client(path)
c = Curl::Easy.new("#{api_url}/#{path}")
- c.headers["User-Agent"] = "sched-gem"
+ c.headers["User-Agent"] = "sched-gem/#{Sched::VERSION}"
c
end
def encoded(str)
str.force_encoding("UTF-8").gsub(byte_order_mark, "")