rodzilla 0.1.2 → 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.
- checksums.yaml +8 -8
- checksums.yaml.gz.sig +0 -0
- data.tar.gz.sig +0 -0
- data/lib/rodzilla.rb +4 -0
- data/lib/rodzilla/resource/bug.rb +7 -2
- data/lib/rodzilla/resource/product.rb +2 -2
- data/lib/rodzilla/version.rb +1 -1
- metadata +1 -1
- metadata.gz.sig +0 -0
checksums.yaml
CHANGED
|
@@ -1,15 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
!binary "U0hBMQ==":
|
|
3
3
|
metadata.gz: !binary |-
|
|
4
|
-
|
|
4
|
+
ZDUwNjdjOGNmNzE3ZWQzNDg2ZTE1MmVhZDFmNmUyYWU4N2RmM2ZkMA==
|
|
5
5
|
data.tar.gz: !binary |-
|
|
6
|
-
|
|
6
|
+
ODU5NjEwNDMyNGQ5YWIyNjViNTExOWVhYWYyMDJkY2JiNTYxN2EwYw==
|
|
7
7
|
!binary "U0hBNTEy":
|
|
8
8
|
metadata.gz: !binary |-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
9
|
+
NTVkZmFhMzliYjcxM2RlNzdmMzU2YTE4NDRiMjJmYjViNmVlM2Q1NDlmMWRl
|
|
10
|
+
OGNlNTA1MmU4MGU1OGExZDk2MjQyMWQ1N2MyOWY0YWZkMDNmY2VjODc1OGMz
|
|
11
|
+
MDZlNzNkZDY3MWMyMzE0YTYyOWE4NWYyZmU2OGI5YTI5ZDU0ZWQ=
|
|
12
12
|
data.tar.gz: !binary |-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
13
|
+
NGM1ZTU1NWE4ZGVhZGVkNDI1MWZmNzc0ODYwMTdlZjMxZmUxMTBlNmNiZTdi
|
|
14
|
+
M2I3Yjc0MTVjMTYxODZjZGI2ZTEzNjllZjI3NWMwZjQxZmIwYWMyZTdkOGUy
|
|
15
|
+
OTRlNzZlYmQ3ZWJlOTJjY2MzNzU1ZThlOTBlYWI2MGUxOGRlZDA=
|
checksums.yaml.gz.sig
CHANGED
|
Binary file
|
data.tar.gz.sig
CHANGED
|
Binary file
|
data/lib/rodzilla.rb
CHANGED
|
@@ -15,6 +15,10 @@ module Rodzilla
|
|
|
15
15
|
|
|
16
16
|
attr_accessor :base_url, :username, :password, :format
|
|
17
17
|
|
|
18
|
+
# @param base_url [String] the bugzilla full url
|
|
19
|
+
# @param username [String] the bugzilla authorized users username
|
|
20
|
+
# @param password [String] the bugzilla authorized users password
|
|
21
|
+
# @param format [Symbol] the request/response format `:xml` or `:json`
|
|
18
22
|
def initialize(base_url, username, password, format=:json)
|
|
19
23
|
@base_url = base_url
|
|
20
24
|
@username = username
|
|
@@ -3,8 +3,13 @@ module Rodzilla
|
|
|
3
3
|
class Bug < Base
|
|
4
4
|
REQUIRED_FIELDS = [:product, :component, :summary, :version, :description, :op_sys, :platform, :priority, :severity]
|
|
5
5
|
|
|
6
|
-
def fields
|
|
7
|
-
rpc_call( rpc_method: "fields"
|
|
6
|
+
def fields(params={})
|
|
7
|
+
rpc_call( params.merge(rpc_method: "fields"))
|
|
8
|
+
end
|
|
9
|
+
|
|
10
|
+
# Returns all comments associated with a Bug
|
|
11
|
+
def comments(params={})
|
|
12
|
+
raise ArgumentError, "Error: comments requires that bug_id be set" unless params[:ids]
|
|
8
13
|
end
|
|
9
14
|
|
|
10
15
|
# Unless otherwise specified in the description of a parameter,
|
|
@@ -17,8 +17,8 @@ module Rodzilla
|
|
|
17
17
|
rpc_call( rpc_method: "get_accessible_products" )
|
|
18
18
|
end
|
|
19
19
|
|
|
20
|
-
def get_products(
|
|
21
|
-
rpc_call(
|
|
20
|
+
def get_products(params={})
|
|
21
|
+
rpc_call( params.merge( rpc_method: 'get' ) )
|
|
22
22
|
end
|
|
23
23
|
end
|
|
24
24
|
end
|
data/lib/rodzilla/version.rb
CHANGED
metadata
CHANGED
metadata.gz.sig
CHANGED
|
Binary file
|