Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
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
- Host: GitHub
- URL: https://github.com/nolim1t/dont-overstay
- Owner: nolim1t
- License: mit
- Created: 2016-03-21T06:48:05.000Z (over 8 years ago)
- Default Branch: master
- Last Pushed: 2016-03-22T05:27:20.000Z (over 8 years ago)
- Last Synced: 2024-10-04T12:34:43.619Z (about 1 month ago)
- Language: Ruby
- Homepage: https://rubygems.org/gems/dont-overstay
- Size: 10.7 KB
- Stars: 1
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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
```