RubyBugzilla
A Ruby wrapper around the python-bugzilla CLI for easy access to the Bugzilla API
Prerequisites
python-bugzilla must be installed.
- For Fedora/RHEL
- sudo yum install python-bugzilla
- For Mac
- Download python-bugzilla from https://fedorahosted.org/python-bugzilla/
- Untar the file
- Run sudo setup.py install
python-bugzilla uses pycurl and expects it to be installed.
- For Mac
- Download pycurl from http://pycurl.sourceforge.net/download/
- Untar the file
- Run sudo setup.py install
Installation
Add this line to your application's Gemfile:
gem 'ruby_bugzilla'
And then execute:
$ bundle
Or install it yourself as:
$ gem install ruby_bugzilla
Example Usage
bz = RubyBugzilla.new("http://uri.to/bugzilla", "username", "password")
bz.login
output = bz.query(:bug_status => "NEW")
bz.modify([928134, 932439], :status => "RELEASE_PENDING", :comment => "Looks good")
Contributing
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request