ticketmaster-kanbanpad 0.2.7 → 0.2.8

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.2.7
1
+ 0.2.8
@@ -33,6 +33,15 @@ module TicketMaster::Provider
33
33
  end
34
34
  end
35
35
 
36
+ def self.create(*options)
37
+ if options.first.is_a? Hash
38
+ task = API.new(options.first)
39
+ ticket = self.new task
40
+ task.save
41
+ ticket
42
+ end
43
+ end
44
+
36
45
  def self.find_by_attributes(project_id, attributes = {})
37
46
  self.search_by_attribute(self.search(project_id), attributes)
38
47
  end
@@ -55,12 +64,6 @@ module TicketMaster::Provider
55
64
  end
56
65
  end
57
66
 
58
- def self.create(*options)
59
- ticket = API.new(options.first)
60
- ticket.save
61
- self.new ticket
62
- end
63
-
64
67
  #TODO?
65
68
  def comment
66
69
  warn 'Kanbanpad does not allow find by id of comments. Perhaps you should leave feedback to request it?'
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-kanbanpad}
8
- s.version = "0.2.7"
8
+ s.version = "0.2.8"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["HybridGroup"]
12
- s.date = %q{2011-02-25}
12
+ s.date = %q{2011-03-22}
13
13
  s.description = %q{Allows ticketmaster to interact with kanbanpad.}
14
14
  s.email = %q{sonia@hybridgroup.com}
15
15
  s.extra_rdoc_files = [
@@ -51,7 +51,7 @@ Gem::Specification.new do |s|
51
51
  ]
52
52
  s.homepage = %q{http://github.com/hybridgroup/ticketmaster-kanbanpad}
53
53
  s.require_paths = ["lib"]
54
- s.rubygems_version = %q{1.3.7}
54
+ s.rubygems_version = %q{1.6.1}
55
55
  s.summary = %q{Ticketmaster Provider for Kanbanpad}
56
56
  s.test_files = [
57
57
  "spec/comments_spec.rb",
@@ -62,7 +62,6 @@ Gem::Specification.new do |s|
62
62
  ]
63
63
 
64
64
  if s.respond_to? :specification_version then
65
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
66
65
  s.specification_version = 3
67
66
 
68
67
  if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ticketmaster-kanbanpad
3
3
  version: !ruby/object:Gem::Version
4
- hash: 25
5
- prerelease: false
4
+ hash: 7
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 2
9
- - 7
10
- version: 0.2.7
9
+ - 8
10
+ version: 0.2.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - HybridGroup
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-25 00:00:00 -04:00
18
+ date: 2011-03-22 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -105,7 +105,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
105
105
  requirements: []
106
106
 
107
107
  rubyforge_project:
108
- rubygems_version: 1.3.7
108
+ rubygems_version: 1.6.1
109
109
  signing_key:
110
110
  specification_version: 3
111
111
  summary: Ticketmaster Provider for Kanbanpad