ruby-bugzilla 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.
@@ -1,5 +1,5 @@
1
1
  # rhbugzilla.rb
2
- # Copyright (C) 2010 Red Hat, Inc.
2
+ # Copyright (C) 2010-2012 Red Hat, Inc.
3
3
  #
4
4
  # Authors:
5
5
  # Akira TAGOH <tagoh@redhat.com>
@@ -0,0 +1,60 @@
1
+ # rhbugzilla.rb
2
+ # Copyright (C) 2010 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 2 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 GNU
15
+ # Lesser General Public License for more details.
16
+ #
17
+ # You should have received a copy of the GNU Lesser General Public
18
+ # License along with this library; if not, write to the
19
+ # Free Software Foundation, Inc., 59 Temple Place - Suite 330,
20
+ # Boston, MA 02111-1307, USA.
21
+
22
+ require 'rubygems'
23
+
24
+ begin
25
+ gem 'ruby-bugzilla'
26
+ rescue Gem::LoadError
27
+ require File.join(File.dirname(__FILE__), "..", "lib", "bugzilla.rb")
28
+ end
29
+
30
+ module Bugzilla
31
+
32
+ module Plugin
33
+
34
+ class RedHat < ::Bugzilla::Plugin::Template
35
+
36
+ def initialize
37
+ super
38
+
39
+ @hostname = "bugzilla.redhat.com"
40
+ end # def initialize
41
+
42
+ def prehook(cmd, opts)
43
+ case cmd
44
+ when :search
45
+ else
46
+ end
47
+ end # def prehook
48
+
49
+ def posthook(cmd, opts)
50
+ case cmd
51
+ when :search
52
+ else
53
+ end
54
+ end # def posthook
55
+
56
+ end # class RedHat
57
+
58
+ end # module Plugin
59
+
60
+ end # module Bugzilla
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-bugzilla
3
3
  version: !ruby/object:Gem::Version
4
- hash: 23
5
- prerelease: false
4
+ hash: 21
5
+ prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 3
9
- - 2
10
- version: 0.3.2
9
+ - 3
10
+ version: 0.3.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - Akira TAGOH
@@ -15,8 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-09-16 00:00:00 +09:00
19
- default_executable: bzconsole
18
+ date: 2012-02-22 00:00:00 Z
20
19
  dependencies:
21
20
  - !ruby/object:Gem::Dependency
22
21
  name: rspec
@@ -24,14 +23,13 @@ dependencies:
24
23
  requirement: &id001 !ruby/object:Gem::Requirement
25
24
  none: false
26
25
  requirements:
27
- - - ">="
26
+ - - ~>
28
27
  - !ruby/object:Gem::Version
29
- hash: 13
28
+ hash: 3
30
29
  segments:
31
- - 1
32
30
  - 2
33
- - 9
34
- version: 1.2.9
31
+ - 0
32
+ version: "2.0"
35
33
  type: :development
36
34
  version_requirements: *id001
37
35
  - !ruby/object:Gem::Dependency
@@ -62,30 +60,60 @@ dependencies:
62
60
  version: "0"
63
61
  type: :runtime
64
62
  version_requirements: *id003
63
+ - !ruby/object:Gem::Dependency
64
+ name: rmagick
65
+ prerelease: false
66
+ requirement: &id004 !ruby/object:Gem::Requirement
67
+ none: false
68
+ requirements:
69
+ - - ">="
70
+ - !ruby/object:Gem::Version
71
+ hash: 3
72
+ segments:
73
+ - 0
74
+ version: "0"
75
+ type: :runtime
76
+ version_requirements: *id004
77
+ - !ruby/object:Gem::Dependency
78
+ name: bundler
79
+ prerelease: false
80
+ requirement: &id005 !ruby/object:Gem::Requirement
81
+ none: false
82
+ requirements:
83
+ - - ">="
84
+ - !ruby/object:Gem::Version
85
+ hash: 15
86
+ segments:
87
+ - 1
88
+ - 0
89
+ version: "1.0"
90
+ type: :development
91
+ version_requirements: *id005
65
92
  description: This aims to provide similar features to access to Bugzilla through WebService APIs in Ruby.
66
- email: akira@tagoh.org
93
+ email:
94
+ - akira@tagoh.org
67
95
  executables:
68
96
  - bzconsole
97
+ - bzconsole~
69
98
  extensions: []
70
99
 
71
- extra_rdoc_files:
72
- - README.rdoc
100
+ extra_rdoc_files: []
101
+
73
102
  files:
74
- - COPYING
75
- - README.rdoc
76
- - Rakefile
77
- - bin/bzconsole
103
+ - lib/bugzilla.rb~
78
104
  - lib/bugzilla.rb
105
+ - lib/ruby-bugzilla/rhbugzilla.rb~
79
106
  - lib/ruby-bugzilla/rhbugzilla.rb
