polar-renren 0.0.3 → 0.0.4

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, 3]
16
+ VERSION = [0, 0, 4]
17
17
 
18
18
  def self.version
19
19
  VERSION * "."
@@ -2,6 +2,8 @@ module Polar
2
2
  module Error
3
3
  class APIError < StandardError
4
4
 
5
+ attr_accessor :code, :message
6
+
5
7
  def initialize(error_response)
6
8
  @code, @message = error_response["error_code"], error_response["error_msg"]
7
9
  end
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.3
4
+ version: 0.0.4
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-20 00:00:00.000000000Z
12
+ date: 2012-05-21 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: -342073288091395489
120
+ hash: 962871931374462761
121
121
  required_rubygems_version: !ruby/object:Gem::Requirement
122
122
  none: false
123
123
  requirements: