Duckly is Ruby gem and library that enables developers to interact with D.Labs Duck
Add this line to your application's Gemfile:
gem 'duckly'
And then execute:
$ bundle
Or install it yourself as:
$ gem install 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"
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
- Fork it
- 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 new Pull Request