ticketmaster-bugzilla 0.0.5 → 0.0.6
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 +1 -1
- data/lib/provider/ticket.rb +2 -2
- data/spec/projects_spec.rb +1 -1
- data/ticketmaster-bugzilla.gemspec +2 -2
- metadata +4 -4
data/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
0.0.
|
|
1
|
+
0.0.6
|
data/lib/provider/ticket.rb
CHANGED
|
@@ -7,9 +7,9 @@ module TicketMaster::Provider
|
|
|
7
7
|
# declare needed overloaded methods here
|
|
8
8
|
TICKETS_API = Rubyzilla::Product
|
|
9
9
|
def initialize(*object)
|
|
10
|
+
return super(object.first) if object.first.is_a? Hash
|
|
10
11
|
if object.first
|
|
11
12
|
object = object.first
|
|
12
|
-
puts object.inspect
|
|
13
13
|
unless object.is_a? Hash
|
|
14
14
|
@system_data = {:client => object}
|
|
15
15
|
hash = {:product_id => object.product_id,
|
|
@@ -79,7 +79,7 @@ module TicketMaster::Provider
|
|
|
79
79
|
if options.first.empty?
|
|
80
80
|
TICKETS_API.new(project_id).bugs.collect { |bug| self.new bug }
|
|
81
81
|
elsif options.first.is_a? Array
|
|
82
|
-
TICKETS_API.new(project_id).bugs.collect { |bug| self.new bug }
|
|
82
|
+
TICKETS_API.new(project_id).bugs.collect { |bug| self.new bug }
|
|
83
83
|
elsif options[0].first.is_a? Hash
|
|
84
84
|
TICKETS_API.new(project_id).bugs(options[0].first).collect { |bug| self.new bug }
|
|
85
85
|
end
|
data/spec/projects_spec.rb
CHANGED
|
@@ -9,7 +9,7 @@ describe "Ticketmaster::Provider::Bugzilla::Project" do
|
|
|
9
9
|
end
|
|
10
10
|
|
|
11
11
|
before(:each) do
|
|
12
|
-
@ticketmaster = TicketMaster.new(:bugzilla, {:username => 'george.rafael@gmail.com', :password => '123456', :url =>
|
|
12
|
+
@ticketmaster = TicketMaster.new(:bugzilla, {:username => 'george.rafael@gmail.com', :password => '123456', :url =>'https://landfill.bugzilla.org/bugzilla-3.6-branch/'})
|
|
13
13
|
Rubyzilla::Product.stub!(:list).and_return(@projects)
|
|
14
14
|
end
|
|
15
15
|
|
|
@@ -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.
|
|
8
|
+
s.version = "0.0.6"
|
|
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-05-
|
|
12
|
+
s.date = %q{2011-05-10}
|
|
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 = [
|
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:
|
|
4
|
+
hash: 19
|
|
5
5
|
prerelease:
|
|
6
6
|
segments:
|
|
7
7
|
- 0
|
|
8
8
|
- 0
|
|
9
|
-
-
|
|
10
|
-
version: 0.0.
|
|
9
|
+
- 6
|
|
10
|
+
version: 0.0.6
|
|
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-05-
|
|
18
|
+
date: 2011-05-10 00:00:00 -04:00
|
|
19
19
|
default_executable:
|
|
20
20
|
dependencies:
|
|
21
21
|
- !ruby/object:Gem::Dependency
|