ticketmaster-zendesk 0.2.2 → 0.2.3

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.2
1
+ 0.2.3
@@ -8,6 +8,8 @@ module TicketMaster::Provider
8
8
  class Comment < TicketMaster::Provider::Base::Comment
9
9
  # declare needed overloaded methods here
10
10
 
11
+ USER_API = ZendeskAPI::User
12
+
11
13
  def initialize(*object)
12
14
  return super(object.first) if object.first.is_a? Hash
13
15
  if object.first
@@ -57,6 +59,7 @@ module TicketMaster::Provider
57
59
  comment_id = 0
58
60
  ZendeskAPI::Ticket.find(ticket_id).comments.collect do |comment|
59
61
  comment_id += 1
62
+ comment.author_id = USER_API.find(comment.author_id).email
60
63
  Comment.new [ticket_id, project_id, comment_id, comment]
61
64
  end
62
65
  end
@@ -8,6 +8,8 @@ describe "Ticketmaster::Provider::Zendesk::Comment" do
8
8
  headers = {'Authorization' => 'Basic cmFmYWVsQGh5YnJpZGdyb3VwLmNvbToxMjM0NTY=','Accept' => 'application/json'}
9
9
  ActiveResource::HttpMock.respond_to do |mock|
10
10
  mock.get '/tickets/1.json', headers, fixture_for('ticket','json'), 200
11
+ mock.get '/users/26218414.json', headers, fixture_for('users/55030073', 'json'), 200
12
+ mock.get '/users/26220353.json', headers, fixture_for('users/55030073', 'json'), 200
11
13
  end
12
14
  end
13
15
 
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-zendesk}
8
- s.version = "0.2.2"
8
+ s.version = "0.2.3"
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-04-28}
12
+ s.date = %q{2011-05-02}
13
13
  s.description = %q{Allows ticketmaster to interact with Your System.}
14
14
  s.email = %q{george.rafael@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -49,7 +49,7 @@ Gem::Specification.new do |s|
49
49
  ]
50
50
  s.homepage = %q{http://bandw.tumblr.com}
51
51
  s.require_paths = ["lib"]
52
- s.rubygems_version = %q{1.6.0}
52
+ s.rubygems_version = %q{1.6.1}
53
53
  s.summary = %q{Ticketmaster Provider for Zendesk}
54
54
  s.test_files = [
55
55
  "spec/comments_spec.rb",
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-zendesk
3
3
  version: !ruby/object:Gem::Version
4
- hash: 19
4
+ hash: 17
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 2
10
- version: 0.2.2
9
+ - 3
10
+ version: 0.2.3
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-04-28 00:00:00 +00:00
18
+ date: 2011-05-02 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -181,7 +181,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
181
181
  requirements: []
182
182
 
183
183
  rubyforge_project:
184
- rubygems_version: 1.6.0
184
+ rubygems_version: 1.6.1
185
185
  signing_key:
186
186
  specification_version: 3
187
187
  summary: Ticketmaster Provider for Zendesk