README.md in fugit-1.1.3 vs README.md in fugit-1.1.4

- old
+ new

@@ -6,11 +6,11 @@ Time tools for [flor](https://github.com/floraison/flor) and the floraison group. It uses [et-orbi](https://github.com/floraison/et-orbi) to represent time instances and [raabro](https://github.com/floraison/raabro) as a basis for its parsers. -Fugit will probably become the foundation for [rufus-scheduler](https://github.com/jmettraux/rufus-scheduler) 4.x +Fugit is a core dependency of [rufus-scheduler](https://github.com/jmettraux/rufus-scheduler) 3.5.x. ## Related projects ### Sister projects @@ -154,19 +154,25 @@ Fugit understand some kind of "natural" language: For example, those "every" get turned into `Fugit::Cron` instances: ```ruby -Fugit::Nat.parse('every day at five') # ==> '0 5 * * *' -Fugit::Nat.parse('every weekday at five') # ==> '0 5 * * 1,2,3,4,5' -Fugit::Nat.parse('every day at 5 pm') # ==> '0 17 * * *' -Fugit::Nat.parse('every tuesday at 5 pm') # ==> '0 17 * * 2' -Fugit::Nat.parse('every wed at 5 pm') # ==> '0 17 * * 3' -Fugit::Nat.parse('every day at 16:30') # ==> '30 16 * * *' -Fugit::Nat.parse('every day at noon') # ==> '0 12 * * *' -Fugit::Nat.parse('every day at midnight') # ==> '0 0 * * *' -Fugit::Nat.parse('every tuesday and monday at 5pm') # ==> '0 17 * * 1,2' -Fugit::Nat.parse('every wed or Monday at 5pm and 11') # ==> '0 11,17 * * 1,3' +Fugit::Nat.parse('every day at five') # ==> '0 5 * * *' +Fugit::Nat.parse('every weekday at five') # ==> '0 5 * * 1,2,3,4,5' +Fugit::Nat.parse('every day at 5 pm') # ==> '0 17 * * *' +Fugit::Nat.parse('every tuesday at 5 pm') # ==> '0 17 * * 2' +Fugit::Nat.parse('every wed at 5 pm') # ==> '0 17 * * 3' +Fugit::Nat.parse('every day at 16:30') # ==> '30 16 * * *' +Fugit::Nat.parse('every day at noon') # ==> '0 12 * * *' +Fugit::Nat.parse('every day at midnight') # ==> '0 0 * * *' +Fugit::Nat.parse('every tuesday and monday at 5pm') # ==> '0 17 * * 1,2' +Fugit::Nat.parse('every wed or Monday at 5pm and 11') # ==> '0 11,17 * * 1,3' +Fugit::Nat.parse('every day at 5 pm on America/Los_Angeles') # ==> '0 17 * * * America/Los_Angeles' +Fugit::Nat.parse('every day at 6 pm in Asia/Tokyo') # ==> '0 18 * * * Asia/Tokyo' +Fugit::Nat.parse('every 3 hours') # ==> '0 */3 * * *' +Fugit::Nat.parse('every 4 months') # ==> '0 0 1 */4 *' +Fugit::Nat.parse('every 5 minutes') # ==> '*/5 * * * *' +Fugit::Nat.parse('every 15s') # ==> '*/15 * * * * *' ``` Directly with `Fugit.parse(s)` is OK too: ```ruby Fugit.parse('every day at five') # ==> Fugit::Cron instance '0 5 * * *'