polar-renren 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/lib/polar.rb CHANGED
@@ -13,7 +13,7 @@ require 'polar/error/api_error'
13
13
 
14
14
  module Polar
15
15
  BASE_URL = "http://api.renren.com/restserver.do"
16
- VERSION = [0, 0, 2]
16
+ VERSION = [0, 0, 3]
17
17
 
18
18
  def self.version
19
19
  VERSION * "."
@@ -1,4 +1,4 @@
1
- module RenrenAPI
1
+ module Polar
2
2
  module Error
3
3
  class APIError < StandardError
4
4
 
@@ -1,4 +1,4 @@
1
- module RenrenAPI
1
+ module Polar
2
2
  module Error
3
3
  class HTTPError < StandardError
4
4
  def initialize(status)
data/lib/polar/request.rb CHANGED
@@ -27,9 +27,9 @@ module Polar
27
27
  request.body = urlencode_params(params)
28
28
  end
29
29
 
30
- raise RenrenAPI::Error::HTTPError.new(raw_response.status) if (400..599).include?(raw_response.status)
30
+ raise Polar::Error::HTTPError.new(raw_response.status) if (400..599).include?(raw_response.status)
31
31
  @response = JSON.parse(raw_response.body)
32
- raise RenrenAPI::Error::APIError.new(@response) if renren_api_error?
32
+ raise Polar::Error::APIError.new(@response) if renren_api_error?
33
33
  end
34
34
 
35
35
  private
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: polar-renren
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.2
4
+ version: 0.0.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-05-17 00:00:00.000000000Z
12
+ date: 2012-05-20 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec
@@ -117,7 +117,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
117
117
  version: '0'
118
118
  segments:
119
119
  - 0
120
- hash: 4050403599545034996
120
+ hash: -342073288091395489
121
121
  required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  none: false
123
123
  requirements: