0.0
No commit activity in last 3 years
No release in over 3 years
King of Time HTTP client.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

 Project Readme

King Of Time

Ruby API library for daily check-in/check-out operation.

Build Status License Version Code Climate

Screenshot

Screenshot_2017_02_19_1_10

Installation

Add this line to your application's Gemfile:

gem 'king_of_time'

And then execute:

$ bundle

Or install it yourself as:

$ gem install king_of_time

Usage

require 'king_of_time'

king_of_time = KingOfTime.new({
  timerecorder_id: 1111111111,
  employee_id: 2222222222,
  name: '松倉 友樹',
  password: 'your secret password',
})

# check in
king_of_time.check_in

# start break
king_of_time.start_break

# end break
king_of_time.end_break

# check out
king_of_time.check_out

Test

% rspec

Future work

  • I18n
  • Timezone (Currently fixed with +9:00)

Development

After checking out the repo, run bin/setup to install dependencies. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/matsubo/king_of_time.