ticketmaster-bugzilla 0.0.3 → 0.0.4
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 +1 -1
- data/lib/provider/comment.rb +4 -0
- data/lib/provider/ticket.rb +45 -27
- data/lib/ticketmaster-bugzilla.rb +1 -1
- data/ticketmaster-bugzilla.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.4
|
data/lib/provider/comment.rb
CHANGED
data/lib/provider/ticket.rb
CHANGED
@@ -7,33 +7,51 @@ module TicketMaster::Provider
|
|
7
7
|
# declare needed overloaded methods here
|
8
8
|
TICKETS_API = Rubyzilla::Product
|
9
9
|
def initialize(*object)
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
16
|
-
|
17
|
-
|
18
|
-
|
19
|
-
|
20
|
-
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
10
|
+
if object.first
|
11
|
+
object = object.first
|
12
|
+
unless object.is_a? Hash
|
13
|
+
@system_data = {:client => object}
|
14
|
+
hash = {:product_id => object.product_id,
|
15
|
+
:id => object.id,
|
16
|
+
:project_id => object.product_id,
|
17
|
+
:component_id => object.component_id,
|
18
|
+
:summary => object.summary,
|
19
|
+
:title => object.summary,
|
20
|
+
:version => object.version,
|
21
|
+
:op_sys => object.op_sys,
|
22
|
+
:platform => object.platform,
|
23
|
+
:priority => object.priority,
|
24
|
+
:description => object.description,
|
25
|
+
:alias => object.alias,
|
26
|
+
:qa_contact => object.qa_contact,
|
27
|
+
:assignee => object.assigned_to,
|
28
|
+
:requestor => object.qa_contact,
|
29
|
+
:status => object.status,
|
30
|
+
:target_milestone => object.target_milestone,
|
31
|
+
:severity => object.severity,
|
32
|
+
:created_at => nil,
|
33
|
+
:updated_at => nil}
|
34
|
+
else
|
35
|
+
hash = object
|
36
|
+
end
|
37
|
+
super hash
|
35
38
|
end
|
36
|
-
|
39
|
+
end
|
40
|
+
|
41
|
+
def title
|
42
|
+
self[:summary]
|
43
|
+
end
|
44
|
+
|
45
|
+
def description
|
46
|
+
self[:description]
|
47
|
+
end
|
48
|
+
|
49
|
+
def requestor
|
50
|
+
self[:requestor]
|
51
|
+
end
|
52
|
+
|
53
|
+
def assignee
|
54
|
+
self[:assignee]
|
37
55
|
end
|
38
56
|
|
39
57
|
def created_at
|
@@ -84,7 +102,7 @@ module TicketMaster::Provider
|
|
84
102
|
end
|
85
103
|
|
86
104
|
def comment(*options)
|
87
|
-
|
105
|
+
Comment.find_by_id(self.id, options.first)
|
88
106
|
end
|
89
107
|
|
90
108
|
private
|
@@ -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.
|
8
|
+
s.version = "0.0.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-02-
|
12
|
+
s.date = %q{2011-02-17}
|
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 = [
|
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:
|
4
|
+
hash: 23
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 4
|
10
|
+
version: 0.0.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-02-
|
18
|
+
date: 2011-02-17 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|