No commit activity in last 3 years
No release in over 3 years
KalibroGatekeeperClient is a Ruby gem intended to be an interface for KalibroGatekeeper WebService.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3
~> 1.3.14
~> 4.4.0
~> 1.1.0
>= 0
~> 3.0.0

Runtime

 Project Readme

KalibroGatekeeperClient

Build Status Code Climate Coverage Status

KalibroGatekeeperClient is a Ruby gem intended to be an interface for Ruby applications who want to use the open source code analysis webservice Kalibro (http://gitorious.org/kalibro/kalibro).

Installation

Add this line to your application's Gemfile:

gem 'kalibro_gatekeeper_client'

And then execute:

$ bundle

Or install it yourself as:

$ gem install kalibro_gatekeeper_client

Usage

KalibroGatekeeperClient is intended to be an easy interface that encapsulates the usage of all the Kalibro service's endpoints. So have a look at the available entities at lib/kalibro_gatekeeper_client/entities.

All the entities are subclasses from Model, so have a good look at it. Specially notice that all the entities have methods:

  • save
  • exists?
  • find
  • destroy

These four methods should be useful.

We hope to make available soon a full documentation on RDoc that will make easier to understand all this.

A good example on how to get everything from KalibroGatekeeperClient should be Mezuro. So, have a look there for some examples.

Cucumber helpers

Acceptance tests with the Kalibro webservice can be painful. But we've created cucumber hooks that make it easy.

Just add to your env.rb the following:

require 'kalibro_gatekeeper_client/kalibro_cucumber_helpers/hooks.rb'

The test configurations available are:

  • database
  • user
  • password
  • psql_file_path
  • query_file_path
  • kalibro_home
  • tomcat_user
  • tomcat_group
  • tomcat_restart_command

An example on how to change them is:

KalibroGatekeeperClient::KalibroCucumberHelpers.configure do |config|
  config.database = "kalibro_test"
end

We hope to make available soon an YAML parser for test configurations.

Contributing

  1. Install RVM (rvm.io)
  2. Fork it
  3. Run bundle install
  4. Create your feature branch (git checkout -b my-new-feature)
  5. Make your modifications and changes
  6. Commit your changes (git commit -am 'Add some feature')
  7. Push to the branch (git push origin my-new-feature)
  8. Create new Pull Request