ticketmaster-unfuddle 0.3.1 → 0.3.2

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.1
1
+ 0.3.2
@@ -10,8 +10,11 @@ module TicketMaster::Provider
10
10
  # declare needed overloaded methods here
11
11
 
12
12
  def author
13
- @author ||= UnfuddleAPI::People.find(self.author_id)
14
- @author.username
13
+ @author ||= begin
14
+ UnfuddleAPI::People.find(self.author_id).username
15
+ rescue ActiveResource::UnauthorizedAccess
16
+ ''
17
+ end
15
18
  end
16
19
 
17
20
  def created_at
@@ -24,13 +24,19 @@ module TicketMaster::Provider
24
24
  end
25
25
 
26
26
  def assignee
27
- @assignee ||= UnfuddleAPI::People.find(self[:assignee_id])
28
- @assignee.username
27
+ @assignee ||= begin
28
+ UnfuddleAPI::People.find(self[:assignee_id]).username
29
+ rescue
30
+ ''
31
+ end
29
32
  end
30
33
 
31
34
  def requestor
32
- @requestor ||= UnfuddleAPI::People.find(self[:reporter_id])
33
- @requestor.username
35
+ @requestor ||= begin
36
+ UnfuddleAPI::People.find(self[:reporter_id]).user_name
37
+ rescue
38
+ ''
39
+ end
34
40
  end
35
41
 
36
42
  end
@@ -0,0 +1,82 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{ticketmaster-unfuddle}
8
+ s.version = "0.3.2"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Luis Hurtado"]
12
+ s.date = %q{2010-11-09}
13
+ s.description = %q{Unfuddle provider for ticketmaster implemented with ActiveResource}
14
+ s.email = %q{luis@hybridgroup.com}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.md",
18
+ "README.rdoc"
19
+ ]
20
+ s.files = [
21
+ ".document",
22
+ ".gitignore",
23
+ "LICENSE",
24
+ "README.md",
25
+ "README.rdoc",
26
+ "Rakefile",
27
+ "VERSION",
28
+ "lib/provider/comment.rb",
29
+ "lib/provider/project.rb",
30
+ "lib/provider/ticket.rb",
31
+ "lib/provider/unfuddle.rb",
32
+ "lib/ticketmaster-unfuddle.rb",
33
+ "lib/unfuddle/unfuddle-api.rb",
34
+ "spec/comments_spec.rb",
35
+ "spec/fixtures/comments.xml",
36
+ "spec/fixtures/comments/0.xml",
37
+ "spec/fixtures/comments/2.xml",
38
+ "spec/fixtures/comments/3.xml",
39
+ "spec/fixtures/comments/create.xml",
40
+ "spec/fixtures/projects.xml",
41
+ "spec/fixtures/projects/33041.xml",
42
+ "spec/fixtures/projects/33042.xml",
43
+ "spec/fixtures/projects/create.xml",
44
+ "spec/fixtures/tickets.xml",
45
+ "spec/fixtures/tickets/476814.xml",
46
+ "spec/fixtures/tickets/476816.xml",
47
+ "spec/fixtures/tickets/476834.xml",
48
+ "spec/fixtures/tickets/create.xml",
49
+ "spec/projects_spec.rb",
50
+ "spec/spec.opts",
51
+ "spec/spec_helper.rb",
52
+ "spec/ticketmaster-unfuddle_spec.rb",
53
+ "spec/tickets_spec.rb",
54
+ "ticketmaster-unfuddle.gemspec"
55
+ ]
56
+ s.homepage = %q{http://github.com/hybridgroup/ticketmaster-unfuddle}
57
+ s.rdoc_options = ["--charset=UTF-8"]
58
+ s.require_paths = ["lib"]
59
+ s.rubygems_version = %q{1.3.7}
60
+ s.summary = %q{The Unfuddle provider for ticketmaster.}
61
+ s.test_files = [
62
+ "spec/comments_spec.rb",
63
+ "spec/projects_spec.rb",
64
+ "spec/spec_helper.rb",
65
+ "spec/ticketmaster-unfuddle_spec.rb",
66
+ "spec/tickets_spec.rb"
67
+ ]
68
+
69
+ if s.respond_to? :specification_version then
70
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
71
+ s.specification_version = 3
72
+
73
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
74
+ s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
75
+ else
76
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
77
+ end
78
+ else
79
+ s.add_dependency(%q<rspec>, [">= 1.2.9"])
80
+ end
81
+ end
82
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-unfuddle
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 23
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 2
10
+ version: 0.3.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Luis Hurtado
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-11-02 00:00:00 -07:00
18
+ date: 2010-11-09 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -78,6 +78,7 @@ files:
78
78
  - spec/spec_helper.rb
79
79
  - spec/ticketmaster-unfuddle_spec.rb
80
80
  - spec/tickets_spec.rb
81
+ - ticketmaster-unfuddle.gemspec
81
82
  has_rdoc: true
82
83
  homepage: http://github.com/hybridgroup/ticketmaster-unfuddle
83
84
  licenses: []