timeboss 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +8 -3
- data/bin/tbsh +1 -1
- data/lib/timeboss/version.rb +1 -1
- metadata +2 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1e9e42e59807ef4268bea48fffb572839eca05a8ae52309990ccb478c1431c42
|
4
|
+
data.tar.gz: 7077b857d5d72786cb092cf329f422bc1f7f7868a54e970164f8c7834a00c3c2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7e50564efbd452f31fc7bf7939c3a0cb458aff1fd68d4279187efc013a65dad05e5ec88acf3957fe8f54874d6f795dd4e3c05aecb0199df7117ea105a4b03225
|
7
|
+
data.tar.gz: 102c86505d6ef3b5f152b76a865d3379d5e07200e01f5c02f9ea82a830b903d503398f804bc530fc439a1a90d374e878386f825137477a3dfb59c5e735fe8acd
|
data/README.md
CHANGED
@@ -25,7 +25,7 @@ $ gem install timeboss
|
|
25
25
|
```
|
26
26
|
|
27
27
|
## Usage
|
28
|
-
Supports `year`, `half`, `quarter`, `month`, `week
|
28
|
+
Supports `year`, `half`, `quarter`, `month`, `week` (non-gregorian calendars only), and `day`.
|
29
29
|
|
30
30
|
Prepare your calendar for use:
|
31
31
|
|
@@ -133,11 +133,16 @@ period = calendar.parse('2020W3..2020Q1')
|
|
133
133
|
# => "2020W3 .. 2020Q1: from 2020-01-13 thru 2020-03-29 (current=false)"
|
134
134
|
```
|
135
135
|
|
136
|
-
The examples above are just samples. Try different periods, operators, etc.
|
136
|
+
The examples above are just samples. Try different periods, operators, etc. All of the non-week-based operations will work similarly on the `TimeBoss::Calendars::Gregorian` calendar.
|
137
137
|
|
138
138
|
### Shell
|
139
139
|
To open an IRB shell for the broadcast calendar, use the `tbsh` executable, or the `timeboss:calendars:broadcast:shell` rake task.
|
140
|
-
|
140
|
+
|
141
|
+
For the Gregorian calendar (or any other implemented calendars), supply the name on the command line.
|
142
|
+
- `tbsh gregorian`
|
143
|
+
- `rake timeboss:calendars:gregorian:shell`
|
144
|
+
|
145
|
+
You will find yourself in the context of an instantiated `TimeBoss::Calendar` object:
|
141
146
|
|
142
147
|
```bash
|
143
148
|
$ tbsh
|
data/bin/tbsh
CHANGED
data/lib/timeboss/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timeboss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin McDonald
|
@@ -197,8 +197,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
197
197
|
- !ruby/object:Gem::Version
|
198
198
|
version: '0'
|
199
199
|
requirements: []
|
200
|
-
|
201
|
-
rubygems_version: 2.7.7
|
200
|
+
rubygems_version: 3.0.8
|
202
201
|
signing_key:
|
203
202
|
specification_version: 4
|
204
203
|
summary: Broadcast Calendar navigation in Ruby made simple
|