ticketmaster 0.3.3 → 0.3.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/bin/{ticket → tm} +0 -0
- data/lib/ticketmaster/cli/commands/ticket.rb +8 -4
- data/ticketmaster.gemspec +4 -4
- metadata +6 -6
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.4
|
data/bin/{ticket → tm}
RENAMED
File without changes
|
@@ -79,7 +79,8 @@ end
|
|
79
79
|
# The read subcommand
|
80
80
|
def read(options)
|
81
81
|
tm = TicketMaster.new(options[:provider], options[:authentication])
|
82
|
-
|
82
|
+
project = tm.project(options[:project].to_i)
|
83
|
+
ticket = project.ticket(options[:ticket].to_i)
|
83
84
|
read_ticket ticket
|
84
85
|
exit
|
85
86
|
end
|
@@ -87,7 +88,8 @@ end
|
|
87
88
|
# The update subcommand
|
88
89
|
def update(options)
|
89
90
|
tm = TicketMaster.new(options[:provider], options[:authentication])
|
90
|
-
|
91
|
+
project = tm.project(options[:project].to_i)
|
92
|
+
ticket = project.ticket(options[:ticket].to_i)
|
91
93
|
if ticket.update!(options[:ticket_attributes])
|
92
94
|
puts "Successfully updated Ticket #{ticket.title} (#{ticket.id})"
|
93
95
|
else
|
@@ -100,7 +102,8 @@ end
|
|
100
102
|
# The destroy subcommand.
|
101
103
|
def destroy(options)
|
102
104
|
tm = TicketMaster.new(options[:provider], options[:authentication])
|
103
|
-
|
105
|
+
project = tm.project(options[:project].to_i)
|
106
|
+
ticket = project.ticket(options[:ticket].to_i)
|
104
107
|
puts "Are you sure you want to delete Ticket #{ticket.title} (#{ticket.id})? (yes/no) [no]"
|
105
108
|
ARGV.clear
|
106
109
|
confirm = readline.chomp.downcase
|
@@ -118,7 +121,8 @@ end
|
|
118
121
|
# The search and list subcommands
|
119
122
|
def search(options)
|
120
123
|
tm = TicketMaster.new(options[:provider], options[:authentication])
|
121
|
-
|
124
|
+
project = tm.project(options[:project].to_i)
|
125
|
+
tickets = project.tickets(options[:ticket_attributes])
|
122
126
|
puts "Found #{tickets.length} tickets"
|
123
127
|
tickets.each_with_index do |ticket, index|
|
124
128
|
puts "#{index+1}) Ticket #{ticket.title} (#{ticket.id})"
|
data/ticketmaster.gemspec
CHANGED
@@ -5,15 +5,15 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{ticketmaster}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.4"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Sirupsen", "deadprogrammer"]
|
12
12
|
s.date = %q{2010-07-07}
|
13
|
-
s.default_executable = %q{
|
13
|
+
s.default_executable = %q{tm}
|
14
14
|
s.description = %q{Ticketmaster provides a universal API to trouble ticket and project management systems.}
|
15
15
|
s.email = %q{simon@hybridgroup.com}
|
16
|
-
s.executables = ["
|
16
|
+
s.executables = ["tm"]
|
17
17
|
s.extra_rdoc_files = [
|
18
18
|
"LICENSE",
|
19
19
|
"README.md",
|
@@ -28,7 +28,7 @@ Gem::Specification.new do |s|
|
|
28
28
|
"Rakefile",
|
29
29
|
"TODO",
|
30
30
|
"VERSION",
|
31
|
-
"bin/
|
31
|
+
"bin/tm",
|
32
32
|
"lib/ticketmaster.rb",
|
33
33
|
"lib/ticketmaster/authenticator.rb",
|
34
34
|
"lib/ticketmaster/cli/commands/config.rb",
|
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: 27
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 3
|
9
|
-
-
|
10
|
-
version: 0.3.
|
9
|
+
- 4
|
10
|
+
version: 0.3.4
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Sirupsen
|
@@ -17,7 +17,7 @@ bindir: bin
|
|
17
17
|
cert_chain: []
|
18
18
|
|
19
19
|
date: 2010-07-07 00:00:00 -07:00
|
20
|
-
default_executable:
|
20
|
+
default_executable: tm
|
21
21
|
dependencies:
|
22
22
|
- !ruby/object:Gem::Dependency
|
23
23
|
name: hashie
|
@@ -64,7 +64,7 @@ dependencies:
|
|
64
64
|
description: Ticketmaster provides a universal API to trouble ticket and project management systems.
|
65
65
|
email: simon@hybridgroup.com
|
66
66
|
executables:
|
67
|
-
-
|
67
|
+
- tm
|
68
68
|
extensions: []
|
69
69
|
|
70
70
|
extra_rdoc_files:
|
@@ -80,7 +80,7 @@ files:
|
|
80
80
|
- Rakefile
|
81
81
|
- TODO
|
82
82
|
- VERSION
|
83
|
-
- bin/
|
83
|
+
- bin/tm
|
84
84
|
- lib/ticketmaster.rb
|
85
85
|
- lib/ticketmaster/authenticator.rb
|
86
86
|
- lib/ticketmaster/cli/commands/config.rb
|