timeboss 0.0.10 → 0.2.2
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/.gitignore +5 -3
- data/.yardopts +1 -0
- data/README.md +12 -5
- data/bin/tbsh +1 -1
- data/lib/timeboss.rb +4 -0
- data/lib/timeboss/calendar.rb +21 -0
- data/lib/timeboss/calendar/day.rb +9 -3
- data/lib/timeboss/calendar/half.rb +6 -2
- data/lib/timeboss/calendar/month.rb +6 -2
- data/lib/timeboss/calendar/period.rb +25 -11
- data/lib/timeboss/calendar/quarter.rb +6 -2
- data/lib/timeboss/calendar/support/formatter.rb +4 -2
- data/lib/timeboss/calendar/support/month_basis.rb +1 -0
- data/lib/timeboss/calendar/support/{month_based.rb → monthly_unit.rb} +5 -1
- data/lib/timeboss/calendar/support/navigable.rb +24 -1
- data/lib/timeboss/calendar/support/shiftable.rb +218 -28
- data/lib/timeboss/calendar/support/translatable.rb +92 -0
- data/lib/timeboss/calendar/support/unit.rb +27 -0
- data/lib/timeboss/calendar/waypoints.rb +5 -55
- data/lib/timeboss/calendar/waypoints/absolute.rb +113 -0
- data/lib/timeboss/calendar/waypoints/relative.rb +267 -0
- data/lib/timeboss/calendar/week.rb +11 -0
- data/lib/timeboss/calendar/year.rb +5 -5
- data/lib/timeboss/calendars.rb +15 -0
- data/lib/timeboss/calendars/gregorian.rb +28 -0
- data/lib/timeboss/version.rb +1 -1
- data/spec/calendar/support/{month_based_spec.rb → monthly_unit_spec.rb} +13 -7
- data/spec/calendar/week_spec.rb +6 -1
- data/spec/calendars/broadcast_spec.rb +7 -7
- data/spec/calendars/gregorian_spec.rb +685 -0
- data/timeboss.gemspec +1 -0
- metadata +27 -7
data/timeboss.gemspec
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: timeboss
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.2.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kevin McDonald
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2020-07-
|
11
|
+
date: 2020-07-19 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: activesupport
|
@@ -108,6 +108,20 @@ dependencies:
|
|
108
108
|
- - ">="
|
109
109
|
- !ruby/object:Gem::Version
|
110
110
|
version: '0'
|
111
|
+
- !ruby/object:Gem::Dependency
|
112
|
+
name: yard
|
113
|
+
requirement: !ruby/object:Gem::Requirement
|
114
|
+
requirements:
|
115
|
+
- - ">="
|
116
|
+
- !ruby/object:Gem::Version
|
117
|
+
version: '0'
|
118
|
+
type: :development
|
119
|
+
prerelease: false
|
120
|
+
version_requirements: !ruby/object:Gem::Requirement
|
121
|
+
requirements:
|
122
|
+
- - ">="
|
123
|
+
- !ruby/object:Gem::Version
|
124
|
+
version: '0'
|
111
125
|
description: Broadcast Calendar navigation in Ruby made simple
|
112
126
|
email:
|
113
127
|
- kevinstuffandthings@gmail.com
|
@@ -121,6 +135,7 @@ files:
|
|
121
135
|
- ".gitignore"
|
122
136
|
- ".rspec"
|
123
137
|
- ".travis.yml"
|
138
|
+
- ".yardopts"
|
124
139
|
- CODE_OF_CONDUCT.md
|
125
140
|
- Gemfile
|
126
141
|
- LICENSE.txt
|
@@ -138,24 +153,29 @@ files:
|
|
138
153
|
- lib/timeboss/calendar/period.rb
|
139
154
|
- lib/timeboss/calendar/quarter.rb
|
140
155
|
- lib/timeboss/calendar/support/formatter.rb
|
141
|
-
- lib/timeboss/calendar/support/month_based.rb
|
142
156
|
- lib/timeboss/calendar/support/month_basis.rb
|
157
|
+
- lib/timeboss/calendar/support/monthly_unit.rb
|
143
158
|
- lib/timeboss/calendar/support/navigable.rb
|
144
159
|
- lib/timeboss/calendar/support/shiftable.rb
|
160
|
+
- lib/timeboss/calendar/support/translatable.rb
|
145
161
|
- lib/timeboss/calendar/support/unit.rb
|
146
162
|
- lib/timeboss/calendar/waypoints.rb
|
163
|
+
- lib/timeboss/calendar/waypoints/absolute.rb
|
164
|
+
- lib/timeboss/calendar/waypoints/relative.rb
|
147
165
|
- lib/timeboss/calendar/week.rb
|
148
166
|
- lib/timeboss/calendar/year.rb
|
149
167
|
- lib/timeboss/calendars.rb
|
150
168
|
- lib/timeboss/calendars/broadcast.rb
|
169
|
+
- lib/timeboss/calendars/gregorian.rb
|
151
170
|
- lib/timeboss/support/shellable.rb
|
152
171
|
- lib/timeboss/version.rb
|
153
172
|
- spec/calendar/day_spec.rb
|
154
173
|
- spec/calendar/quarter_spec.rb
|
155
|
-
- spec/calendar/support/
|
174
|
+
- spec/calendar/support/monthly_unit_spec.rb
|
156
175
|
- spec/calendar/support/unit_spec.rb
|
157
176
|
- spec/calendar/week_spec.rb
|
158
177
|
- spec/calendars/broadcast_spec.rb
|
178
|
+
- spec/calendars/gregorian_spec.rb
|
159
179
|
- spec/calendars_spec.rb
|
160
180
|
- spec/spec_helper.rb
|
161
181
|
- timeboss.gemspec
|
@@ -178,17 +198,17 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
178
198
|
- !ruby/object:Gem::Version
|
179
199
|
version: '0'
|
180
200
|
requirements: []
|
181
|
-
|
182
|
-
rubygems_version: 2.7.7
|
201
|
+
rubygems_version: 3.0.8
|
183
202
|
signing_key:
|
184
203
|
specification_version: 4
|
185
204
|
summary: Broadcast Calendar navigation in Ruby made simple
|
186
205
|
test_files:
|
187
206
|
- spec/calendar/day_spec.rb
|
188
207
|
- spec/calendar/quarter_spec.rb
|
189
|
-
- spec/calendar/support/
|
208
|
+
- spec/calendar/support/monthly_unit_spec.rb
|
190
209
|
- spec/calendar/support/unit_spec.rb
|
191
210
|
- spec/calendar/week_spec.rb
|
192
211
|
- spec/calendars/broadcast_spec.rb
|
212
|
+
- spec/calendars/gregorian_spec.rb
|
193
213
|
- spec/calendars_spec.rb
|
194
214
|
- spec/spec_helper.rb
|