ruby-bugzilla 0.6.3 → 0.6.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +13 -12
- data/lib/bugzilla/bugzilla.rb +1 -1
- data/lib/bugzilla/user.rb +2 -4
- data/lib/bugzilla/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fa55983ed1c936358e6812edd7849fb0ca66e8b
|
4
|
+
data.tar.gz: b48fe0e33838d85e14b5d7072dd4688a51b46f3d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f60fe976650ffa2b305e68071030abee1ebe089fffbb34b124c4de199239627ca4c059ee21b74090e3792a330ce26cde93dca2626bd855a660b45701a3dfe68d
|
7
|
+
data.tar.gz: 86f033abd0a17141b4e0258768b087795ac4d9c61d0af004ff8ebe29857e5c6fac087074658de4a227150bcdb9aab562da3995140c5ad0b64fe9be2f0a9747b8
|
data/README.md
CHANGED
@@ -1,17 +1,17 @@
|
|
1
|
-
|
1
|
+
# Ruby binding for Bugzilla WebService APIs #
|
2
2
|
|
3
3
|
This aims to provide similar features in Ruby to access to Bugzilla
|
4
|
-
through
|
4
|
+
through [WebService APIs](http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/webService.html). currently the following
|
5
5
|
APIs are available:
|
6
6
|
|
7
|
-
* Bugzilla::WebService::Bug
|
8
|
-
* Bugzilla::WebService::Bugzilla
|
9
|
-
* Bugzilla::WebService::Classification
|
10
|
-
* Bugzilla::WebService::Product
|
11
|
-
* Bugzilla::WebService::User
|
7
|
+
* [Bugzilla::WebService::Bug](http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Bug.html)
|
8
|
+
* [Bugzilla::WebService::Bugzilla](http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Bugzilla.html)
|
9
|
+
* [Bugzilla::WebService::Classification](http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Classification.html)
|
10
|
+
* [Bugzilla::WebService::Product](http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/Product.html)
|
11
|
+
* [Bugzilla::WebService::User](http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService/User.html)
|
12
12
|
|
13
13
|
|
14
|
-
|
14
|
+
## bzconsole usage ##
|
15
15
|
|
16
16
|
as example, in the bin directory, we have a tool named bzconsole. with that, you can login, search and get a bug. some examples:
|
17
17
|
|
@@ -38,17 +38,18 @@ get a specific bug:
|
|
38
38
|
````
|
39
39
|
bzconsole getbug nvbz:889526
|
40
40
|
````
|
41
|
-
|
41
|
+
|
42
|
+
## Copyright ##
|
42
43
|
|
43
44
|
Copyright (c) 2010-2014 Red Hat, Inc. See COPYING for details.
|
44
45
|
|
45
|
-
|
46
|
+
## License ##
|
46
47
|
|
47
48
|
This library is free software: you can redistribute it and/or
|
48
49
|
modify it under the terms of the GNU Lesser General Public
|
49
50
|
License as published by the Free Software Foundation, either
|
50
51
|
version 3 of the License, or (at your option) any later version.
|
51
52
|
|
52
|
-
|
53
|
+
## Authors ##
|
53
54
|
|
54
|
-
Akira TAGOH
|
55
|
+
Akira TAGOH
|
data/lib/bugzilla/bugzilla.rb
CHANGED
data/lib/bugzilla/user.rb
CHANGED
@@ -44,12 +44,12 @@ Keeps the bugzilla session during doing something in the block.
|
|
44
44
|
|
45
45
|
def session(user, password)
|
46
46
|
r = check_version('4.4.3')
|
47
|
-
|
47
|
+
|
48
48
|
if r[0] then
|
49
|
-
# Usisng tokens
|
50
49
|
key = :token
|
51
50
|
fname = File.join(ENV['HOME'], '.ruby-bugzilla-token.yml')
|
52
51
|
else
|
52
|
+
key = :cookie
|
53
53
|
fname = File.join(ENV['HOME'], '.ruby-bugzilla-cookie.yml')
|
54
54
|
end
|
55
55
|
host = @iface.instance_variable_get(:@xmlrpc).instance_variable_get(:@host)
|
@@ -63,10 +63,8 @@ Keeps the bugzilla session during doing something in the block.
|
|
63
63
|
end
|
64
64
|
if !val.nil? then
|
65
65
|
if key == :token then
|
66
|
-
print "Using token\n"
|
67
66
|
@iface.token = val
|
68
67
|
else
|
69
|
-
print "Using cookie\n"
|
70
68
|
@iface.cookie = val
|
71
69
|
end
|
72
70
|
yield
|
data/lib/bugzilla/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby-bugzilla
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.6.
|
4
|
+
version: 0.6.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Akira TAGOH
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-09-
|
11
|
+
date: 2015-09-25 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rspec
|