ticketmaster-kanbanpad 0.1.6 → 0.1.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.1.6
1
+ 0.1.7
@@ -56,7 +56,7 @@ module KanbanpadAPI
56
56
 
57
57
  class Project < Base
58
58
 
59
- def self.tickets(slug, options = {})
59
+ def tasks(slug, options = {})
60
60
  Task.find(:all, :params => options.update(:project_id => slug, :backlog => 'yes', :finished => 'yes'))
61
61
  end
62
62
 
@@ -38,37 +38,6 @@ module TicketMaster::Provider
38
38
  end
39
39
  end
40
40
 
41
- # TODO: Needs refactor
42
- def tickets(*options)
43
- if options.empty?
44
- collect_all_tickets
45
- elsif options.first.is_a? Array
46
- collect_all_tickets.select do |ticket|
47
- if options.first.any? {|id| id == ticket.id }
48
- ticket
49
- end
50
- end
51
- elsif options.first.is_a? Hash
52
- collect_all_tickets.select do |ticket|
53
- options.first.inject(true) do |memo, kv|
54
- break unless memo
55
- key, value = kv
56
- begin
57
- memo &= ticket.send(key) == value
58
- rescue NoMethodError
59
- memo = false
60
- end
61
- memo
62
- end
63
- end
64
- end
65
- end
66
-
67
- private
68
- def collect_all_tickets
69
- API.tickets(id).collect { |ticket| Ticket.new ticket }
70
- end
71
-
72
41
  end
73
42
  end
74
43
  end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-kanbanpad}
8
- s.version = "0.1.6"
8
+ s.version = "0.1.7"
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-23}
12
+ s.date = %q{2011-02-24}
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 = [
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: 23
4
+ hash: 21
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 6
10
- version: 0.1.6
9
+ - 7
10
+ version: 0.1.7
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-23 00:00:00 -04:00
18
+ date: 2011-02-24 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency