https://github.com/dceluis/durt
De Ultimate Remote Theveloper
https://github.com/dceluis/durt
Last synced: 2 months ago
JSON representation
De Ultimate Remote Theveloper
- Host: GitHub
- URL: https://github.com/dceluis/durt
- Owner: dceluis
- License: mit
- Created: 2019-03-14T18:06:39.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2020-11-12T15:21:20.000Z (over 5 years ago)
- Last Synced: 2025-12-26T17:39:18.388Z (6 months ago)
- Language: Ruby
- Size: 125 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Durt
Small Ruby program generated using https://github.com/snada/generator-ruby-cmd
## Install
This is a Ruby program and uses Bundler to ensure dependencies consistency. On your machine navigate to the project root and run:
```bash
# If not already installed:
gem install bundler
bundle install
```
This code is packaged as a Ruby gem, and it should be built and installed running these commands:
```bash
gem build durt.gemspec
gem install durt
```
## Setup
First, you will want to initialize your issues database.
```
durt init
```
Make sure Upwork client (or pick time tracker) is running and in the correct
project.
Then, create `.durt.yml` at your root folder. Example for Jira project:
```
# ~/.durt.yml
---
Jira:
:username: username@example.com
:password: yourpassword
:site: http://yourproject.atlassian.net:443/
:context_path: ''
:auth_type: :basic
```
## Usage
If you followed the above instruction and the gem is installed on the system, you should have the binary file ready to run from your command line.
Start by choosing the issue statuses that you'll be able to choose from:
```bash
durt statuses
```
Next, pick an issue to work on:
```bash
durt memo
```
You will be asked to estimate the time it will take you to work on this issue.
Valid inputs include: `29 minutes`, `3 hours`, `123249 sec` `3 min`, etc.
As long as it includes a number and something that resembles a time measure it
will not complain.
If you wish to execute without installing, you can by launching this command from the project root directory:
```bash
ruby -Ilib bin/durt memo
```
Other commands include:
```bash
durt start
durt stop
durt stats
durt stats-all
durt edit-estimate
```
## Testing
This code is covered with both unit tests and feature tests, using Rspec (testing library classes) and Cucumber/Aruba (testing the actual command line program).
You can launch the test suite by running:
```bash
bundle exec rake spec
bundle exec rake features
#launch both:
bundle exec rake
```
For unit tests, a simple code coverage tool is provided, and you can see the results by opening the generated `coverage` folder.