buddy 2.2.1 → 2.2.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -11,6 +11,11 @@ module Buddy
11
11
  end
12
12
  end
13
13
 
14
+ def initialize(app_id, secret_key)
15
+ @app_id = app_id
16
+ @secret_key = secret_key
17
+ end
18
+
14
19
  def access_token
15
20
  @access_token ||= Buddy::Service::GraphApiClient.get('/oauth/access_token', :query => {
16
21
  :client_id => self.class.app_id,
@@ -3,14 +3,6 @@ module Buddy
3
3
  class User < Base
4
4
 
5
5
  class << self
6
- def app_id
7
- Buddy.current_config["app_id"]
8
- end
9
-
10
- def secret_key
11
- Buddy.current_config["secret"]
12
- end
13
-
14
6
  def current
15
7
  Thread.current['facebook_session']
16
8
  end
data/lib/buddy/version.rb CHANGED
@@ -1,3 +1,3 @@
1
1
  module Buddy
2
- VERSION = "2.2.1"
2
+ VERSION = "2.2.2"
3
3
  end
metadata CHANGED
@@ -1,23 +1,33 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: buddy
3
- version: !ruby/object:Gem::Version
4
- version: 2.2.1
3
+ version: !ruby/object:Gem::Version
4
+ hash: 3
5
5
  prerelease:
6
+ segments:
7
+ - 2
8
+ - 2
9
+ - 2
10
+ version: 2.2.2
6
11
  platform: ruby
7
- authors:
12
+ authors:
8
13
  - Ole Riesenberg
9
14
  autorequire:
10
15
  bindir: bin
11
16
  cert_chain: []
12
- date: 2011-11-23 00:00:00.000000000Z
17
+
18
+ date: 2011-12-12 00:00:00 Z
13
19
  dependencies: []
20
+
14
21
  description: Facebook library focusing on getting the work done.
15
- email:
22
+ email:
16
23
  - or@buddybrand.com
17
24
  executables: []
25
+
18
26
  extensions: []
27
+
19
28
  extra_rdoc_files: []
20
- files:
29
+
30
+ files:
21
31
  - .gitignore
22
32
  - Gemfile
23
33
  - Gemfile.lock
@@ -42,27 +52,36 @@ files:
42
52
  - test/test_buddy.rb
43
53
  homepage: http://rubygems.org/gems/buddy
44
54
  licenses: []
55
+
45
56
  post_install_message:
46
57
  rdoc_options: []
47
- require_paths:
58
+
59
+ require_paths:
48
60
  - lib
49
- required_ruby_version: !ruby/object:Gem::Requirement
61
+ required_ruby_version: !ruby/object:Gem::Requirement
50
62
  none: false
51
- requirements:
52
- - - ! '>='
53
- - !ruby/object:Gem::Version
54
- version: '0'
55
- required_rubygems_version: !ruby/object:Gem::Requirement
63
+ requirements:
64
+ - - ">="
65
+ - !ruby/object:Gem::Version
66
+ hash: 3
67
+ segments:
68
+ - 0
69
+ version: "0"
70
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
71
  none: false
57
- requirements:
58
- - - ! '>='
59
- - !ruby/object:Gem::Version
60
- version: '0'
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ hash: 3
76
+ segments:
77
+ - 0
78
+ version: "0"
61
79
  requirements: []
80
+
62
81
  rubyforge_project:
63
82
  rubygems_version: 1.8.10
64
83
  signing_key:
65
84
  specification_version: 3
66
85
  summary: Facebook library focusing on getting the work done.
67
- test_files:
86
+ test_files:
68
87
  - test/test_buddy.rb