koala-rails 0.0.2 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -1,13 +1,26 @@
1
1
  = koala-rails
2
2
 
3
- Installer and helpers for using Koala with Rails 3
3
+ Installer and helpers for using {Koala}[http://github.com/arsduo/koala] with {Rails 3}[http;//github.com/rails/rails]
4
+
5
+ == Installation
6
+
7
+ In your +Gemfile+
8
+ gem "koala-rails"
9
+
10
+ From the command line
11
+ bundle install
12
+ rails g koala:install
13
+
14
+ Edit +config/facebook.yml+ to reflect your Facebook application's ID and secret.
15
+
16
+ == Using the Helpers
17
+
18
+ (Coming soon)
4
19
 
5
20
  == Note on Patches/Pull Requests
6
21
 
7
22
  * Fork the project.
8
23
  * Make your feature addition or bug fix.
9
- * Add tests for it. This is important so I don't break it in a
10
- future version unintentionally.
11
24
  * Commit, do not mess with rakefile, version, or history.
12
25
  (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
13
26
  * Send me a pull request. Bonus points for topic branches.
@@ -1,11 +1,19 @@
1
1
  module KoalaRails
2
2
  module Helpers
3
- def facebook_cookies
4
- @facebook_cookies ||= Koala::Facebook::OAuth.new.get_user_from_cookie(cookies)
3
+ def facebook_session
4
+ @facebook_session ||= Koala::Facebook::OAuth.new.get_user_from_cookie(cookies)
5
5
  end
6
6
 
7
7
  def facebook_token
8
- @facebook_token ||= facebook_cookies['access_token']
8
+ @facebook_access_token ||= facebook_session['access_token']
9
+ end
10
+
11
+ def facebook_uid
12
+ @facebook_uid ||= facebook_session['uid']
13
+ end
14
+
15
+ def facebook_session_key
16
+ @facebook_session_key ||= facebook_session['session_key']
9
17
  end
10
18
  end
11
19
  end
@@ -1,4 +1,4 @@
1
1
  module KoalaRails
2
- VERSION = "0.0.2"
2
+ VERSION = "0.1.0"
3
3
  end
4
4
 
metadata CHANGED
@@ -5,9 +5,9 @@ version: !ruby/object:Gem::Version
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
+ - 1
8
9
  - 0
9
- - 2
10
- version: 0.0.2
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - Steven Hancock
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-06-21 00:00:00 -07:00
18
+ date: 2010-06-22 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -64,24 +64,6 @@ dependencies:
64
64
  type: :development
65
65
  version_requirements: *id003
66
66
  name: shoe
67
- - !ruby/object:Gem::Dependency
68
- prerelease: false
69
- requirement: &id004 !ruby/object:Gem::Requirement
70
- none: false
71
- requirements:
72
- - - ~>
73
- - !ruby/object:Gem::Version
74
- hash: 62196475
75
- segments:
76
- - 2
77
- - 0
78
- - 0
79
- - beta
80
- - 12
81
- version: 2.0.0.beta.12
82
- type: :development
83
- version_requirements: *id004
84
- name: rspec
85
67
  description: Installer and helpers for using Koala with Rails 3
86
68
  email:
87
69
  - stevenh512@gmail.com
@@ -89,8 +71,9 @@ executables: []
89
71
 
90
72
  extensions: []
91
73
 
92
- extra_rdoc_files: []
93
-
74
+ extra_rdoc_files:
75
+ - README.rdoc
76
+ - LICENSE
94
77
  files:
95
78
  - lib/koala-rails.rb
96
79
  - lib/generators/koala/install/install_generator.rb
@@ -106,8 +89,13 @@ homepage: http://github.com/stevenh512/koala-rails
106
89
  licenses: []
107
90
 
108
91
  post_install_message:
109
- rdoc_options: []
110
-
92
+ rdoc_options:
93
+ - --title
94
+ - koala-rails
95
+ - --main
96
+ - README.rdoc
97
+ - --inline-source
98
+ - --line-numbers
111
99
  require_paths:
112
100
  - lib
113
101
  required_ruby_version: !ruby/object:Gem::Requirement