ticketmaster-bugzilla 0.0.6 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.1.6
@@ -23,7 +23,16 @@ module TicketMaster::Provider
23
23
  auth.url = url+'/xmlrpc.cgi'
24
24
  end
25
25
  @bugzilla = Rubyzilla::Bugzilla.new(auth.url)
26
- @bugzilla.login(auth.username,auth.password)
26
+ begin
27
+ @bugzilla.login(auth.username,auth.password)
28
+ @valid_auth = true
29
+ rescue
30
+ @valid_auth = false
31
+ end
32
+ end
33
+
34
+ def valid?
35
+ @valid_auth
27
36
  end
28
37
 
29
38
  def projects(*options)
@@ -2,10 +2,18 @@ require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
3
  describe "Ticketmaster::Provider::Bugzilla" do
4
4
 
5
- it "should be able to instantiate a new instance" do
5
+ before(:each) do
6
6
  @ticketmaster = TicketMaster.new(:bugzilla, {:username => 'george.rafael@gmail.com', :password => '123456', :url => 'https://landfill.bugzilla.org/bugzilla-3.6-branch'})
7
+ end
8
+
9
+ it "should be able to instantiate a new instance" do
7
10
  @ticketmaster.should be_an_instance_of(TicketMaster)
8
11
  @ticketmaster.should be_a_kind_of(TicketMaster::Provider::Bugzilla)
9
12
  end
10
-
13
+
14
+ it "should be able to validate it's authentication" do
15
+ pending
16
+ @ticketmaster.valid?.should be_true
17
+ end
18
+
11
19
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-bugzilla}
8
- s.version = "0.0.6"
8
+ s.version = "0.1.6"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rafael George"]
12
- s.date = %q{2011-05-10}
12
+ s.date = %q{2011-06-06}
13
13
  s.description = %q{Allows ticketmaster to interact with Bugzilla.}
14
14
  s.email = %q{rafael@hybridgroup.com}
15
15
  s.extra_rdoc_files = [
@@ -37,7 +37,7 @@ Gem::Specification.new do |s|
37
37
  ]
38
38
  s.homepage = %q{http://github.com/hybridgroup/ticketmaster-bugzilla}
39
39
  s.require_paths = ["lib"]
40
- s.rubygems_version = %q{1.6.1}
40
+ s.rubygems_version = %q{1.6.0}
41
41
  s.summary = %q{Ticketmaster Provider for Bugzilla}
42
42
 
43
43
  if s.respond_to? :specification_version then
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-bugzilla
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 0
8
+ - 1
9
9
  - 6
10
- version: 0.0.6
10
+ version: 0.1.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rafael George
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-05-10 00:00:00 -04:00
18
+ date: 2011-06-06 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -169,7 +169,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
169
169
  requirements: []
170
170
 
171
171
  rubyforge_project:
172
- rubygems_version: 1.6.1
172
+ rubygems_version: 1.6.0
173
173
  signing_key:
174
174
  specification_version: 3
175
175
  summary: Ticketmaster Provider for Bugzilla