ticketmaster-bugzilla 0.0.4 → 0.0.5

Sign up to get free protection for your applications and to get access to all the features.
data/.rvmrc ADDED
@@ -0,0 +1 @@
1
+ rvm 1.8.7@ticketmaster-bugzilla --create
@@ -42,18 +42,7 @@ module TicketMaster::Provider
42
42
  def self.find_by_attributes(*options)
43
43
  options = options.first
44
44
  if options.is_a? Hash
45
- self.find_all.select do |project|
46
- options.inject(true) do |memo, kv|
47
- break unless memo
48
- key, value = kv
49
- begin
50
- memo &= project.send(key) == value
51
- rescue NoMethodError
52
- memo = false
53
- end
54
- memo
55
- end
56
- end
45
+ search_by_attribute(self.find_all, options)
57
46
  else
58
47
  self.find_all.select do |project|
59
48
  options.any? { |id| project.id == id }
@@ -9,6 +9,7 @@ module TicketMaster::Provider
9
9
  def initialize(*object)
10
10
  if object.first
11
11
  object = object.first
12
+ puts object.inspect
12
13
  unless object.is_a? Hash
13
14
  @system_data = {:client => object}
14
15
  hash = {:product_id => object.product_id,
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ticketmaster-bugzilla}
8
- s.version = "0.0.4"
8
+ s.version = "0.0.5"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Rafael George"]
12
- s.date = %q{2011-02-17}
12
+ s.date = %q{2011-05-09}
13
13
  s.description = %q{Allows ticketmaster to interact with Bugzilla.}
14
14
  s.email = %q{rafael@hybridgroup.com}
15
15
  s.extra_rdoc_files = [
@@ -17,6 +17,7 @@ Gem::Specification.new do |s|
17
17
  "README.md"
18
18
  ]
19
19
  s.files = [
20
+ ".rvmrc",
20
21
  "LICENSE",
21
22
  "README.md",
22
23
  "Rakefile",
@@ -36,18 +37,10 @@ Gem::Specification.new do |s|
36
37
  ]
37
38
  s.homepage = %q{http://github.com/hybridgroup/ticketmaster-bugzilla}
38
39
  s.require_paths = ["lib"]
39
- s.rubygems_version = %q{1.3.7}
40
+ s.rubygems_version = %q{1.6.1}
40
41
  s.summary = %q{Ticketmaster Provider for Bugzilla}
41
- s.test_files = [
42
- "spec/comments_spec.rb",
43
- "spec/projects_spec.rb",
44
- "spec/spec_helper.rb",
45
- "spec/ticketmaster-bugzilla_spec.rb",
46
- "spec/tickets_spec.rb"
47
- ]
48
42
 
49
43
  if s.respond_to? :specification_version then
50
- current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
51
44
  s.specification_version = 3
52
45
 
53
46
  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-bugzilla
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
4
+ hash: 21
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 4
10
- version: 0.0.4
9
+ - 5
10
+ version: 0.0.5
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rafael George
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-02-17 00:00:00 -04:00
18
+ date: 2011-05-09 00:00:00 -04:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -122,6 +122,7 @@ extra_rdoc_files:
122
122
  - LICENSE
123
123
  - README.md
124
124
  files:
125
+ - .rvmrc
125
126
  - LICENSE
126
127
  - README.md
127
128
  - Rakefile
@@ -168,13 +169,9 @@ required_rubygems_version: !ruby/object:Gem::Requirement
168
169
  requirements: []
169
170
 
170
171
  rubyforge_project:
171
- rubygems_version: 1.3.7
172
+ rubygems_version: 1.6.1
172
173
  signing_key:
173
174
  specification_version: 3
174
175
  summary: Ticketmaster Provider for Bugzilla
175
- test_files:
176
- - spec/comments_spec.rb
177
- - spec/projects_spec.rb
178
- - spec/spec_helper.rb
179
- - spec/ticketmaster-bugzilla_spec.rb
180
- - spec/tickets_spec.rb
176
+ test_files: []
177
+