rubyzilla-awt 0.1.1 → 0.1.3
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/lib/rubyzilla.rb +1 -1
- data/lib/rubyzilla/bug.rb +5 -1
- data/lib/rubyzilla/product.rb +2 -1
- data/rubyzilla.gemspec +1 -1
- metadata +2 -2
data/lib/rubyzilla.rb
CHANGED
data/lib/rubyzilla/bug.rb
CHANGED
|
@@ -20,7 +20,7 @@ module Rubyzilla
|
|
|
20
20
|
result = Bugzilla.server.call("Bug.get_bugs", {:ids => [id]})
|
|
21
21
|
|
|
22
22
|
@product_id = result["bugs"][0]["internals"]["product_id"]
|
|
23
|
-
|
|
23
|
+
#@product = product
|
|
24
24
|
@id = result["bugs"][0]["id"]
|
|
25
25
|
@component_id = result["bugs"][0]["internals"]["component_id"]
|
|
26
26
|
@summary = result["bugs"][0]["summary"]
|
|
@@ -81,5 +81,9 @@ module Rubyzilla
|
|
|
81
81
|
Bugzilla.server.call("Bug.add_comment", {:id => id, :comment => comment})
|
|
82
82
|
end
|
|
83
83
|
end
|
|
84
|
+
|
|
85
|
+
def comments
|
|
86
|
+
Bugzilla.server.call("Bug.comments", {:ids => [id]})
|
|
87
|
+
end
|
|
84
88
|
end
|
|
85
89
|
end
|
data/lib/rubyzilla/product.rb
CHANGED
|
@@ -2,6 +2,7 @@ module Rubyzilla
|
|
|
2
2
|
class Product
|
|
3
3
|
attr_accessor :id, :name
|
|
4
4
|
|
|
5
|
+
#docs for appropriate version: http://alpina.unige.ch/bugzilla/docs/en/html/api/index.html
|
|
5
6
|
def initialize id
|
|
6
7
|
product = Bugzilla.server.call("Product.get_products", {:ids => [id]})
|
|
7
8
|
@id = id
|
|
@@ -44,4 +45,4 @@ module Rubyzilla
|
|
|
44
45
|
@name
|
|
45
46
|
end
|
|
46
47
|
end
|
|
47
|
-
end
|
|
48
|
+
end
|
data/rubyzilla.gemspec
CHANGED