bitlyr 0.9.1 → 0.9.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.1
1
+ 0.9.2
data/bitlyr.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = "bitlyr"
8
- s.version = "0.9.1"
8
+ s.version = "0.9.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["jonstorer"]
@@ -14,7 +14,7 @@ module Bitlyr
14
14
  # Get the url to redirect a user to, pass the url you want the user
15
15
  # to be redirected back to.
16
16
  def authorize_url(redirect_url)
17
- client.auth_code.authorize_url(:redirect_uri => redirect_url)
17
+ client.auth_code.authorize_url(:redirect_uri => redirect_url).gsub(/api-ssl.bit.ly/,'bitly.com')
18
18
  end
19
19
 
20
20
  # Get the access token. You must pass the exact same redirect_url passed
@@ -15,7 +15,7 @@ class TestOAuthStrategy < Test::Unit::TestCase
15
15
  assert_equal @client_secret, @strategy.send(:client).secret
16
16
  end
17
17
  should 'get the oauth authorize url' do
18
- assert_match %r{https://api-ssl\.bit\.ly/oauth/authorize\?.*client_id=#{@client_id}.*}, @strategy.authorize_url('http://test.local')
18
+ assert_match %r{https://bitly.com/oauth/authorize\?.*client_id=#{@client_id}.*}, @strategy.authorize_url('http://test.local')
19
19
  end
20
20
  should 'get access token with access token' do
21
21
  access_token = @strategy.get_access_token_from_token('hello')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bitlyr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.1
4
+ version: 0.9.2
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-01-17 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: httparty
16
- requirement: &70192798923760 !ruby/object:Gem::Requirement
16
+ requirement: &70254743801260 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 0.7.6
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70192798923760
24
+ version_requirements: *70254743801260
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: crack
27
- requirement: &70192798923280 !ruby/object:Gem::Requirement
27
+ requirement: &70254743800520 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 0.1.4
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70192798923280
35
+ version_requirements: *70254743800520
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: oauth2
38
- requirement: &70192798922780 !ruby/object:Gem::Requirement
38
+ requirement: &70254743799980 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.1.1
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70192798922780
46
+ version_requirements: *70254743799980
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: shoulda
49
- requirement: &70192798922280 !ruby/object:Gem::Requirement
49
+ requirement: &70254743799480 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,10 +54,10 @@ dependencies:
54
54
  version: '0'
55
55
  type: :development
56
56
  prerelease: false
57
- version_requirements: *70192798922280
57
+ version_requirements: *70254743799480
58
58
  - !ruby/object:Gem::Dependency
59
59
  name: jeweler
60
- requirement: &70192798921800 !ruby/object:Gem::Requirement
60
+ requirement: &70254743799000 !ruby/object:Gem::Requirement
61
61
  none: false
62
62
  requirements:
63
63
  - - ! '>='
@@ -65,10 +65,10 @@ dependencies:
65
65
  version: 1.4.0
66
66
  type: :development
67
67
  prerelease: false
68
- version_requirements: *70192798921800
68
+ version_requirements: *70254743799000
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rcov
71
- requirement: &70192798921320 !ruby/object:Gem::Requirement
71
+ requirement: &70254743798520 !ruby/object:Gem::Requirement
72
72
  none: false
73
73
  requirements:
74
74
  - - ! '>='
@@ -76,10 +76,10 @@ dependencies:
76
76
  version: '0'
77
77
  type: :development
78
78
  prerelease: false
79
- version_requirements: *70192798921320
79
+ version_requirements: *70254743798520
80
80
  - !ruby/object:Gem::Dependency
81
81
  name: mocha
82
- requirement: &70192798910400 !ruby/object:Gem::Requirement
82
+ requirement: &70254743798040 !ruby/object:Gem::Requirement
83
83
  none: false
84
84
  requirements:
85
85
  - - ! '>='
@@ -87,10 +87,10 @@ dependencies:
87
87
  version: 0.10.0
88
88
  type: :development
89
89
  prerelease: false
90
- version_requirements: *70192798910400
90
+ version_requirements: *70254743798040
91
91
  - !ruby/object:Gem::Dependency
92
92
  name: fakeweb
93
- requirement: &70192798909680 !ruby/object:Gem::Requirement
93
+ requirement: &70254743797560 !ruby/object:Gem::Requirement
94
94
  none: false
95
95
  requirements:
96
96
  - - ! '>='
@@ -98,7 +98,7 @@ dependencies:
98
98
  version: 1.2.8
99
99
  type: :development
100
100
  prerelease: false
101
- version_requirements: *70192798909680
101
+ version_requirements: *70254743797560
102
102
  description: ! 'A ruby wrapper for version 3 of the bit.ly API
103
103
 
104
104
  Supports Login/ApiKey & OAuth authentication