ticketmaster-basecamp 0.1.5 → 0.2.5

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.5
1
+ 0.2.5
@@ -24,6 +24,10 @@ module TicketMaster::Provider
24
24
  end
25
25
  BasecampAPI.establish_connection!(auth.domain, auth.username, auth.password, auth.ssl)
26
26
  end
27
+
28
+ def valid?
29
+ BasecampAPI.connection ? true : false
30
+ end
27
31
 
28
32
  end
29
33
  end
@@ -1,9 +1,16 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
3
  describe "TicketmasterBasecamp" do
4
- it "should be able to instantiate a new instance" do
4
+ before(:each) do
5
5
  @ticketmaster = TicketMaster.new(:basecamp, {:domain => 'ticketmaster.basecamphq.com', :token => '000000'})
6
+ end
7
+
8
+ it "should be able to instantiate a new instance" do
6
9
  @ticketmaster.should be_an_instance_of(TicketMaster)
7
10
  @ticketmaster.should be_a_kind_of(TicketMaster::Provider::Basecamp)
8
11
  end
12
+
13
+ it "should be able to validate it's authentication" do
14
+ @ticketmaster.valid?.should be_true
15
+ end
9
16
  end
@@ -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.5"
8
+ s.version = "0.2.5"
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{2011-05-03}
12
+ s.date = %q{2011-06-02}
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 = [
@@ -47,7 +47,7 @@ Gem::Specification.new do |s|
47
47
  ]
48
48
  s.homepage = %q{http://github.com/kiafaldorius/ticketmaster-basecamp}
49
49
  s.require_paths = ["lib"]
50
- s.rubygems_version = %q{1.6.1}
50
+ s.rubygems_version = %q{1.6.0}
51
51
  s.summary = %q{The basecamp provider for ticketmaster}
52
52
 
53
53
  if s.respond_to? :specification_version then
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: 17
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 1
8
+ - 2
9
9
  - 5
10
- version: 0.1.5
10
+ version: 0.2.5
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: 2011-05-03 00:00:00 -04:00
18
+ date: 2011-06-02 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -117,7 +117,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
117
117
  requirements: []
118
118
 
119
119
  rubyforge_project:
120
- rubygems_version: 1.6.1
120
+ rubygems_version: 1.6.0
121
121
  signing_key:
122
122
  specification_version: 3
123
123
  summary: The basecamp provider for ticketmaster