ticketmaster 0.5.1 → 0.5.2
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +1 -1
- data/VERSION +1 -1
- data/lib/ticketmaster/cli/commands/project.rb +3 -3
- data/lib/ticketmaster/cli/commands/ticket.rb +8 -8
- data/ticketmaster.gemspec +2 -2
- metadata +4 -4
data/README.md
CHANGED
@@ -61,7 +61,7 @@ To retrieve all projects, simply pass no argument to find:
|
|
61
61
|
|
62
62
|
Now that we grabbed the right project. Let's go ahead and create a ticket at this project:
|
63
63
|
|
64
|
-
project.ticket
|
64
|
+
project.ticket!(:summary => "Test", :description => "Hello World")
|
65
65
|
|
66
66
|
We create our ticket with three properties.
|
67
67
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.2
|
@@ -83,7 +83,7 @@ end
|
|
83
83
|
# The read subcommand
|
84
84
|
def read(options)
|
85
85
|
tm = TicketMaster.new(options[:provider], options[:authentication])
|
86
|
-
project = tm.project.find(options[:project]
|
86
|
+
project = tm.project.find(options[:project])
|
87
87
|
read_project project
|
88
88
|
exit
|
89
89
|
end
|
@@ -91,7 +91,7 @@ end
|
|
91
91
|
# The update subcommand
|
92
92
|
def update(options)
|
93
93
|
tm = TicketMaster.new(options[:provider], options[:authentication])
|
94
|
-
project = tm.project.find(options[:project]
|
94
|
+
project = tm.project.find(options[:project])
|
95
95
|
if project.update!(options[:project_attributes])
|
96
96
|
puts "Successfully updated Project #{project.name} (#{project.id})"
|
97
97
|
else
|
@@ -104,7 +104,7 @@ end
|
|
104
104
|
# The destroy subcommand.
|
105
105
|
def destroy(options)
|
106
106
|
tm = TicketMaster.new(options[:provider], options[:authentication])
|
107
|
-
project = tm.project.find(options[:project]
|
107
|
+
project = tm.project.find(options[:project])
|
108
108
|
puts "Are you sure you want to delete Project #{project.name} (#{project.id})? (yes/no) [no]"
|
109
109
|
ARGV.clear
|
110
110
|
confirm = readline.chomp.downcase
|
@@ -76,7 +76,7 @@ end
|
|
76
76
|
# The create subcommand
|
77
77
|
def create(options)
|
78
78
|
tm = TicketMaster.new(options[:provider], options[:authentication])
|
79
|
-
ticket = tm.ticket.create(options[:ticket_attributes].merge({:project_id => options[:project]
|
79
|
+
ticket = tm.ticket.create(options[:ticket_attributes].merge({:project_id => options[:project]}))
|
80
80
|
read_ticket ticket
|
81
81
|
exit
|
82
82
|
end
|
@@ -84,8 +84,8 @@ end
|
|
84
84
|
# The read subcommand
|
85
85
|
def read(options)
|
86
86
|
tm = TicketMaster.new(options[:provider], options[:authentication])
|
87
|
-
project = tm.project(options[:project]
|
88
|
-
ticket = project.ticket(options[:ticket]
|
87
|
+
project = tm.project(options[:project])
|
88
|
+
ticket = project.ticket(options[:ticket])
|
89
89
|
read_ticket ticket
|
90
90
|
exit
|
91
91
|
end
|
@@ -93,8 +93,8 @@ end
|
|
93
93
|
# The update subcommand
|
94
94
|
def update(options)
|
95
95
|
tm = TicketMaster.new(options[:provider], options[:authentication])
|
96
|
-
project = tm.project(options[:project]
|
97
|
-
ticket = project.ticket(options[:ticket]
|
96
|
+
project = tm.project(options[:project])
|
97
|
+
ticket = project.ticket(options[:ticket])
|
98
98
|
if ticket.update!(options[:ticket_attributes])
|
99
99
|
puts "Successfully updated Ticket #{ticket.title} (#{ticket.id})"
|
100
100
|
else
|
@@ -107,8 +107,8 @@ end
|
|
107
107
|
# The destroy subcommand.
|
108
108
|
def destroy(options)
|
109
109
|
tm = TicketMaster.new(options[:provider], options[:authentication])
|
110
|
-
project = tm.project(options[:project]
|
111
|
-
ticket = project.ticket(options[:ticket]
|
110
|
+
project = tm.project(options[:project])
|
111
|
+
ticket = project.ticket(options[:ticket])
|
112
112
|
puts "Are you sure you want to delete Ticket #{ticket.title} (#{ticket.id})? (yes/no) [no]"
|
113
113
|
ARGV.clear
|
114
114
|
confirm = readline.chomp.downcase
|
@@ -126,7 +126,7 @@ end
|
|
126
126
|
# The search and list subcommands
|
127
127
|
def search(options)
|
128
128
|
tm = TicketMaster.new(options[:provider], options[:authentication])
|
129
|
-
project = tm.project(options[:project]
|
129
|
+
project = tm.project(options[:project])
|
130
130
|
tickets = project.tickets(options[:ticket_attributes])
|
131
131
|
puts "Found #{tickets.length} tickets"
|
132
132
|
tickets.each_with_index do |ticket, index|
|
data/ticketmaster.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ticketmaster}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.2"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["kiafaldorius", "Sirupsen", "deadprogrammer"]
|
12
|
-
s.date = %q{2010-
|
12
|
+
s.date = %q{2010-11-22}
|
13
13
|
s.default_executable = %q{tm}
|
14
14
|
s.description = %q{Ticketmaster provides a universal API to ticket tracking and project management systems.}
|
15
15
|
s.email = %q{info@hybridgroup.com}
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ticketmaster
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 15
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 2
|
10
|
+
version: 0.5.2
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- kiafaldorius
|
@@ -17,7 +17,7 @@ autorequire:
|
|
17
17
|
bindir: bin
|
18
18
|
cert_chain: []
|
19
19
|
|
20
|
-
date: 2010-
|
20
|
+
date: 2010-11-22 00:00:00 -08:00
|
21
21
|
default_executable: tm
|
22
22
|
dependencies:
|
23
23
|
- !ruby/object:Gem::Dependency
|