ticketmaster-codaset 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
data/Gemfile CHANGED
@@ -1,11 +1,11 @@
1
1
  source "http://rubygems.org"
2
2
 
3
- gem 'ticketmaster', '0.5.2'
4
- gem 'oauth2'
3
+ gem "ticketmaster", "0.5.2"
4
+ gem "oauth2"
5
5
 
6
6
  group :development do
7
7
  gem "rspec", ">= 1.2.9"
8
8
  gem "bundler", "~> 1.0.0"
9
9
  gem "jeweler", "~> 1.5.1"
10
10
  gem "rcov", ">= 0"
11
- end
11
+ end
data/Rakefile CHANGED
@@ -13,14 +13,11 @@ require 'jeweler'
13
13
  Jeweler::Tasks.new do |gem|
14
14
  # gem is a Gem::Specification... see http://docs.rubygems.org/read/chapter/20 for more options
15
15
  gem.name = "ticketmaster-codaset"
16
- gem.homepage = "http://github.com/hybridgroup/ticketmaster-codaset"
17
- gem.license = "MIT"
18
- gem.summary = %Q{The codaset provider for ticketmaster}
16
+ gem.homepage = "http://ticket.rb"
17
+ gem.summary = %Q{This is a ticketmaster provider for interacting with Codaset}
19
18
  gem.description = %Q{Allows ticketmaster to interact with Codaset.}
20
19
  gem.email = "ana@hybridgroup.com"
21
- gem.authors = ["anymoto"]
22
- gem.add_development_dependency "rspec", ">= 1.2.9"
23
- gem.add_dependency "ticketmaster", "0.5.2"
20
+ gem.authors = ["HybridGroup"]
24
21
  gem.add_dependency "activesupport", ">= 2.3.0"
25
22
  gem.add_dependency "activeresource", ">= 2.3.0"
26
23
  end
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.2
1
+ 0.1.3
data/changelog.txt CHANGED
@@ -2,4 +2,7 @@ Version 0.1.1
2
2
  update dependencies version
3
3
 
4
4
  Version 0.1.2
5
- delete duplicated dependencies
5
+ delete duplicated dependencies
6
+
7
+ Version 0.1.3
8
+ Ticket attributes updated
@@ -162,7 +162,6 @@ module CodasetAPI
162
162
  #end monkey patches
163
163
 
164
164
  def tickets(options = {})
165
- puts 'tickets (codaset-api)'
166
165
  Ticket.find(:all, :params => options.update(:slug => slug))
167
166
  end
168
167
 
@@ -1,7 +1,6 @@
1
1
  module TicketMaster::Provider
2
2
  module Codaset
3
3
  # Ticket class for ticketmaster-codaset
4
- # * project_id (prefix_options[:project_id])
5
4
 
6
5
  API = CodasetAPI::Ticket # The class to access the api's tickets
7
6
 
@@ -12,16 +11,18 @@ module TicketMaster::Provider
12
11
 
13
12
  def initialize(*object)
14
13
  if object.first
15
- object = object.first
14
+ args = object
15
+ object = args.shift
16
+ project_id = args.shift
16
17
  @system_data = {:client => object}
17
18
  unless object.is_a? Hash
18
19
  hash = {:id => object.id,
19
20
  :title => object.title,
20
21
  :description => object.description,
21
22
  :status => object.state,
22
- :priority => object.custom_data.Priority,
23
- :assignee => object.assigned_to.title,
24
- :requestor => object.reported_by.title}
23
+ :created_at => object.created_at,
24
+ :updated_at => object.updated_at,
25
+ :project_id => project_id}
25
26
  else
26
27
  hash = object
27
28
  end
@@ -29,8 +30,10 @@ module TicketMaster::Provider
29
30
  end
30
31
  end
31
32
 
32
- def self.create(*options)
33
- issue = API.new(options.first.merge!(:state => 'new'))
33
+ def self.create(*options)
34
+ issue = API.new(options.first.merge!(:state => 'new',
35
+ :created_at => Time.now,
36
+ :updated_at => Time.now))
34
37
  ticket = self.new issue
