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

- old
+ new

@@ -3,11 +3,11 @@ target, source = opts.to_a.first case target when :users users = Array.new source.each_slice(100) do |sliced| - response = self.get("/1/users/lookup.json", {guess_parameter(sliced[0]) => sliced.join(",")}.update(option)) + response = self.get("/1.1/users/lookup.json", {guess_parameter(sliced[0]) => sliced.join(",")}.update(option)) return false unless response response.each do |element| user = User.new(element, @access_token) users << user end @@ -15,10 +15,10 @@ return users when :friendships fs = Array.new source.each_slice(100) do |sliced| - response = self.get("/1/friendships/lookup.json", {guess_parameter(sliced[0]) => sliced.join(",")}.update(option)) + response = self.get("/1.1/friendships/lookup.json", {guess_parameter(sliced[0]) => sliced.join(",")}.update(option)) return false unless response response.each do |element| fs << element end \ No newline at end of file