Automation for AKASHI https://ak4.jp .
Add this line to your application's Gemfile:
And then execute:
Or install it yourself as:
$ gem install akashiyaki
require "akashiyaki" client = Akashiyaki::Client.new(company_id, login_id, password) client.start_work client.finish_work client.start_break client.finish_break
ak4 command that is a CLI tool to access AKASHI.
ak4 work start ak4 work finish ak4 break start ak4 break finish
ak4 is given no account information, it asks you about your account:
$ ak4 work finish Company ID: mycompany Login ID: myid Password: %
If you think it's too much bother to enter account information everytime, you can save your account as a configuration file
company: mycompany id: myid password: mypassword
ak4 reads account information from
If you don't want to save your password, you can save only company ID and login ID:
company: mycompany id: myid
ak4 asks you about only password when executed.
You can also use command options:
Options: [--config=CONFIG] -c, [--company=COMPANY] -i, [--id=ID] -p, [--password=PASSWORD]
After checking out the repo, run
bin/setup to install dependencies. Then, run
rake test to run the tests. 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.
Bug reports and pull requests are welcome on GitHub at https://github.com/nownabe/akashiyaki.
The gem is available as open source under the terms of the MIT License.