35
38
  issue.save
36
39
  ticket
@@ -41,7 +44,7 @@ module TicketMaster::Provider
41
44
  end
42
45
 
43
46
  def self.search(project_id, options = {}, limit = 1000)
44
- tickets = API.find(:all, :params => {:slug => project_id}).collect { |ticket| self.new ticket}
47
+ tickets = API.find(:all, :params => {:slug => project_id}).collect { |ticket| self.new ticket, project_id }
45
48
  search_by_attribute(tickets, options, limit)
46
49
  end
47
50
 
@@ -49,6 +52,10 @@ module TicketMaster::Provider
49
52
  self.search(project_id, attributes)
50
53
  end
51
54
 
55
+ def project_id
56
+ self[:project_id]
57
+ end
58
+
52
59
  def created_at
53
60
  @created_at ||= self[:created_at] ? Time.parse(self[:created_at]) : nil
54
61
  end
@@ -65,10 +72,6 @@ module TicketMaster::Provider
65
72
  self[:status]
66
73
  end
67
74
 
68
- def priority
69
- self[:priority]
70
- end
71
-
72
75
  def title
73
76
  self[:title]
74
77
  end
@@ -77,14 +80,6 @@ module TicketMaster::Provider
77
80
  self[:description]
78
81
  end
79
82
 
80
- def assignee
81
- self[:assignee]
82
- end
83
-
84
- def requestor
85
- self[:requestor]
86
- end
87
-
88
83
  def comments
89
84
  warn 'Comments not supported. Perhaps you should leave feedback to request it?'
90
85
  []
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-codaset}
8
- s.version = "0.1.2"
8
+ s.version = "0.1.3"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
- s.authors = ["anymoto"]
12
- s.date = %q{2011-01-17}
11
+ s.authors = ["HybridGroup"]
12
+ s.date = %q{2011-01-24}
13
13
  s.description = %q{Allows ticketmaster to interact with Codaset.}
14
14
  s.email = %q{ana@hybridgroup.com}
15
15
  s.extra_rdoc_files = [
@@ -50,11 +50,10 @@ Gem::Specification.new do |s|
50
50
  "spec/tickets_spec.rb",
51
51
  "ticketmaster-codaset.gemspec"
52
52
  ]
