ticketmaster-unfuddle 0.3.0 → 0.3.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 +1 -1
- data/lib/provider/comment.rb +21 -0
- data/lib/provider/project.rb +11 -0
- data/lib/provider/ticket.rb +26 -0
- data/lib/unfuddle/unfuddle-api.rb +3 -0
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.1
|
data/lib/provider/comment.rb
CHANGED
@@ -9,6 +9,27 @@ module TicketMaster::Provider
|
|
9
9
|
API = UnfuddleAPI::Comment # The class to access the api's comments
|
10
10
|
# declare needed overloaded methods here
|
11
11
|
|
12
|
+
def author
|
13
|
+
@author ||= UnfuddleAPI::People.find(self.author_id)
|
14
|
+
@author.username
|
15
|
+
end
|
16
|
+
|
17
|
+
def created_at
|
18
|
+
@created_at ||= self[:created_at] ? Time.parse(self[:created_at]) : nil
|
19
|
+
end
|
20
|
+
|
21
|
+
def updated_at
|
22
|
+
@updated_at ||= self[:updated_at] ? Time.parse(self[:updated_at]) : nil
|
23
|
+
end
|
24
|
+
|
25
|
+
def project_id
|
26
|
+
self.prefix_options[:project_id]
|
27
|
+
end
|
28
|
+
|
29
|
+
def ticket_id
|
30
|
+
self.prefix_options[:ticket_id]
|
31
|
+
end
|
32
|
+
|
12
33
|
end
|
13
34
|
end
|
14
35
|
end
|
data/lib/provider/project.rb
CHANGED
@@ -7,6 +7,17 @@ module TicketMaster::Provider
|
|
7
7
|
API = UnfuddleAPI::Project # The class to access the api's projects
|
8
8
|
# declare needed overloaded methods here
|
9
9
|
|
10
|
+
def name
|
11
|
+
self.title
|
12
|
+
end
|
13
|
+
|
14
|
+
def created_at
|
15
|
+
@created_at ||= self[:created_at] ? Time.parse(self[:created_at]) : nil
|
16
|
+
end
|
17
|
+
|
18
|
+
def updated_at
|
19
|
+
@updated_at ||= self[:updated_at] ? Time.parse(self[:updated_at]) : nil
|
20
|
+
end
|
10
21
|
|
11
22
|
# copy from this.copy(that) copies that into this
|
12
23
|
def copy(project)
|
data/lib/provider/ticket.rb
CHANGED
@@ -7,6 +7,32 @@ module TicketMaster::Provider
|
|
7
7
|
API = UnfuddleAPI::Ticket # The class to access the api's tickets
|
8
8
|
# declare needed overloaded methods here
|
9
9
|
|
10
|
+
def title
|
11
|
+
self.summary
|
12
|
+
end
|
13
|
+
|
14
|
+
def created_at
|
15
|
+
@created_at ||= self[:created_at] ? Time.parse(self[:created_at]) : nil
|
16
|
+
end
|
17
|
+
|
18
|
+
def updated_at
|
19
|
+
@updated_at ||= self[:updated_at] ? Time.parse(self[:updated_at]) : nil
|
20
|
+
end
|
21
|
+
|
22
|
+
def project_id
|
23
|
+
self.prefix_options[:project_id]
|
24
|
+
end
|
25
|
+
|
26
|
+
def assignee
|
27
|
+
@assignee ||= UnfuddleAPI::People.find(self[:assignee_id])
|
28
|
+
@assignee.username
|
29
|
+
end
|
30
|
+
|
31
|
+
def requestor
|
32
|
+
@requestor ||= UnfuddleAPI::People.find(self[:reporter_id])
|
33
|
+
@requestor.username
|
34
|
+
end
|
35
|
+
|
10
36
|
end
|
11
37
|
end
|
12
38
|
end
|
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:
|
4
|
+
hash: 17
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 1
|
10
|
+
version: 0.3.1
|
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-
|
18
|
+
date: 2010-11-02 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|