rodzilla 0.3.2 → 0.3.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/version.rb +1 -1
- data/lib/rodzilla/web_service.rb +5 -2
- metadata +1 -1
- metadata.gz.sig +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
YzIzNTQ4NjY0ZmI3YWZlOGMxYjBiOGRmZGQzMjE4OTE0MjJkYmU3Mg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
Yjc4Njg3ZjNjYWVhNTE0NTdmZDNlMTIxNmExYTMzMTY1YTE4MGRmOQ==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MWEyOWEyNTM2NmEwMDI4MzkwNzAzZWRiOWFkN2VhOGQzNWJjMGZhMzBiNDM1
|
10
|
+
ZTM1ZjNkZTVjMjc1NzExZDE5MzM5NWUxNmY0YWM0MzY4ODU5ZGJlYjJkNGEx
|
11
|
+
ZWEwOGM3MzUxYTY0NTZmNzgwMDViZjNmODgyMzM4OTA1ZGE4NzE=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
OGRjYTUyZDQ2OTQzZGI3NzU2ZGMxZDczMTMzZWRjNTQ5N2M5MjM3YjM5Njg4
|
14
|
+
NTE5NjBhYTdmNjdjMTNjNDY2OWFhNmYyZWZhMWQ3YjQ4ZDE2NGFjNzg1YTBj
|
15
|
+
ODgyZDhmYTdjNDUwMThjMTIwNGQxNWU5MzNlNGI4MGNiYWYzOTk=
|
checksums.yaml.gz.sig
CHANGED
Binary file
|
data.tar.gz.sig
CHANGED
Binary file
|
data/lib/rodzilla/version.rb
CHANGED
data/lib/rodzilla/web_service.rb
CHANGED
@@ -1,17 +1,18 @@
|
|
1
1
|
module Rodzilla
|
2
2
|
class WebService
|
3
3
|
|
4
|
-
attr_accessor :base_url, :format, :resource
|
4
|
+
attr_accessor :base_url, :format, :resource, :options
|
5
5
|
|
6
6
|
# base_url - The String full uri of the Bugzilla api server
|
7
7
|
# username - The String containing the bugzilla authorized users username
|
8
8
|
# password - The String containing the bugzilla authorized users password
|
9
9
|
# format - The request/response format which defaults to :json
|
10
|
-
def initialize(base_url, username, password, format=:json)
|
10
|
+
def initialize(base_url, username, password, format=:json, options={})
|
11
11
|
@base_url = base_url
|
12
12
|
@username = username
|
13
13
|
@password = password
|
14
14
|
@format = format
|
15
|
+
@options = options || {}
|
15
16
|
end
|
16
17
|
|
17
18
|
# Provide a shortcut for instantiation Bug objects
|
@@ -59,6 +60,8 @@ module Rodzilla
|
|
59
60
|
def bugzilla_resource(resource)
|
60
61
|
raise Rodzilla::Error::ResourceNotFoundError, "Error: Rodzilla::Resource::#{resource} does not exist." unless Rodzilla::Resource.constants.include?(resource.to_sym)
|
61
62
|
@resource = Object.module_eval("Rodzilla::Resource::#{resource}").new(@base_url, @username, @password, @format)
|
63
|
+
@resource.service.options = self.options if self.options
|
64
|
+
@resource
|
62
65
|
end
|
63
66
|
|
64
67
|
protected :bugzilla_resource
|
metadata
CHANGED
metadata.gz.sig
CHANGED
@@ -1 +1 @@
|
|
1
|
-
|
1
|
+
�.g� Qr�7u0�ʾ$^:���K�Zۃ�1��u=��X��D �1�-_2̣��d�L\oz��~/�����j��P�OwD�t7r�hny>6� ?����]��9d�^Z
|