ticketmaster-trac 0.3.5 → 0.4.4

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.5
1
+ 0.4.4
data/lib/provider/trac.rb CHANGED
@@ -36,5 +36,14 @@ module TicketMaster::Provider
36
36
  @api
37
37
  end
38
38
 
39
+ def valid?
40
+ begin
41
+ @trac.tickets.list
42
+ true
43
+ rescue Exception
44
+ false
45
+ end
46
+ end
47
+
39
48
  end
40
49
  end
@@ -1,11 +1,13 @@
1
1
  require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
2
 
3
3
  describe "Ticketmaster::Provider::Trac" do
4
-
4
+ before(:each) do
5
+ @ticketmaster = TicketMaster.new(:trac, {:username => 'cored', :password => 'afdzk', :url => 'http://trac.edgewall.org/demo-0.11'})
6
+ end
7
+
5
8
  it "should be able to instantiate a new instance" do
6
- @ticketmaster = TicketMaster.new(:trac, {:username => 'ticketmaster', :password => '000000', :url => 'here.com'})
7
9
  @ticketmaster.should be_an_instance_of(TicketMaster)
8
10
  @ticketmaster.should be_a_kind_of(TicketMaster::Provider::Trac)
9
11
  end
10
-
12
+
11
13
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-trac}
8
- s.version = "0.3.5"
8
+ s.version = "0.4.4"
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-24}
12
+ s.date = %q{2011-06-06}
13
13
  s.description = %q{Allows ticketmaster to interact with Your System.}
14
14
  s.email = %q{rafael@hybridgroup.com}
15
15
  s.extra_rdoc_files = [
@@ -41,7 +41,7 @@ Gem::Specification.new do |s|
41
41
  ]
42
42
  s.homepage = %q{http://github.com/hybridgroup/ticketmaster-trac}
43
43
  s.require_paths = ["lib"]
44
- s.rubygems_version = %q{1.6.0}
44
+ s.rubygems_version = %q{1.6.1}
45
45
  s.summary = %q{Ticketmaster Provider for Trac}
46
46
  s.test_files = [
47
47
  "spec/comments_spec.rb",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-trac
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
4
+ hash: 7
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 3
9
- - 5
10
- version: 0.3.5
8
+ - 4
9
+ - 4
10
+ version: 0.4.4
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-24 00:00:00 +00:00
18
+ date: 2011-06-06 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -187,7 +187,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
187
187
  requirements: []
188
188
 
189
189
  rubyforge_project:
190
- rubygems_version: 1.6.0
190
+ rubygems_version: 1.6.1
191
191
  signing_key:
192
192
  specification_version: 3
193
193
  summary: Ticketmaster Provider for Trac