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 CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :major: 0
3
3
  :minor: 1
4
- :patch: 14
4
+ :patch: 15
@@ -14,6 +14,8 @@ module TwitterAuth
14
14
  :profile_link_color,
15
15
  :profile_sidebar_border_color,
16
16
  :profile_text_color,
17
+ :profile_background_image_url,
18
+ :profile_background_tiled,
17
19
  :friends_count,
18
20
  :statuses_count,
19
21
  :followers_count,
@@ -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::Error, 'The credentials provided did not authorize the user.'
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
- class TwitterAuth::Dispatcher::Error < StandardError; end
81
+ module TwitterAuth
82
+ module Dispatcher
83
+ class Error < StandardError; end
84
+ class Unauthorized < Error; end
85
+ end
86
+ end
87
+