ticketmaster-pivotal 0.3.0 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/lib/provider/project.rb +12 -1
- data/lib/provider/ticket.rb +27 -0
- data/ticketmaster-pivotal.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.3
|
data/lib/provider/project.rb
CHANGED
@@ -28,7 +28,18 @@ module TicketMaster::Provider
|
|
28
28
|
result = self.system_data[:client].destroy
|
29
29
|
result.is_a?(Net::HTTPOK)
|
30
30
|
end
|
31
|
-
|
31
|
+
|
32
|
+
# copy from
|
33
|
+
def copy(project)
|
34
|
+
project.tickets.each do |ticket|
|
35
|
+
copy_ticket = self.ticket!(:name => ticket.title, :description => ticket.description)
|
36
|
+
ticket.comments.each do |comment|
|
37
|
+
copy_ticket.comment!(:text => comment.body)
|
38
|
+
sleep 1
|
39
|
+
end
|
40
|
+
end
|
41
|
+
end
|
42
|
+
|
32
43
|
end
|
33
44
|
end
|
34
45
|
end
|
data/lib/provider/ticket.rb
CHANGED
@@ -1,6 +1,17 @@
|
|
1
1
|
module TicketMaster::Provider
|
2
2
|
module Pivotal
|
3
3
|
# Ticket class for ticketmaster-pivotal
|
4
|
+
# * id
|
5
|
+
# * status
|
6
|
+
# * priority
|
7
|
+
# * title => name
|
8
|
+
# * resolution
|
9
|
+
# * created_at
|
10
|
+
# * updated_at
|
11
|
+
# * description => text
|
12
|
+
# * assignee
|
13
|
+
# * requestor
|
14
|
+
# * project_id (prefix_options[:project_id])
|
4
15
|
class Ticket < TicketMaster::Provider::Base::Ticket
|
5
16
|
@@allowed_states = ['new', 'open', 'resolved', 'hold', 'invalid']
|
6
17
|
attr_accessor :prefix_options
|
@@ -24,6 +35,22 @@ module TicketMaster::Provider
|
|
24
35
|
self.prefix_options[:project_id]
|
25
36
|
end
|
26
37
|
|
38
|
+
def title
|
39
|
+
self.name
|
40
|
+
end
|
41
|
+
|
42
|
+
def title=(title)
|
43
|
+
self.name=title
|
44
|
+
end
|
45
|
+
|
46
|
+
def description
|
47
|
+
self.text
|
48
|
+
end
|
49
|
+
|
50
|
+
def description=(desc)
|
51
|
+
self.text=desc
|
52
|
+
end
|
53
|
+
|
27
54
|
# The closer
|
28
55
|
def close(resolution = 'resolved')
|
29
56
|
resolution = 'resolved' unless @@allowed_states.include?(resolution)
|
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ticketmaster-pivotal}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["HybridGroup"]
|
12
|
-
s.date = %q{2010-07-
|
12
|
+
s.date = %q{2010-07-06}
|
13
13
|
s.description = %q{This is a ticketmaster provider for interacting with Pivotal Tracker .}
|
14
14
|
s.email = %q{hong.quach@abigfisch.com}
|
15
15
|
s.extra_rdoc_files = [
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ticketmaster-pivotal
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 21
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 3
|
10
|
+
version: 0.3.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- HybridGroup
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-07-
|
18
|
+
date: 2010-07-06 00:00:00 -07:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|