Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/nolim1t/dont-overstay

Flag theory in a script
https://github.com/nolim1t/dont-overstay

Last synced: 2 days ago
JSON representation

Flag theory in a script

Awesome Lists containing this project

README

        

[![Gem Version](https://badge.fury.io/rb/dont-overstay.svg)](https://badge.fury.io/rb/dont-overstay) [![Build Status](https://travis-ci.org/nolim1t/dont-overstay.svg?branch=master)](https://travis-ci.org/nolim1t/dont-overstay)

## What
This is a simple base gem for calculating number of days stayed in a country (for nomads).

Resident status (for tax purposes), revolves around being in a country for more than 180 calendar days.

The way this script looks at it, as it monitors the last checkin.

## Disclaimer
This is ALPHA quality software

## Installing
```bash
gem install dont-overstay
```

## Code
```ruby
require 'dont-overstay'

d = Daytracker.new
# This accepts timestamps, otherwise it will by default return the last years
# before (check before a date or current date)
# after (check after a date or exactly 1 year ago)
puts d.query
```
## Building
```bash
gem build dont-overstay.gemspec
gem install dont-overstay-0.0.1.gem
```