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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: c8b4b4481ef5554103855a604563c4db3a4deddb298af24a219315f1a658c7ba
4
- data.tar.gz: 8be65df968e3a044a81cf492f3be16a03e9d79a61fb80ac6ff4218c8a5b71aa3
3
+ metadata.gz: 1e9e42e59807ef4268bea48fffb572839eca05a8ae52309990ccb478c1431c42
4
+ data.tar.gz: 7077b857d5d72786cb092cf329f422bc1f7f7868a54e970164f8c7834a00c3c2
5
5
  SHA512:
6
- metadata.gz: df28f604bbea294960ff8131b65b5b3315bf2cd2c2663866ee3b28e208abc25ef7811535482931620d4886ec8b39249967ed38cfa63cf4a865eba6ea31f11022
7
- data.tar.gz: 8b8f043b358f21970af342263154ac3bcd40f9322b37c7e7c0587740c703214e77798e8b28ff56d627c9b6bab3f5306bb1e6e21ca52dd7589fa2d6e450a75178
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`, and `day`.
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
- You will find yourself in the context of an instantiated `TimeBoss::Calendars::Broadcast` object:
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
@@ -4,7 +4,7 @@ require 'timeboss/calendars'
4
4
  require 'timeboss/support/shellable'
5
5
 
6
6
  calendar = if ARGV.length == 1
7
- TimeBoss::Calendars[ARGV.first]&.calendar
7
+ TimeBoss::Calendars[ARGV.first]
8
8
  else
9
9
  TimeBoss::Calendars.first.calendar
10
10
  end
@@ -1,4 +1,4 @@
1
1
  # frozen_string_literal: true
2
2
  module TimeBoss
3
- VERSION = "0.2.0"
3
+ VERSION = "0.2.1"
4
4
  end
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.0
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
- rubyforge_project:
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