ticketmaster-basecamp 0.1.1 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/VERSION +1 -1
- data/lib/provider/basecamp.rb +4 -1
- data/ticketmaster-basecamp.gemspec +2 -2
- metadata +4 -4
data/.gitignore
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.3
|
data/lib/provider/basecamp.rb
CHANGED
@@ -12,13 +12,16 @@ module TicketMaster::Provider
|
|
12
12
|
auth[:ssl] ||= false
|
13
13
|
@authentication ||= TicketMaster::Authenticator.new(auth)
|
14
14
|
auth = @authentication
|
15
|
-
if auth.domain.nil? or (auth.token.nil? and (auth.username.nil? and auth.password.nil?))
|
15
|
+
if (auth.domain.nil? and auth.subdomain.nil?) or (auth.token.nil? and (auth.username.nil? and auth.password.nil?))
|
16
16
|
raise "Please provide at least an domain and token or username and password)"
|
17
17
|
end
|
18
18
|
unless auth.token.nil?
|
19
19
|
auth.username = auth.token
|
20
20
|
auth.password = 'Basecamp'
|
21
21
|
end
|
22
|
+
if auth.domain.nil? and auth.subdomain
|
23
|
+
auth.domain = (auth.subdomain.include?('.') ? auth.subdomain : auth.subdomain + '.basecamphq.com')
|
24
|
+
end
|
22
25
|
BasecampAPI.establish_connection!(auth.domain, auth.username, auth.password, auth.ssl)
|
23
26
|
end
|
24
27
|
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ticketmaster-basecamp}
|
8
|
-
s.version = "0.1.
|
8
|
+
s.version = "0.1.3"
|
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
|
+
s.date = %q{2010-11-04}
|
13
13
|
s.description = %q{This gem provides an interface to basecamp 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-basecamp
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 29
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 1
|
9
|
-
-
|
10
|
-
version: 0.1.
|
9
|
+
- 3
|
10
|
+
version: 0.1.3
|
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-
|
18
|
+
date: 2010-11-04 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|