ticketmaster 0.3.8 → 0.3.9

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.8
1
+ 0.3.9
@@ -4,17 +4,21 @@ require 'ticketmaster-pivotal'
4
4
  require 'ticketmaster-lighthouse'
5
5
 
6
6
  # copy all tickets and comments from pivotal tracker to new lighthouse project
7
+ puts "Copy started..."
7
8
  pivotal = TicketMaster.new(:pivotal)
8
9
  pivotal_project = pivotal.project(97107)
9
10
  lighthouse = TicketMaster.new(:lighthouse)
11
+ puts "Creating new project in Lighthouse..."
10
12
  lighthouse_project = lighthouse.project!(:name => "Copy Test on #{Time.now}", :description => "A copy test")
11
13
 
12
14
  pivotal_project.tickets.each do |pivotal_ticket|
13
- puts pivotal_ticket.title, pivotal_ticket.description
15
+ puts "Copying ticket '#{pivotal_ticket.title}'..."
14
16
 
15
- lighthouse_ticket = lighthouse_project.ticket!({:title => pivotal_ticket.title, :description => pivotal_ticket.description})
17
+ lighthouse_ticket = lighthouse_project.ticket!({:title => pivotal_ticket.title,
18
+ :description => pivotal_ticket.description})
16
19
  pivotal_ticket.comments.each do |comment|
17
- lighthouse_ticket.comment!(:text => comment.body)
20
+ lighthouse_ticket.comment!(:body => comment.body)
18
21
  end
19
22
  end
23
+ puts "Copy finished."
20
24
 
@@ -122,8 +122,8 @@ def search(options)
122
122
  puts "Found #{projects.length} projects"
123
123
  projects.each_with_index do |project, index|
124
124
  puts "#{index+1}) Project #{project.name} (#{project.id})"
125
- read_project project
126
- puts
125
+ #read_project project
126
+ #puts
127
127
  end
128
128
  exit
129
129
  end
@@ -126,8 +126,8 @@ def search(options)
126
126
  puts "Found #{tickets.length} tickets"
127
127
  tickets.each_with_index do |ticket, index|
128
128
  puts "#{index+1}) Ticket #{ticket.title} (#{ticket.id})"
129
- read_ticket ticket
130
- puts
129
+ #read_ticket ticket
130
+ #puts
131
131
  end
132
132
  exit
133
133
  end
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.3.8"
8
+ s.version = "0.3.9"
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-07-12}
12
+ s.date = %q{2010-07-13}
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: 3
4
+ hash: 1
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 8
10
- version: 0.3.8
9
+ - 9
10
+ version: 0.3.9
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-07-12 00:00:00 -07:00
20
+ date: 2010-07-13 00:00:00 -07:00
21
21
  default_executable: tm
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency