lib/pupil/users.rb in pupil-0.6.2 vs lib/pupil/users.rb in pupil-0.6.3

- old
+ new

@@ -1,14 +1,14 @@ class Pupil def user(target, option={}) - response = self.get("/1/users/show.json", {guess_parameter(target) => target}.update(option)) + response = self.get("/1.1/users/show.json", {guess_parameter(target) => target}.update(option)) return false unless response user = User.new(response, @access_token) return user end def search_user(keyword, option={}) - response = self.get("/1/users/search.json", {:q => keyword}.update(option)) + response = self.get("/1.1/users/search.json", {:q => keyword}.update(option)) users = Array.new response.each do |element| user = User.new(element, @access_token) users << user end \ No newline at end of file