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 CHANGED
@@ -45,4 +45,4 @@ module Rubyzilla
45
45
  return Product.new(id)
46
46
  end
47
47
  end
48
- end
48
+ end
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
- @product = product
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
@@ -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
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = "rubyzilla-awt"
3
- s.version = "0.1.1"
3
+ s.version = "0.1.3"
4
4
  s.date = "2008-07-02"
5
5
  s.summary = "Ruby API for bugzilla"
6
6
  s.email = "adam.thorsen@gmail.com"
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 1
8
- - 1
9
- version: 0.1.1
8
+ - 3
9
+ version: 0.1.3
10
10
  platform: ruby
11
11
  authors:
12
12
  - Matt Pruitt