New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

mingle-api

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mingle-api

0.0.3
Rubygems
Version published
Maintainers
1
Created
Source

Mingle::Api

Built with :yellow_heart: and :coffee: 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.

Installation

Add this line to your application's Gemfile:

gem 'mingle-api'

And then execute:

$ bundle

Or install it yourself as:

$ gem install mingle-api

Usage

Initialize with HMac Auth for SaaS Mingle site

require 'mingle-api'
mingle = MingleAPI.new('site-name', hmac: [username, secret_key])

Initialize with Basic Auth for SaaS Mingle site

mingle = MingleAPI.new('site-name', basic_auth: [username, password])

Initialize with HMac for onsite Mingle site

mingle = MingleAPI.new('https://your-mingle-site-url', hmac: [username, secret_key])

Get all projects

projects = mingle.projects

Get project by identifier

project = mingle.projects('your_first_project')

Create 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')

Get first page cards in project

mingle.cards('project_identifier')

Get card by card number and 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

Create card

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)

API design

  • 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)

Setup development environment

See .rbenv-vars file for environment variables need for test.

Contributing

FAQs

Package last updated on 21 Nov 2014

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts