fb_graph 1.5.2 → 1.5.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/VERSION CHANGED
@@ -1 +1 @@
1
- 1.5.2
1
+ 1.5.3
data/fb_graph.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{fb_graph}
8
- s.version = "1.5.2"
8
+ s.version = "1.5.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["nov matake"]
data/lib/fb_graph/auth.rb CHANGED
@@ -46,7 +46,7 @@ module FbGraph
46
46
  data = SignedRequest.verify(self.client, signed_request)
47
47
  if data[:oauth_token]
48
48
  self.access_token = build_access_token(data)
49
- self.user = User.new(data[:user_id], data[:user].merge(:access_token => self.access_token))
49
+ self.user = User.new(data[:user_id], :access_token => self.access_token)
50
50
  end
51
51
  self.data = data
52
52
  self
data/lib/fb_graph/user.rb CHANGED
@@ -29,7 +29,7 @@ module FbGraph
29
29
  include Connections::Videos
30
30
  extend Searchable
31
31
 
32
- attr_accessor :first_name, :last_name, :name, :link, :about, :birthday, :work, :education, :email, :website, :websites, :hometown, :location, :bio, :quotes, :gender, :interested_in, :meeting_for, :relationship_status, :religion, :political, :verified, :significant_other, :timezone, :updated_time, :sports, :favorite_teams, :favorite_athletes, :inspirational_people, :locale, :languages, :third_party_id, :address, :mobile_phone, :age, :country
32
+ attr_accessor :first_name, :last_name, :name, :link, :about, :birthday, :work, :education, :email, :website, :websites, :hometown, :location, :bio, :quotes, :gender, :interested_in, :meeting_for, :relationship_status, :religion, :political, :verified, :significant_other, :timezone, :updated_time, :sports, :favorite_teams, :favorite_athletes, :inspirational_people, :locale, :languages, :third_party_id, :address, :mobile_phone
33
33
 
34
34
  def initialize(identifier, attributes = {})
35
35
  super
@@ -116,8 +116,6 @@ module FbGraph
116
116
  @address = Venue.new(attributes[:address])
117
117
  end
118
118
  @mobile_phone = attributes[:mobile_phone]
119
- @age = attributes[:age]
120
- @country = attributes[:country]
121
119
  end
122
120
 
123
121
  def self.me(access_token)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fb_graph
3
3
  version: !ruby/object:Gem::Version
4
- hash: 7
4
+ hash: 5
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 5
9
- - 2
10
- version: 1.5.2
9
+ - 3
10
+ version: 1.5.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - nov matake