Skip to content

dlabs/duckly

Repository files navigation

Duckly

Duckly is Ruby gem and library that enables developers to interact with D.Labs Duck

Installation

Add this line to your application's Gemfile:

gem 'duckly'

And then execute:

$ bundle

Or install it yourself as:

$ gem install duckly

How to use Duckly?

duck = Duckly.new uid: "[email protected]", pwd: "password"

List off my current activity flow

duck.my_flow

Searching for projects and tickets

duck.tickets "project"

Adding hours to project

duck.add_hours "jira://local/client/ticket/12345/CT-999", "30", "2013-07-05", "Hacking"

Developement

Create .env file with following settings

[email protected]
DUCK_PWD=... you password ...

Run RSpec. First time you run RSpec, VCR will record interaction with API in your behalf. So that next time you'll run it developement process will be faster and more efficient

rspec

For REPL "testing" please use provided pry.sh script. The script loads credentials and initializes ne instance of Duckly class in object called "duck".

./pry.sh

Contributing

  1. Fork it
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request

About

Ruby library for D.Labs Duck services

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published