README.md in reservation-0.0.4 vs README.md in reservation-0.0.5
- old
+ new
@@ -34,18 +34,24 @@
subjects = [ { "role" => "owner", "subject" => matt, "status" => "confirmed" },
{ "role" => "helpr", "subject" => bill, "status" => "tentative" },
{ "role" => "place", "subject" => here, "status" => "tentative" }
]
- pattern = [ { "day" => "wed", "start" => "0930", "finish" => "1030"},
- { "day" => "wed", "start" => "18", "finish" => "20" },
- { "day" => "tue", "start" => "7", "finish" => "830" } ]
+ patterns = [ { "day" => "wed", "start" => "0930", "finish" => "1030"},
+ { "day" => "wed", "start" => "18", "finish" => "20" },
+ { "day" => "tue", "start" => "7", "finish" => "830" } ]
Reservation::Event.create_weekly "the_title", "2013-09-03", "2013-10-13", subjects, pattern
+A 'pattern' may contain an 'nth_of_month' key, in which case the gem will generate events only on days which
+are the given nth day of the month (for example, "2nd wednesday of each month", "last saturday of the month").
+
You can use Reservation::Event#build_weekly instead in order to instantiate the object graph without
persisting it.
+## History
+
+v0.0.5 Add "nth day of month" feature
## Contributing
1. Fork it
2. Create your feature branch (`git checkout -b my-new-feature`)