No commit activity in last 3 years
No release in over 3 years
Use it in Ruby applications to access Bugzilla
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 0.0.5
~> 1.2.0
~> 1.4
 Project Readme

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>