ticketmaster-github 0.3.0 → 0.3.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.0
1
+ 0.3.1
@@ -18,12 +18,15 @@ module TicketMaster::Provider
18
18
  def authorize(auth = {})
19
19
  @authentication ||= TicketMaster::Authenticator.new(auth)
20
20
  auth = @authentication
21
- if auth.token.nil? or (auth.login.nil? and auth.username.nil?)
21
+ if auth.login.blank? and auth.username.blank?
22
+ raise TicketMaster::Exception.new('Please provide at least a username')
23
+ elsif auth.token.blank?
22
24
  TicketMaster::Provider::Github.login = auth.login || auth.username
23
- return
25
+ Octopi::Api.api = Octopi::AnonymousApi.instance
24
26
  else
27
+ TicketMaster::Provider::Github.login = auth.login || auth.username
25
28
  Octopi::Api.api = Octopi::AuthApi.instance
26
- Octopi::Api.api.token = auth.token unless auth.token.blank?
29
+ Octopi::Api.api.token = auth.token
27
30
  Octopi::Api.api.login = auth.login || auth.username
28
31
  end
29
32
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-github}
8
- s.version = "0.3.0"
8
+ s.version = "0.3.1"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["HybridGroup"]
12
- s.date = %q{2010-12-23}
12
+ s.date = %q{2011-02-28}
13
13
  s.description = %q{This provides an interface with github through the ticketmaster gem.}
14
14
  s.email = %q{hong.quach@abigfisch.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-github
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 0
10
- version: 0.3.0
9
+ - 1
10
+ version: 0.3.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - HybridGroup
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-23 00:00:00 -08:00
18
+ date: 2011-02-28 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency