Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

A Bugzilla adapter for datamapper.org

branch: master

Fetching latest commit…

Octocat-spinner-32-eaf2f5

Cannot retrieve the latest commit at this time

Octocat-spinner-32 doc
Octocat-spinner-32 lib
Octocat-spinner-32 tasks
Octocat-spinner-32 test
Octocat-spinner-32 .gitignore
Octocat-spinner-32 CHANGELOG.rdoc
Octocat-spinner-32 Gemfile
Octocat-spinner-32 MIT-LICENSE
Octocat-spinner-32 README.rdoc
Octocat-spinner-32 Rakefile
Octocat-spinner-32 dm-bugzilla-adapter.gemspec
README.rdoc

dm-bugzilla-adapter

A DataMapper adapter for Bugzilla

Usage

This DataMapper adapter allows easy access to the Bugzilla bugtracking system via its XMLRPC interface.

It supports access to bugs and named queries.

Install

Install it with

gem install dm-bugzilla-adapter

Code

require 'rubygems'
require 'dm-core'
require 'dm-bugzilla-adapter'

DataMapper::Logger.new($stdout, :debug)
# For bugzilla.novell.com, it retrieves credentials from ~/.oscrc if exists
# Otherwise add user:pass@ to the url
keeper = DataMapper.setup(:default, :adapter => 'bugzilla', :url  => 'https://bugzilla.novell.com')
require 'bugzilla/bug'
require 'bugzilla/named_query'
DataMapper.finalize

# Get a single bug entry
f = Bug.get(424242)

# Access to bugs via a named query
named_query = NamedQuery.get("Manager")
named_query.bugs.each do |bug|
  ...
end

TODO

Map DataMapper queries to Bugzilla queries

License

MIT

Author

Klaus Kämpf <kkaempf@suse.com>

Something went wrong with that request. Please try again.