ticketmaster-lighthouse 0.3.8 → 0.4.0

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/LICENSE CHANGED
@@ -1,4 +1,4 @@
1
- Copyright (c) 2009 HybridGroup
1
+ Copyright (c) 2009-2010 The Hybrid Group
2
2
 
3
3
  Permission is hereby granted, free of charge, to any person obtaining
4
4
  a copy of this software and associated documentation files (the
@@ -8,6 +8,8 @@ distribute, sublicense, and/or sell copies of the Software, and to
8
8
  permit persons to whom the Software is furnished to do so, subject to
9
9
  the following conditions:
10
10
 
11
+ NONE
12
+
11
13
  The above copyright notice and this permission notice shall be
12
14
  included in all copies or substantial portions of the Software.
13
15
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.8
1
+ 0.4.0
@@ -257,14 +257,14 @@ module LighthouseAPI
257
257
  attributes['body_html'] = value
258
258
  end
259
259
 
260
- def save_with_tags
261
- self.tag = @tags.collect do |tag|
262
- tag.include?(' ') ? tag.inspect : tag
263
- end.join(" ") if @tags.is_a?(Array)
264
- @tags = nil ; save_without_tags
265
- end
266
-
267
- alias_method_chain :save, :tags
260
+ # def save_with_tags
261
+ # self.tag = @tags.collect do |tag|
262
+ # tag.include?(' ') ? tag.inspect : tag
263
+ # end.join(" ") if @tags.is_a?(Array)
264
+ # @tags = nil ; save_without_tags
265
+ # end
266
+ #
267
+ # alias_method_chain :save, :tags
268
268
 
269
269
  private
270
270
  # taken from Lighthouse Tag code
@@ -45,23 +45,23 @@ module TicketMaster::Provider
45
45
  # This is to set the status, mapped to state
46
46
  def status=(stat)
47
47
  stat = state unless @@allowed_states.include?(stat)
48
- state = stat
48
+ self.state = stat
49
49
  end
50
50
 
51
51
  # Get the resolution, mapped to latest_body
52
52
  def resolution
53
- latest_body
53
+ self.latest_body
54
54
  end
55
55
 
56
56
  # Set the resolution...also sets state to resolved
57
57
  def resolution=(res)
58
58
  state = 'resolved'
59
- body = res
59
+ self.body = res
60
60
  end
61
61
 
62
62
  # Get the description, mapped to original_body
63
63
  def description
64
- original_body
64
+ self.original_body
65
65
  end
66
66
 
67
67
  # Set the description, mapped to body, which actually does a comment
@@ -71,12 +71,12 @@ module TicketMaster::Provider
71
71
 
72
72
  # Get the assigned person's name
73
73
  def assignee
74
- assigned_user_name
74
+ self.assigned_user_name
75
75
  end
76
76
 
77
77
  # Get the requestor's name
78
78
  def requestor
79
- creator_name
79
+ self.creator_name
80
80
  end
81
81
 
82
82
  # Get the project id
@@ -101,10 +101,10 @@ module TicketMaster::Provider
101
101
 
102
102
  # Gotta unset the body attribute...otherwise every save ends up using that body
103
103
  def save
104
- tag = @tags.reduce([]) do |mem, t|
105
- t = "\"#{t}\"" if t.include?(' ')
106
- mem << t
107
- end.join(' ') if @tags
104
+ # self.tag = @tags.reduce([]) do |mem, t|
105
+ # t = "\"#{t}\"" if t.include?(' ')
106
+ # mem << t
107
+ # end.join(' ') if @tags
108
108
  result = super
109
109
  body = nil
110
110
  @system_data[:client].body = nil
data/spec/tickets_spec.rb CHANGED
@@ -59,7 +59,11 @@ describe "Ticketmaster::Provider::Lighthouse::Ticket" do
59
59
  @ticket = @project.ticket(5)
60
60
  @ticket.save.should == nil
61
61
  @ticket.description = 'hello'
62
+ begin
62
63
  @ticket.save.should == true
64
+ rescue Exception => e
65
+ raise e.backtrace.join("\n")
66
+ end
63
67
  end
64
68
 
65
69
  it "should be able to create a ticket" do
@@ -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.8"
8
+ s.version = "0.4.0"
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-08}
12
+ s.date = %q{2010-10-18}
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: 3
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 3
9
- - 8
10
- version: 0.3.8
8
+ - 4
9
+ - 0
10
+ version: 0.4.0
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-08 00:00:00 -07:00
18
+ date: 2010-10-18 00:00:00 -07:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency