bugzilla 0.10.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.gitignore +8 -0
- data/.travis.yml +17 -0
- data/CODE_OF_CONDUCT.md +74 -0
- data/Dockerfile +5 -0
- data/Gemfile +6 -0
- data/Gemfile.lock +76 -0
- data/LICENSE.txt +21 -0
- data/README.md +48 -0
- data/Rakefile +26 -0
- data/bin/console +14 -0
- data/bin/setup +8 -0
- data/bugzilla.gemspec +34 -0
- data/lib/bugzilla.rb +12 -0
- data/lib/bugzilla/api_template.rb +44 -0
- data/lib/bugzilla/bug.rb +356 -0
- data/lib/bugzilla/bugzilla.rb +149 -0
- data/lib/bugzilla/classification.rb +74 -0
- data/lib/bugzilla/group.rb +43 -0
- data/lib/bugzilla/plugin.rb +67 -0
- data/lib/bugzilla/plugins/nvbugzilla.rb +49 -0
- data/lib/bugzilla/plugins/rhbugzilla.rb +210 -0
- data/lib/bugzilla/product.rb +179 -0
- data/lib/bugzilla/skeleton.rb +42 -0
- data/lib/bugzilla/user.rb +182 -0
- data/lib/bugzilla/utils.rb +53 -0
- data/lib/bugzilla/version.rb +27 -0
- data/lib/bugzilla/xmlrpc.rb +92 -0
- metadata +211 -0
@@ -0,0 +1,27 @@
|
|
1
|
+
# version.rb
|
2
|
+
# Copyright (C) 2010-2015 Red Hat, Inc.
|
3
|
+
#
|
4
|
+
# Authors:
|
5
|
+
# Akira TAGOH <tagoh@redhat.com>
|
6
|
+
#
|
7
|
+
# This library is free software: you can redistribute it and/or
|
8
|
+
# modify it under the terms of the GNU Lesser General Public
|
9
|
+
# License as published by the Free Software Foundation, either
|
10
|
+
# version 3 of the License, or (at your option) any later version.
|
11
|
+
#
|
12
|
+
# This library is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU General Public License for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
|
20
|
+
# rdoc
|
21
|
+
#
|
22
|
+
# == Bugzilla
|
23
|
+
#
|
24
|
+
|
25
|
+
module Bugzilla
|
26
|
+
VERSION = '0.10.0'.freeze
|
27
|
+
end # module Bugzilla
|
@@ -0,0 +1,92 @@
|
|
1
|
+
# xmlrpc.rb
|
2
|
+
# Copyright (C) 2010-2014 Red Hat, Inc.
|
3
|
+
#
|
4
|
+
# Authors:
|
5
|
+
# Akira TAGOH <tagoh@redhat.com>
|
6
|
+
#
|
7
|
+
# This library is free software: you can redistribute it and/or
|
8
|
+
# modify it under the terms of the GNU Lesser General Public
|
9
|
+
# License as published by the Free Software Foundation, either
|
10
|
+
# version 3 of the License, or (at your option) any later version.
|
11
|
+
#
|
12
|
+
# This library is distributed in the hope that it will be useful,
|
13
|
+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
|
14
|
+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
15
|
+
# GNU General Public License for more details.
|
16
|
+
#
|
17
|
+
# You should have received a copy of the GNU General Public License
|
18
|
+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
|
19
|
+
|
20
|
+
require 'xmlrpc/client'
|
21
|
+
|
22
|
+
module Bugzilla
|
23
|
+
# rdoc
|
24
|
+
#
|
25
|
+
# === Bugzilla::XMLRPC
|
26
|
+
#
|
27
|
+
|
28
|
+
class XMLRPC
|
29
|
+
# rdoc
|
30
|
+
#
|
31
|
+
# ==== Bugzilla::XMLRPC#new(host, port = 443, path = '/xmlrpc.cgi', proxy_host = nil, proxy_port = nil)
|
32
|
+
#
|
33
|
+
def initialize(host, port: 443, path: '/xmlrpc.cgi', proxy_host: nil,
|
34
|
+
proxy_port: nil, timeout: 60, http_basic_auth_user: nil, http_basic_auth_pass: nil, debug: false)
|
35
|
+
path ||= '/xmlrpc.cgi'
|
36
|
+
use_ssl = port == 443
|
37
|
+
@xmlrpc = ::XMLRPC::Client.new(host, path, port, proxy_host, proxy_port, http_basic_auth_user, http_basic_auth_pass, use_ssl, timeout)
|
38
|
+
# workaround for https://bugs.ruby-lang.org/issues/8182
|
39
|
+
@xmlrpc.http_header_extra = { 'accept-encoding' => 'identity' }
|
40
|
+
@xmlrpc.http.set_debug_output($stdout) if debug
|
41
|
+
end # def initialize
|
42
|
+
|
43
|
+
def use_ssl?
|
44
|
+
@xmlrpc.http.use_ssl?
|
45
|
+
end
|
46
|
+
|
47
|
+
# rdoc
|
48
|
+
#
|
49
|
+
# ==== Bugzilla::XMLRPC#call(cmd, params, user = nil, password = nil)
|
50
|
+
#
|
51
|
+
|
52
|
+
def call(cmd, params = {}, user = nil, password = nil)
|
53
|
+
params = {} if params.nil?
|
54
|
+
params['Bugzilla_login'] = user unless user.nil? || password.nil?
|
55
|
+
params['Bugzilla_password'] = password unless user.nil? || password.nil?
|
56
|
+
params['Bugzilla_token'] = @token unless @token.nil?
|
57
|
+
@xmlrpc.call(cmd, params)
|
58
|
+
end # def call
|
59
|
+
|
60
|
+
# rdoc
|
61
|
+
#
|
62
|
+
# ==== Bugzilla::XMLRPC#cookie
|
63
|
+
#
|
64
|
+
|
65
|
+
def cookie
|
66
|
+
@xmlrpc.cookie
|
67
|
+
end # def cookie
|
68
|
+
|
69
|
+
# rdoc
|
70
|
+
#
|
71
|
+
# ==== Bugzilla::XMLRPC#cookie=(val)
|
72
|
+
#
|
73
|
+
|
74
|
+
def cookie=(val)
|
75
|
+
@xmlrpc.cookie = val
|
76
|
+
end # def cookie=
|
77
|
+
|
78
|
+
# rdoc
|
79
|
+
#
|
80
|
+
# ==== Bugzilla::XMLRPC#token
|
81
|
+
#
|
82
|
+
|
83
|
+
attr_reader :token # def token
|
84
|
+
|
85
|
+
# rdoc
|
86
|
+
#
|
87
|
+
# ==== Bugzilla::XMLRPC#token=(val)
|
88
|
+
#
|
89
|
+
|
90
|
+
attr_writer :token # def token=
|
91
|
+
end # class XMLRPC
|
92
|
+
end # module Bugzilla
|
metadata
ADDED
@@ -0,0 +1,211 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: bugzilla
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.10.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Victor Pereira
|
8
|
+
autorequire:
|
9
|
+
bindir: exe
|
10
|
+
cert_chain: []
|
11
|
+
date: 2018-03-02 00:00:00.000000000 Z
|
12
|
+
dependencies:
|
13
|
+
- !ruby/object:Gem::Dependency
|
14
|
+
name: bundler
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
16
|
+
requirements:
|
17
|
+
- - "~>"
|
18
|
+
- !ruby/object:Gem::Version
|
19
|
+
version: '1.16'
|
20
|
+
type: :development
|
21
|
+
prerelease: false
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - "~>"
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: '1.16'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: rake
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "<"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '11.0'
|
34
|
+
type: :development
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "<"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '11.0'
|
41
|
+
- !ruby/object:Gem::Dependency
|
42
|
+
name: minitest
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
44
|
+
requirements:
|
45
|
+
- - "~>"
|
46
|
+
- !ruby/object:Gem::Version
|
47
|
+
version: '5.0'
|
48
|
+
type: :development
|
49
|
+
prerelease: false
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - "~>"
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '5.0'
|
55
|
+
- !ruby/object:Gem::Dependency
|
56
|
+
name: rspec
|
57
|
+
requirement: !ruby/object:Gem::Requirement
|
58
|
+
requirements:
|
59
|
+
- - "~>"
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: '2.0'
|
62
|
+
type: :development
|
63
|
+
prerelease: false
|
64
|
+
version_requirements: !ruby/object:Gem::Requirement
|
65
|
+
requirements:
|
66
|
+
- - "~>"
|
67
|
+
- !ruby/object:Gem::Version
|
68
|
+
version: '2.0'
|
69
|
+
- !ruby/object:Gem::Dependency
|
70
|
+
name: rubocop
|
71
|
+
requirement: !ruby/object:Gem::Requirement
|
72
|
+
requirements:
|
73
|
+
- - ">="
|
74
|
+
- !ruby/object:Gem::Version
|
75
|
+
version: '0'
|
76
|
+
type: :development
|
77
|
+
prerelease: false
|
78
|
+
version_requirements: !ruby/object:Gem::Requirement
|
79
|
+
requirements:
|
80
|
+
- - ">="
|
81
|
+
- !ruby/object:Gem::Version
|
82
|
+
version: '0'
|
83
|
+
- !ruby/object:Gem::Dependency
|
84
|
+
name: webmock
|
85
|
+
requirement: !ruby/object:Gem::Requirement
|
86
|
+
requirements:
|
87
|
+
- - ">="
|
88
|
+
- !ruby/object:Gem::Version
|
89
|
+
version: '0'
|
90
|
+
type: :development
|
91
|
+
prerelease: false
|
92
|
+
version_requirements: !ruby/object:Gem::Requirement
|
93
|
+
requirements:
|
94
|
+
- - ">="
|
95
|
+
- !ruby/object:Gem::Version
|
96
|
+
version: '0'
|
97
|
+
- !ruby/object:Gem::Dependency
|
98
|
+
name: simplecov
|
99
|
+
requirement: !ruby/object:Gem::Requirement
|
100
|
+
requirements:
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: '0'
|
104
|
+
type: :development
|
105
|
+
prerelease: false
|
106
|
+
version_requirements: !ruby/object:Gem::Requirement
|
107
|
+
requirements:
|
108
|
+
- - ">="
|
109
|
+
- !ruby/object:Gem::Version
|
110
|
+
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: gruff
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - "~>"
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :runtime
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - "~>"
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
125
|
+
- !ruby/object:Gem::Dependency
|
126
|
+
name: highline
|
127
|
+
requirement: !ruby/object:Gem::Requirement
|
128
|
+
requirements:
|
129
|
+
- - ">="
|
130
|
+
- !ruby/object:Gem::Version
|
131
|
+
version: '0'
|
132
|
+
type: :runtime
|
133
|
+
prerelease: false
|
134
|
+
version_requirements: !ruby/object:Gem::Requirement
|
135
|
+
requirements:
|
136
|
+
- - ">="
|
137
|
+
- !ruby/object:Gem::Version
|
138
|
+
version: '0'
|
139
|
+
- !ruby/object:Gem::Dependency
|
140
|
+
name: xmlrpc
|
141
|
+
requirement: !ruby/object:Gem::Requirement
|
142
|
+
requirements:
|
143
|
+
- - "~>"
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: 0.3.0
|
146
|
+
type: :runtime
|
147
|
+
prerelease: false
|
148
|
+
version_requirements: !ruby/object:Gem::Requirement
|
149
|
+
requirements:
|
150
|
+
- - "~>"
|
151
|
+
- !ruby/object:Gem::Version
|
152
|
+
version: 0.3.0
|
153
|
+
description: My work is a revamp from ruby-bugzilla from Akira TAGOH
|
154
|
+
email:
|
155
|
+
- vpereirabr@gmail.com
|
156
|
+
executables: []
|
157
|
+
extensions: []
|
158
|
+
extra_rdoc_files: []
|
159
|
+
files:
|
160
|
+
- ".gitignore"
|
161
|
+
- ".travis.yml"
|
162
|
+
- CODE_OF_CONDUCT.md
|
163
|
+
- Dockerfile
|
164
|
+
- Gemfile
|
165
|
+
- Gemfile.lock
|
166
|
+
- LICENSE.txt
|
167
|
+
- README.md
|
168
|
+
- Rakefile
|
169
|
+
- bin/console
|
170
|
+
- bin/setup
|
171
|
+
- bugzilla.gemspec
|
172
|
+
- lib/bugzilla.rb
|
173
|
+
- lib/bugzilla/api_template.rb
|
174
|
+
- lib/bugzilla/bug.rb
|
175
|
+
- lib/bugzilla/bugzilla.rb
|
176
|
+
- lib/bugzilla/classification.rb
|
177
|
+
- lib/bugzilla/group.rb
|
178
|
+
- lib/bugzilla/plugin.rb
|
179
|
+
- lib/bugzilla/plugins/nvbugzilla.rb
|
180
|
+
- lib/bugzilla/plugins/rhbugzilla.rb
|
181
|
+
- lib/bugzilla/product.rb
|
182
|
+
- lib/bugzilla/skeleton.rb
|
183
|
+
- lib/bugzilla/user.rb
|
184
|
+
- lib/bugzilla/utils.rb
|
185
|
+
- lib/bugzilla/version.rb
|
186
|
+
- lib/bugzilla/xmlrpc.rb
|
187
|
+
homepage: https://github.com/vpereira/bugzilla
|
188
|
+
licenses:
|
189
|
+
- MIT
|
190
|
+
metadata: {}
|
191
|
+
post_install_message:
|
192
|
+
rdoc_options: []
|
193
|
+
require_paths:
|
194
|
+
- lib
|
195
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
196
|
+
requirements:
|
197
|
+
- - ">="
|
198
|
+
- !ruby/object:Gem::Version
|
199
|
+
version: '0'
|
200
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
201
|
+
requirements:
|
202
|
+
- - ">="
|
203
|
+
- !ruby/object:Gem::Version
|
204
|
+
version: '0'
|
205
|
+
requirements: []
|
206
|
+
rubyforge_project:
|
207
|
+
rubygems_version: 2.6.14
|
208
|
+
signing_key:
|
209
|
+
specification_version: 4
|
210
|
+
summary: Ruby gem to access bugzilla
|
211
|
+
test_files: []
|