ticketmaster-github 0.1.3 → 0.1.4

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.1.3
1
+ 0.1.4
@@ -39,8 +39,16 @@ module TicketMaster::Provider
39
39
 
40
40
  def self.find_by_attributes(project_id, attributes = {})
41
41
  attributes ||= {}
42
- attributes[:state] ||= 'open'
43
- self::API.find_all(build_attributes(project_id, attributes)).collect{|issue| self.new issue}
42
+ issues = []
43
+ if attributes[:state].nil?
44
+ attributes[:state] = 'open'
45
+ issues += self::API.find_all(build_attributes(project_id, attributes))
46
+ attributes[:state] = 'closed'
47
+ issues += self::API.find_all(build_attributes(project_id, attributes))
48
+ else
49
+ issues = self::API.find_all(build_attributes(project_id, attributes))
50
+ end
51
+ issues.collect { |issue| self.new issue }
44
52
  end
45
53
 
46
54
  def self.build_attributes(repo, options)
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-github}
8
- s.version = "0.1.3"
8
+ s.version = "0.1.4"
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{2010-11-04}
12
+ s.date = %q{2010-11-30}
13
13
  s.description = %q{This provides an interface with github through the ticketmaster gem.}
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-github
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 3
10
- version: 0.1.3
9
+ - 4
10
+ version: 0.1.4
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: 2010-11-04 00:00:00 -07:00
18
+ date: 2010-11-30 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency