Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ninech/nine-redmine-client
Simple Ruby Redmine Client
https://github.com/ninech/nine-redmine-client
Last synced: about 1 month ago
JSON representation
Simple Ruby Redmine Client
- Host: GitHub
- URL: https://github.com/ninech/nine-redmine-client
- Owner: ninech
- Created: 2015-02-27T08:41:00.000Z (almost 10 years ago)
- Default Branch: master
- Last Pushed: 2018-11-09T13:56:36.000Z (about 6 years ago)
- Last Synced: 2023-04-07T07:11:41.138Z (over 1 year ago)
- Language: Ruby
- Size: 22.5 KB
- Stars: 0
- Watchers: 23
- Forks: 2
- Open Issues: 1
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
Awesome Lists containing this project
README
# Redmine Ruby Client
[![Build Status](https://travis-ci.org/ninech/nine-redmine-client.svg?branch=master)](https://travis-ci.org/ninech/nine-redmine-client)
Ruby client library for the Redmine API.
## Configuration
In your Rails app create a file `config/initializers/redmine.rb` with the following content:
```ruby
RedmineClient::API.configure do |config|
config.url = ENV['REDMINE_URL']
config.token = ENV['REDMINE_TOKEN']
end
```Here you have to set the config values via environment variables. But you're free to do it differently.
## Usage
The client is very limited. Actually it can only find, create and update issues. That's all for now. But
great things start small.```ruby
RedmineClient::Issue.create subject: 'Do this and that', project_id: 1issue = RedmineClient::Issue.find(1)
issue.update subject: 'New Subject'
```## About
This gem is currently maintained and funded by [nine](https://nine.ch).
[![logo of the company 'nine'](https://logo.apps.at-nine.ch/Dmqied_eSaoBMQwk3vVgn4UIgDo=/trim/500x0/logo_claim.png)](https://www.nine.ch)