Skip to content
Browse files

Test

  • Loading branch information...
1 parent 0ddb1fc commit 8542df2b98b97ae6629ee9675c5166fcad3b3199 @paulmwatson committed Apr 12, 2012
View
6 README.md
@@ -28,7 +28,7 @@ Run the generator, supplying the name of the model (e.g. User)
Add your OAuth credentials to `config/initializers/devise_twitter.rb`
- Devise::Twitter.setup do |config|
+ Devise::TwitterD.setup do |config|
config.consumer_key = <YOUR CONSUMER KEY HERE>
config.consumer_secret = <YOUR CONSUMER SECRET HERE>
config.scope = :user
@@ -59,8 +59,8 @@ Modify the generated routes (in `config/routes.rb`) to your liking
Application.routes.draw do
devise_for :user do
- match '/user/sign_in/twitter' => Devise::Twitter::Rack::Signin
- match '/user/connect/twitter' => Devise::Twitter::Rack::Connect
+ match '/user/sign_in/twitter' => Devise::TwitterD::Rack::Signin
+ match '/user/connect/twitter' => Devise::TwitterD::Rack::Connect
end
...
View
2 devise-twitter.gemspec
@@ -3,7 +3,7 @@ require File.expand_path("../lib/devise/twitter/version", __FILE__)
Gem::Specification.new do |s|
s.name = "devise-twitter"
- s.version = Devise::Twitter::VERSION
+ s.version = Devise::TwitterD::VERSION
s.platform = Gem::Platform::RUBY
s.authors = ['Martin Schuerrer']
s.email = ['martin@schuerrer.org']
View
2 lib/devise-twitter.rb
@@ -1,5 +1,5 @@
module Devise
- module Twitter
+ module TwitterD
end
end
View
2 lib/devise/twitter.rb
@@ -1,5 +1,5 @@
module Devise
- module Twitter
+ module TwitterD
@@setup_done = false
mattr_accessor :consumer_key
View
2 lib/devise/twitter/rack.rb
@@ -1,5 +1,5 @@
module Devise
- module Twitter
+ module TwitterD
module Rack
Signin = proc do |env|
warden = env['warden']
View
2 lib/devise/twitter/version.rb
@@ -1,5 +1,5 @@
module Devise
- module Twitter
+ module TwitterD
VERSION = "0.1.2.pre"
end
end
View
2 lib/generators/devise/templates/initializer.rb
@@ -1,4 +1,4 @@
-Devise::Twitter.setup do |config|
+Devise::TwitterD.setup do |config|
config.consumer_key = <YOUR CONSUMER KEY>
config.consumer_secret = <YOUR CONSUMER SECRET>
config.scope = :<%= singular_name %>
View
4 lib/generators/devise/twitter_generator.rb
@@ -28,8 +28,8 @@ def copy_initializer
def add_devise_twitter_routes
route <<-CONTENT
devise_for :#{singular_name} do
- match '/#{singular_name}/sign_in/twitter' => Devise::Twitter::Rack::Signin
- match '/#{singular_name}/connect/twitter' => Devise::Twitter::Rack::Connect
+ match '/#{singular_name}/sign_in/twitter' => Devise::TwitterD::Rack::Signin
+ match '/#{singular_name}/connect/twitter' => Devise::TwitterD::Rack::Connect
end
CONTENT
end

0 comments on commit 8542df2

Please sign in to comment.
Something went wrong with that request. Please try again.