ticketmaster-fogbugz 0.0.1 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.1
1
+ 0.1.1
@@ -21,12 +21,16 @@ module TicketMaster::Provider
21
21
  if auth[:email].nil? || auth[:password].nil? || auth[:uri].nil?
22
22
  raise "Please provide email, password and uri"
23
23
  end
24
- @fogbugz = ::Fogbugz::Interface.new(auth)
25
- @fogbugz.authenticate
26
- TicketMaster::Provider::Fogbugz.api = @fogbugz
24
+ begin
25
+ @fogbugz = ::Fogbugz::Interface.new(auth)
26
+ TicketMaster::Provider::Fogbugz.api = @fogbugz
27
+ @fogbugz.authenticate
28
+ rescue Exception => ex
29
+ warn "There was a problem authenticaticating #{ex.message}"
30
+ end
27
31
  end
28
32
  # declare needed overloaded methods here
29
-
33
+
30
34
  def projects(*options)
31
35
  Project.find(options)
32
36
  end
@@ -38,7 +42,16 @@ module TicketMaster::Provider
38
42
  Project.find_by_id(options.first)
39
43
  end
40
44
  end
41
-
45
+
46
+ def valid?
47
+ begin
48
+ @fogbugz.command(:search, :q => 'case')
49
+ true
50
+ rescue
51
+ false
52
+ end
53
+ end
54
+
42
55
  end
43
56
  end
44
57
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-fogbugz}
8
- s.version = "0.0.1"
8
+ s.version = "0.1.1"
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-06-07}
12
+ s.date = %q{2011-06-10}
13
13
  s.description = %q{Ticketmaster provider for Fogbugz}
14
14
  s.email = %q{rafael@hybridgroup.com}
15
15
  s.extra_rdoc_files = [
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-fogbugz
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
- - 0
9
8
  - 1
10
- version: 0.0.1
9
+ - 1
10
+ version: 0.1.1
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-06-07 00:00:00 -04:00
18
+ date: 2011-06-10 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency