🚨 Shai-Hulud Strikes Again:834 Packages Compromised.Technical Analysis →
Socket
Book a DemoInstallSign in
Socket

kalenteri

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

kalenteri

bundlerRubyGems.org
Version
0.1.1
Version published
Maintainers
1
Created
Source

= kalenteri

== Description

A gem for building calendars. Designed to be framework-agnostic.

At the moment this library is mostly for html generation. However, it should be easy to extend the Calendar class for other purposes.

== Install

Add Github as gem source (unless you already have it) $ gem sources -a http://gems.github.com

$ sudo gem install ajk-kalenteri

== Synopsis

require 'kalenteri'

creates a new calendar object with monday as first weekday.

cal = Kalenteri::HTMLCalendar(Kalenteri::MONDAY)

A HTML table for single month...

basic_month = cal.format_month(2009, 10)

...and for the whole year.

basic_year = cal.format_year(2009)

You can use a block with the format method.

A Date object will be passed for each day.

The block should return a string which will be

used inside the table cells.

detailed_month = cal.format_month(2009, 10) do |day| my_day_details(day) end

== Support

Bugs? Problems? Questions?

4ntti.koskinen@gmail.com

== Note on Patches/Pull Requests

  • Fork the project.
  • Make your feature addition or bug fix.
  • Add tests for it. This is important so I don't break it in a future version unintentionally.
  • Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself I can ignore when I pull)
  • Send me a pull request. Bonus points for topic branches.

== Copyright

Copyright (c) 2009 Antti Koskinen. See LICENSE for details.

FAQs

Package last updated on 04 Oct 2009

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts