项目作者: wolflee

项目描述 :
An Ascii calendar generator, useful combined with org-mode.
高级语言: Ruby
项目地址: git://github.com/wolflee/ascii_calendar.git
创建时间: 2019-03-13T02:39:49Z
项目社区:https://github.com/wolflee/ascii_calendar

开源协议:MIT License

下载


AsciiCalendar

A simple gem lets you generate Ascii Calendar like this:

  1. August 2018
  2. | Mon | Tue | Wed | Thu | Fri | Sat | Sun |
  3. |-----|-----|-----|-----|-----|-----|-----|
  4. | | | 1 | 2 | 3 | 4 | 5 |
  5. | | | | | | | |
  6. | 6 | 7 | 8 | 9 | 10 | 11 | 12 |
  7. | | | | | | | |
  8. | 13 | 14 | 15 | 16 | 17 | 18 | 19 |
  9. | | | | | | | |
  10. | 20 | 21 | 22 | 23 | 24 | 25 | 26 |
  11. | | | | | | | |
  12. | 27 | 28 | 29 | 30 | 31 | | |
  13. | | | | | | | |

With slot(s) under each day, it is a simple way to keep track of some habit.

Installation

Add this line to your application’s Gemfile:

  1. gem 'ascii_calendar'

And then execute:

  1. $ bundle

Or install it yourself as:

  1. $ gem install ascii_calendar

Usage

In code:

  1. # generate the calendar as a String
  2. # simply puts it to display
  3. AsciiCalendar.generate

or in shell:

  1. ascii_calendar

Development

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.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/wolflee/ascii_calendar. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

Code of Conduct

Everyone interacting in the AsciiCalendar project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.