Built with 💛 and ☕ in San Francisco
Mingle is a software development team collaborative tool, developed by ThoughtWorks Studios. The Mingle API gem provides simple interface for you to build application talks to Mingle.
Add this line to your application's Gemfile:
gem 'mingle-api'
And then execute:
$ bundle
Or install it yourself as:
$ gem install mingle-api
require 'mingle-api'
mingle = MingleAPI.new('site-name', hmac: [username, secret_key])
mingle = MingleAPI.new('site-name', basic_auth: [username, password])
mingle = MingleAPI.new('https://your-mingle-site-url', hmac: [username, secret_key])
projects = mingle.projects
project = mingle.projects('your_first_project')
mingle.create_project("Project Name")
# => OpenStruct.new(identifier, url)
Create with project description and from template
mingle.create_project("Project Name", description: "description", template: 'kanban')
mingle.cards('project_identifier')
Let's say you have a project named Mingle and its identifier is mingle, and card number 123 has a text property named Status and user property named Owner
mingle.card('mingle', 123)
You will get an OpenStruct object with attributes: name, description, type, status, owner As Owner is a user property, the value of the owner will be the user login if it exists
mingle.create_card('project_identifier', name: 'card name', type: 'Story',
attachments: [['/path/to/file', "image/png"]],
properties: {status: 'New', priority: 'high'})
# => OpenStruct.new(number, url)
- flat: one level API, you can find all APIs definition in class Mingle.
- data: all APIs return data object only, they are:
- Primitive type in Ruby
- OpenStruct object, with primitive type values (rule #1 flat)
See .rbenv-vars file for environment variables need for test.
- Fork it ( https://github.com/ThoughtWorksStudios/mingle-api/fork )
- 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 a new Pull Request