spherebird 0.0.1 → 0.0.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (4) hide show
  1. data/README.rdoc +29 -13
  2. data/VERSION +1 -1
  3. data/spherebird.gemspec +1 -1
  4. metadata +10 -10
data/README.rdoc CHANGED
@@ -1,19 +1,35 @@
1
1
  = spherebird
2
2
 
3
- Description goes here.
3
+ Twitter-OAuth on Rails
4
4
 
5
- == Contributing to spherebird
6
-
7
- * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
8
- * Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
9
- * Fork the project.
10
- * Start a feature/bugfix branch.
11
- * Commit and push until you are happy with your contribution.
12
- * Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
13
- * Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
5
+ == How to Use
14
6
 
15
- == Copyright
7
+ *app/controllers/application_controller.rb
8
+ class ApplicationController < ActionController::Base
9
+ protect_from_forgery
10
+ include Spherebird
11
+ end
12
+
13
+ *app/controllers/auth_controller.rb
14
+ class AuthController < ApplicationController
15
+ def index
16
+ twitter_oauth
17
+ end
16
18
 
17
- Copyright (c) 2012 AOKI Yuuto. See LICENSE.txt for
18
- further details.
19
+ def callback
20
+ twitter_oauth_request params[:oauth_token]
21
+ end
19
22
 
23
+ def logout
24
+ twitter_session_clear
25
+ redirect_to root_path
26
+ end
27
+ end
28
+
29
+ *config/twitter_oauth.yml
30
+ development:
31
+ consumer_key: "xxxxxxxxxxxxxxxxxxxxxx"
32
+ consumer_secret: "xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx"
33
+ logged_in_url: "http://xxxxxx.local"
34
+ callback_url: "http://xxxxxx.local/auth/callback"
35
+ proxy: "http://proxy.xxxxx.local:80"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.0.2
data/spherebird.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "spherebird"
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["AOKI Yuuto"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spherebird
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-08 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: oauth
16
- requirement: &2165804040 !ruby/object:Gem::Requirement
16
+ requirement: &2152859340 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *2165804040
24
+ version_requirements: *2152859340
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: twitter
27
- requirement: &2165803540 !ruby/object:Gem::Requirement
27
+ requirement: &2152858340 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '0'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *2165803540
35
+ version_requirements: *2152858340
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rspec
38
- requirement: &2165802920 !ruby/object:Gem::Requirement
38
+ requirement: &2152857540 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: '0'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *2165802920
46
+ version_requirements: *2152857540
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: jeweler
49
- requirement: &2165802380 !ruby/object:Gem::Requirement
49
+ requirement: &2152856580 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *2165802380
57
+ version_requirements: *2152856580
58
58
  description: Twitter-OAuth Sign On System on Rails
59
59
  email: wx.aoki@gmail.com
60
60
  executables: []
@@ -90,7 +90,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
90
90
  version: '0'
91
91
  segments:
92
92
  - 0
93
- hash: 3585084522378378174
93
+ hash: -498824825232597579
94
94
  required_rubygems_version: !ruby/object:Gem::Requirement
95
95
  none: false
96
96
  requirements: