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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0ef3ccad4538e7dae9f089f6e4208fcec84a9536
4
- data.tar.gz: feb4000d008e4b0359d928598a0d7fa8f1db3c6f
3
+ metadata.gz: 1fa55983ed1c936358e6812edd7849fb0ca66e8b
4
+ data.tar.gz: b48fe0e33838d85e14b5d7072dd4688a51b46f3d
5
5
  SHA512:
6
- metadata.gz: 72b186d9ae4278215d1f14758d41e27a0411266ed1a9acd0fa8c9fdf6c04185ba95c702fe50e4a7f823bd115090c9d1643bdeebc2cb8063edbd16870e1ee5839
7
- data.tar.gz: 18c25084d0272ebe696c1f9dd1a64669e2477a173d786c3301a9f3d4e596864924380150299087d852b8374d5519f201947f3e5091dd9b82fa2a3ffe25162503
6
+ metadata.gz: f60fe976650ffa2b305e68071030abee1ebe089fffbb34b124c4de199239627ca4c059ee21b74090e3792a330ce26cde93dca2626bd855a660b45701a3dfe68d
7
+ data.tar.gz: 86f033abd0a17141b4e0258768b087795ac4d9c61d0af004ff8ebe29857e5c6fac087074658de4a227150bcdb9aab562da3995140c5ad0b64fe9be2f0a9747b8
data/README.md CHANGED
@@ -1,17 +1,17 @@
1
- = Ruby binding for Bugzilla WebService APIs
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 {WebService APIs}[http://www.bugzilla.org/docs/tip/en/html/api/Bugzilla/WebService.html]. currently the following
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[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]
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
- == bzconsole usage
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
- == Copyright
41
+
42
+ ## Copyright ##
42
43
 
43
44
  Copyright (c) 2010-2014 Red Hat, Inc. See COPYING for details.
44
45
 
45
- == License
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
- == Authors
53
+ ## Authors ##
53
54
 
54
- Akira TAGOH
55
+ Akira TAGOH
@@ -46,7 +46,7 @@ Bugzilla version that is running on.
46
46
  v = version
47
47
  f = false
48
48
  if v.kind_of?(Hash) && v.include?("version") &&
49
- v['version'] >= "#{version_}" then
49
+ Gem::Version.new(v['version']) >= Gem::Version.new("#{version_}") then
50
50
  f = true
51
51
  end
52
52
 
@@ -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
- key = :cookie
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
@@ -26,6 +26,6 @@
26
26
 
27
27
  module Bugzilla
28
28
 
29
- VERSION = "0.6.3"
29
+ VERSION = "0.6.4"
30
30
 
31
31
  end # module Bugzilla
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.3
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-04 00:00:00.000000000 Z
11
+ date: 2015-09-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rspec