80
- - spec/spec_helper.rb
81
- - spec/ruby-bugzilla_spec.rb
82
- has_rdoc: true
107
+ - README.rdoc
108
+ - COPYING
109
+ - bin/bzconsole
110
+ - bin/bzconsole~
83
111
  homepage: http://github.com/tagoh/ruby-bugzilla
84
112
  licenses: []
85
113
 
86
114
  post_install_message:
87
- rdoc_options:
88
- - --charset=UTF-8
115
+ rdoc_options: []
116
+
89
117
  require_paths:
90
118
  - lib
91
119
  required_ruby_version: !ruby/object:Gem::Requirement
@@ -102,17 +130,18 @@ required_rubygems_version: !ruby/object:Gem::Requirement
102
130
  requirements:
103
131
  - - ">="
104
132
  - !ruby/object:Gem::Version
105
- hash: 3
133
+ hash: 23
106
134
  segments:
107
- - 0
108
- version: "0"
135
+ - 1
136
+ - 3
137
+ - 6
138
+ version: 1.3.6
109
139
  requirements: []
110
140
 
111
141
  rubyforge_project:
112
- rubygems_version: 1.3.7
142
+ rubygems_version: 1.8.11
113
143
  signing_key:
114
144
  specification_version: 3
115
145
  summary: Ruby binding for Bugzilla WebService APIs
116
- test_files:
117
- - spec/spec_helper.rb
118
- - spec/ruby-bugzilla_spec.rb
146
+ test_files: []
147
+
data/Rakefile DELETED
@@ -1,55 +0,0 @@
1
- require 'rubygems'
2
- require 'rake'
3
- require File.join(File.dirname(__FILE__), "lib", "bugzilla.rb")
4
-
5
- begin
6
- require 'jeweler'
7
- Jeweler::Tasks.new do |gem|
8
- gem.name = "ruby-bugzilla"
9
- gem.summary = %Q{Ruby binding for Bugzilla WebService APIs}
10
- gem.description = %Q{This aims to provide similar features to access to Bugzilla through WebService APIs in Ruby.}
11
- gem.email = "akira@tagoh.org"
12
- gem.homepage = "http://github.com/tagoh/ruby-bugzilla"
13
- gem.authors = ["Akira TAGOH"]
14
- #gem.rubyforge_project = "ruby-bugzilla"
15
- gem.add_development_dependency "rspec", ">= 1.2.9"
16
- gem.add_runtime_dependency "gruff"
17
- gem.add_runtime_dependency "highline"
18
- # gem is a Gem::Specification... see http://www.rubygems.org/read/chapter/20 for additional settings
19
- gem.version = Bugzilla::VERSION
20
- gem.files = FileList['bin/*', 'lib/**/*.rb', '[A-Z]*', 'test/**/*'].to_a.reject{|x| x =~ /~\Z|#\Z|swp\Z/}
21
- gem.executables.reject!{|x| x =~ /~\Z|#\Z|swp\Z/}
22
- end
23
- Jeweler::GemcutterTasks.new
24
- # Jeweler::RubyforgeTasks.new do |rubyforge|
25
- # rubyforge.doc_task = "rdoc"
26
- # end
27
- rescue LoadError
28
- puts "Jeweler (or a dependency) not available. Install it with: gem install jeweler"
29
- end
30
-
31
- require 'spec/rake/spectask'
32
- Spec::Rake::SpecTask.new(:spec) do |spec|
33
- spec.libs << 'lib' << 'spec'
34
- spec.spec_files = FileList['spec/**/*_spec.rb']
35
- end
36
-
37
- Spec::Rake::SpecTask.new(:rcov) do |spec|
38
- spec.libs << 'lib' << 'spec'
39
- spec.pattern = 'spec/**/*_spec.rb'
40
- spec.rcov = true
41
- end
42
-
43
- task :spec => :check_dependencies
44
-
45
- task :default => :spec
46
-
47
- require 'rake/rdoctask'
48
- Rake::RDocTask.new do |rdoc|
49
- version = File.exist?('VERSION') ? File.read('VERSION') : ""
50
-
51
- rdoc.rdoc_dir = 'rdoc'
52
- rdoc.title = "ruby-bugzilla #{version}"
53
- rdoc.rdoc_files.include('README*')
54
- rdoc.rdoc_files.include('lib/**/*.rb')
55
- end
@@ -1,7 +0,0 @@
1
- require File.expand_path(File.dirname(__FILE__) + '/spec_helper')
2
-
3
- describe "RubyBugzilla" do
4
- it "fails" do
5
- fail "hey buddy, you should probably rename this file and start specing for real"
6
- end
7
- end
data/spec/spec_helper.rb DELETED
@@ -1,9 +0,0 @@
1
- $LOAD_PATH.unshift(File.dirname(__FILE__))
2
- $LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
3
- require 'bugzilla'
4
- require 'spec'
5
- require 'spec/autorun'
6
-
7
- Spec::Runner.configure do |config|
8
-
9
- end