ticketmaster-lighthouse 0.3.1 → 0.3.3

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 CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.3
@@ -41,6 +41,18 @@ module TicketMaster::Provider
41
41
  result
42
42
  end
43
43
 
44
+ def self.create(*options)
45
+ attributes = options.first
46
+ ticket_id = attributes.delete(:ticket_id) || attributes.delete('ticket_id')
47
+ project_id = attributes.delete(:project_id) || attributes.delete('project_id')
48
+ ticket = self::API.find(ticket_id, :params => {:project_id => project_id})
49
+ attributes.each do |k, v|
50
+ ticket.send("#{k}=", v)
51
+ end
52
+ ticket.save
53
+ self.find_by_id project_id, ticket_id, ticket.versions.length
54
+ end
55
+
44
56
  def initialize(ticket, id)
45
57
  @system_data ||= {}
46
58
  @system_data[:ticket] = @system_data[:client] = ticket
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-lighthouse}
8
- s.version = "0.3.1"
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 = ["Hong"]
12
- s.date = %q{2010-07-03}
12
+ s.date = %q{2010-07-05}
13
13
  s.description = %q{Allows ticketmaster to interact with Lighthouse's issue tracking system.}
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-lighthouse
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 1
10
- version: 0.3.1
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Hong
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-03 00:00:00 -07:00
18
+ date: 2010-07-05 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency