twitter-auth 0.1.14 → 0.1.15
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION.yml +1 -1
- data/app/models/twitter_auth/generic_user.rb +2 -0
- data/generators/twitter_auth/templates/migration.rb +2 -0
- data/lib/twitter_auth/dispatcher/shared.rb +1 -1
- data/lib/twitter_auth.rb +7 -1
- data/spec/debug.log +7357 -0
- data/spec/twitter_auth/dispatcher/basic_spec.rb +7 -2
- data/spec/twitter_auth/dispatcher/oauth_spec.rb +8 -3
- metadata +2 -2
data/VERSION.yml
CHANGED
@@ -27,6 +27,8 @@ class TwitterAuthMigration < ActiveRecord::Migration
|
|
27
27
|
t.string :profile_link_color
|
28
28
|
t.string :profile_sidebar_border_color
|
29
29
|
t.string :profile_text_color
|
30
|
+
t.string :profile_background_image_url
|
31
|
+
t.boolean :profile_background_tiled
|
30
32
|
t.integer :friends_count
|
31
33
|
t.integer :statuses_count
|
32
34
|
t.integer :followers_count
|
@@ -16,7 +16,7 @@ module TwitterAuth
|
|
16
16
|
response.body
|
17
17
|
end
|
18
18
|
when Net::HTTPUnauthorized
|
19
|
-
raise TwitterAuth::Dispatcher::
|
19
|
+
raise TwitterAuth::Dispatcher::Unauthorized, 'The credentials provided did not authorize the user.'
|
20
20
|
else
|
21
21
|
message = begin
|
22
22
|
JSON.parse(response.body)['error']
|
data/lib/twitter_auth.rb
CHANGED
@@ -78,4 +78,10 @@ require 'twitter_auth/dispatcher/oauth'
|
|
78
78
|
require 'twitter_auth/dispatcher/basic'
|
79
79
|
require 'twitter_auth/dispatcher/shared'
|
80
80
|
|
81
|
-
|
81
|
+
module TwitterAuth
|
82
|
+
module Dispatcher
|
83
|
+
class Error < StandardError; end
|
84
|
+
class Unauthorized < Error; end
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|