53
- s.homepage = %q{http://github.com/hybridgroup/ticketmaster-codaset}
54
- s.licenses = ["MIT"]
53
+ s.homepage = %q{http://ticket.rb}
55
54
  s.require_paths = ["lib"]
56
55
  s.rubygems_version = %q{1.4.2}
57
- s.summary = %q{The codaset provider for ticketmaster}
56
+ s.summary = %q{This is a ticketmaster provider for interacting with Codaset}
58
57
  s.test_files = [
59
58
  "spec/comments_spec.rb",
60
59
  "spec/projects_spec.rb",
@@ -73,8 +72,6 @@ Gem::Specification.new do |s|
73
72
  s.add_development_dependency(%q<bundler>, ["~> 1.0.0"])
74
73
  s.add_development_dependency(%q<jeweler>, ["~> 1.5.1"])
75
74
  s.add_development_dependency(%q<rcov>, [">= 0"])
76
- s.add_development_dependency(%q<rspec>, [">= 1.2.9"])
77
- s.add_runtime_dependency(%q<ticketmaster>, ["= 0.5.2"])
78
75
  s.add_runtime_dependency(%q<activesupport>, [">= 2.3.0"])
79
76
  s.add_runtime_dependency(%q<activeresource>, [">= 2.3.0"])
80
77
  else
@@ -84,8 +81,6 @@ Gem::Specification.new do |s|
84
81
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
85
82
  s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
86
83
  s.add_dependency(%q<rcov>, [">= 0"])
87
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
88
- s.add_dependency(%q<ticketmaster>, ["= 0.5.2"])
89
84
  s.add_dependency(%q<activesupport>, [">= 2.3.0"])
90
85
  s.add_dependency(%q<activeresource>, [">= 2.3.0"])
91
86
  end
@@ -96,8 +91,6 @@ Gem::Specification.new do |s|
96
91
  s.add_dependency(%q<bundler>, ["~> 1.0.0"])
97
92
  s.add_dependency(%q<jeweler>, ["~> 1.5.1"])
98
93
  s.add_dependency(%q<rcov>, [">= 0"])
99
- s.add_dependency(%q<rspec>, [">= 1.2.9"])
100
- s.add_dependency(%q<ticketmaster>, ["= 0.5.2"])
101
94
  s.add_dependency(%q<activesupport>, [">= 2.3.0"])
102
95
  s.add_dependency(%q<activeresource>, [">= 2.3.0"])
103
96
  end
metadata CHANGED
@@ -1,21 +1,21 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-codaset
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
- - anymoto
13
+ - HybridGroup
14
14
  autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-17 00:00:00 -06:00
18
+ date: 2011-01-24 00:00:00 -06:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -110,43 +110,11 @@ dependencies:
110
110
  - 0
111
111
  version: "0"
112
112
  requirement: *id006
113
- - !ruby/object:Gem::Dependency
114
- prerelease: false
115
- name: rspec
116
- type: :development
117
- version_requirements: &id007 !ruby/object:Gem::Requirement
118
- none: false
119
- requirements:
120
- - - ">="
121
- - !ruby/object:Gem::Version
122
- hash: 13
123
- segments:
124
- - 1
125
- - 2
126
- - 9
127
- version: 1.2.9
128
- requirement: *id007
129
- - !ruby/object:Gem::Dependency
130
- prerelease: false
131
- name: ticketmaster
132
- type: :runtime
133
- version_requirements: &id008 !ruby/object:Gem::Requirement
134
- none: false
135
- requirements:
136
- - - "="
137
- - !ruby/object:Gem::Version
138
- hash: 15
139
- segments:
140
- - 0
141
- - 5
142
- - 2
143
- version: 0.5.2
144
- requirement: *id008
145
113
  - !ruby/object:Gem::Dependency
146
114
  prerelease: false
147
115
  name: activesupport
148
116
  type: :runtime
149
- version_requirements: &id009 !ruby/object:Gem::Requirement
117
+ version_requirements: &id007 !ruby/object:Gem::Requirement
150
118
  none: false
151
119
  requirements:
152
120
  - - ">="
@@ -157,12 +125,12 @@ dependencies:
157
125
  - 3
158
126
  - 0
159
127
  version: 2.3.0
160
- requirement: *id009
128
+ requirement: *id007
161
129
  - !ruby/object:Gem::Dependency
162
130
  prerelease: false
163
131
  name: activeresource
164
132
  type: :runtime
165
- version_requirements: &id010 !ruby/object:Gem::Requirement
133
+ version_requirements: &id008 !ruby/object:Gem::Requirement
166
134
  none: false
167
135
  requirements:
168
136
  - - ">="
@@ -173,7 +141,7 @@ dependencies:
173
141
  - 3
174
142
  - 0
175
143
  version: 2.3.0
176
- requirement: *id010
144
+ requirement: *id008
177
145
  description: Allows ticketmaster to interact with Codaset.
178
146
  email: ana@hybridgroup.com
179
147
  executables: []
@@ -217,9 +185,9 @@ files:
217
185
  - spec/tickets_spec.rb
218
186
  - ticketmaster-codaset.gemspec
219
187
  has_rdoc: true
220
- homepage: http://github.com/hybridgroup/ticketmaster-codaset
221
- licenses:
222
- - MIT
188
+ homepage: http://ticket.rb
189
+ licenses: []
190
+
223
191
  post_install_message:
224
192
  rdoc_options: []
225
193
 
@@ -249,7 +217,7 @@ rubyforge_project:
249
217
  rubygems_version: 1.4.2
250
218
  signing_key:
251
219
  specification_version: 3
252
- summary: The codaset provider for ticketmaster
220
+ summary: This is a ticketmaster provider for interacting with Codaset
253
221
  test_files:
254
222
  - spec/comments_spec.rb
255
223
  - spec/projects_spec.rb