timeboss 0.1.0 → 0.2.3

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.
Files changed (74) hide show
  1. checksums.yaml +4 -4
  2. data/.gitignore +5 -4
  3. data/.replit +2 -0
  4. data/README.md +15 -8
  5. data/bin/tbsh +1 -1
  6. data/lib/tasks/calendars.rake +4 -2
  7. data/lib/timeboss/calendar.rb +9 -1
  8. data/lib/timeboss/calendar/day.rb +0 -1
  9. data/lib/timeboss/calendar/half.rb +0 -1
  10. data/lib/timeboss/calendar/month.rb +0 -1
  11. data/lib/timeboss/calendar/parser.rb +0 -1
  12. data/lib/timeboss/calendar/period.rb +0 -1
  13. data/lib/timeboss/calendar/quarter.rb +0 -1
  14. data/lib/timeboss/calendar/support/formatter.rb +3 -2
  15. data/lib/timeboss/calendar/support/month_basis.rb +0 -2
  16. data/lib/timeboss/calendar/support/monthly_unit.rb +0 -2
  17. data/lib/timeboss/calendar/support/navigable.rb +0 -1
  18. data/lib/timeboss/calendar/support/shiftable.rb +218 -29
  19. data/lib/timeboss/calendar/support/translatable.rb +92 -0
  20. data/lib/timeboss/calendar/support/unit.rb +4 -1
  21. data/lib/timeboss/calendar/waypoints.rb +0 -1
  22. data/lib/timeboss/calendar/waypoints/absolute.rb +0 -1
  23. data/lib/timeboss/calendar/waypoints/relative.rb +0 -1
  24. data/lib/timeboss/calendar/week.rb +1 -1
  25. data/lib/timeboss/calendar/year.rb +0 -1
  26. data/lib/timeboss/calendars.rb +0 -1
  27. data/lib/timeboss/calendars/gregorian.rb +28 -0
  28. data/lib/timeboss/version.rb +1 -1
  29. data/spec/calendar/support/monthly_unit_spec.rb +6 -0
  30. data/spec/calendar/week_spec.rb +6 -1
  31. data/spec/calendars/gregorian_spec.rb +685 -0
  32. metadata +7 -49
  33. data/doc/TimeBoss.html +0 -146
  34. data/doc/TimeBoss/Calendar.html +0 -137
  35. data/doc/TimeBoss/Calendar/Day.html +0 -594
  36. data/doc/TimeBoss/Calendar/Half.html +0 -396
  37. data/doc/TimeBoss/Calendar/Month.html +0 -396
  38. data/doc/TimeBoss/Calendar/Parser.html +0 -386
  39. data/doc/TimeBoss/Calendar/Period.html +0 -841
  40. data/doc/TimeBoss/Calendar/Quarter.html +0 -396
  41. data/doc/TimeBoss/Calendar/Support.html +0 -131
  42. data/doc/TimeBoss/Calendar/Support/Formatter.html +0 -459
  43. data/doc/TimeBoss/Calendar/Support/MonthBased.html +0 -591
  44. data/doc/TimeBoss/Calendar/Support/MonthBasis.html +0 -437
  45. data/doc/TimeBoss/Calendar/Support/MonthlyUnit.html +0 -591
  46. data/doc/TimeBoss/Calendar/Support/Navigable.html +0 -723
  47. data/doc/TimeBoss/Calendar/Support/Shiftable.html +0 -138
  48. data/doc/TimeBoss/Calendar/Support/Unit.html +0 -1299
  49. data/doc/TimeBoss/Calendar/Waypoints.html +0 -155
  50. data/doc/TimeBoss/Calendar/Waypoints/Absolute.html +0 -1378
  51. data/doc/TimeBoss/Calendar/Waypoints/Relative.html +0 -4308
  52. data/doc/TimeBoss/Calendar/Week.html +0 -671
  53. data/doc/TimeBoss/Calendar/Year.html +0 -319
  54. data/doc/TimeBoss/Calendars.html +0 -336
  55. data/doc/TimeBoss/Calendars/Broadcast.html +0 -221
  56. data/doc/TimeBoss/Calendars/Broadcast/Basis.html +0 -278
  57. data/doc/TimeBoss/Calendars/Entry.html +0 -399
  58. data/doc/TimeBoss/Support.html +0 -115
  59. data/doc/TimeBoss/Support/Shellable.html +0 -249
  60. data/doc/_index.html +0 -416
  61. data/doc/class_list.html +0 -51
  62. data/doc/css/common.css +0 -1
  63. data/doc/css/full_list.css +0 -58
  64. data/doc/css/style.css +0 -496
  65. data/doc/file.README.html +0 -299
  66. data/doc/file_list.html +0 -56
  67. data/doc/frames.html +0 -17
  68. data/doc/index.html +0 -299
  69. data/doc/js/app.js +0 -314
  70. data/doc/js/full_list.js +0 -216
  71. data/doc/js/jquery.js +0 -4
  72. data/doc/method_list.html +0 -1139
  73. data/doc/top-level-namespace.html +0 -110
  74. data/lib/timeboss/calendar/support.rb +0 -8
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.1.0
4
+ version: 0.2.3
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-19 00:00:00.000000000 Z
11
+ date: 2020-07-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -133,13 +133,9 @@ files:
133
133
  - ".github/ISSUE_TEMPLATE/bug_report.md"
134
134
  - ".github/ISSUE_TEMPLATE/feature_request.md"
135
135
  - ".gitignore"
136
+ - ".replit"
136
137
  - ".rspec"
137
138
  - ".travis.yml"
138
- - ".yardoc/checksums"
139
- - ".yardoc/complete"
140
- - ".yardoc/object_types"
141
- - ".yardoc/objects/root.dat"
142
- - ".yardoc/proxy_types"
143
139
  - ".yardopts"
144
140
  - CODE_OF_CONDUCT.md
145
141
  - Gemfile
@@ -147,47 +143,6 @@ files:
147
143
  - README.md
148
144
  - Rakefile
149
145
  - bin/tbsh
150
- - doc/TimeBoss.html
151
- - doc/TimeBoss/Calendar.html
152
- - doc/TimeBoss/Calendar/Day.html
153
- - doc/TimeBoss/Calendar/Half.html
154
- - doc/TimeBoss/Calendar/Month.html
155
- - doc/TimeBoss/Calendar/Parser.html
156
- - doc/TimeBoss/Calendar/Period.html
157
- - doc/TimeBoss/Calendar/Quarter.html
158
- - doc/TimeBoss/Calendar/Support.html
159
- - doc/TimeBoss/Calendar/Support/Formatter.html
160
- - doc/TimeBoss/Calendar/Support/MonthBased.html
161
- - doc/TimeBoss/Calendar/Support/MonthBasis.html
162
- - doc/TimeBoss/Calendar/Support/MonthlyUnit.html
163
- - doc/TimeBoss/Calendar/Support/Navigable.html
164
- - doc/TimeBoss/Calendar/Support/Shiftable.html
165
- - doc/TimeBoss/Calendar/Support/Unit.html
166
- - doc/TimeBoss/Calendar/Waypoints.html
167
- - doc/TimeBoss/Calendar/Waypoints/Absolute.html
168
- - doc/TimeBoss/Calendar/Waypoints/Relative.html
169
- - doc/TimeBoss/Calendar/Week.html
170
- - doc/TimeBoss/Calendar/Year.html
171
- - doc/TimeBoss/Calendars.html
172
- - doc/TimeBoss/Calendars/Broadcast.html
173
- - doc/TimeBoss/Calendars/Broadcast/Basis.html
174
- - doc/TimeBoss/Calendars/Entry.html
175
- - doc/TimeBoss/Support.html
176
- - doc/TimeBoss/Support/Shellable.html
177
- - doc/_index.html
178
- - doc/class_list.html
179
- - doc/css/common.css
180
- - doc/css/full_list.css
181
- - doc/css/style.css
182
- - doc/file.README.html
183
- - doc/file_list.html
184
- - doc/frames.html
185
- - doc/index.html
186
- - doc/js/app.js
187
- - doc/js/full_list.js
188
- - doc/js/jquery.js
189
- - doc/method_list.html
190
- - doc/top-level-namespace.html
191
146
  - lib/tasks/calendars.rake
192
147
  - lib/tasks/timeboss.rake
193
148
  - lib/timeboss.rb
@@ -198,12 +153,12 @@ files:
198
153
  - lib/timeboss/calendar/parser.rb
199
154
  - lib/timeboss/calendar/period.rb
200
155
  - lib/timeboss/calendar/quarter.rb
201
- - lib/timeboss/calendar/support.rb
202
156
  - lib/timeboss/calendar/support/formatter.rb
203
157
  - lib/timeboss/calendar/support/month_basis.rb
204
158
  - lib/timeboss/calendar/support/monthly_unit.rb
205
159
  - lib/timeboss/calendar/support/navigable.rb
206
160
  - lib/timeboss/calendar/support/shiftable.rb
161
+ - lib/timeboss/calendar/support/translatable.rb
207
162
  - lib/timeboss/calendar/support/unit.rb
208
163
  - lib/timeboss/calendar/waypoints.rb
209
164
  - lib/timeboss/calendar/waypoints/absolute.rb
@@ -212,6 +167,7 @@ files:
212
167
  - lib/timeboss/calendar/year.rb
213
168
  - lib/timeboss/calendars.rb
214
169
  - lib/timeboss/calendars/broadcast.rb
170
+ - lib/timeboss/calendars/gregorian.rb
215
171
  - lib/timeboss/support/shellable.rb
216
172
  - lib/timeboss/version.rb
217
173
  - spec/calendar/day_spec.rb
@@ -220,6 +176,7 @@ files:
220
176
  - spec/calendar/support/unit_spec.rb
221
177
  - spec/calendar/week_spec.rb
222
178
  - spec/calendars/broadcast_spec.rb
179
+ - spec/calendars/gregorian_spec.rb
223
180
  - spec/calendars_spec.rb
224
181
  - spec/spec_helper.rb
225
182
  - timeboss.gemspec
@@ -253,5 +210,6 @@ test_files:
253
210
  - spec/calendar/support/unit_spec.rb
254
211
  - spec/calendar/week_spec.rb
255
212
  - spec/calendars/broadcast_spec.rb
213
+ - spec/calendars/gregorian_spec.rb
256
214
  - spec/calendars_spec.rb
257
215
  - spec/spec_helper.rb
@@ -1,146 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Module: TimeBoss
8
-
9
- &mdash; Documentation by YARD 0.9.25
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "TimeBoss";
19
- relpath = '';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="_index.html">Index (T)</a> &raquo;
40
-
41
-
42
- <span class="title">TimeBoss</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Module: TimeBoss
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
-
70
-
71
-
72
-
73
-
74
-
75
-
76
-
77
-
78
-
79
- <dl>
80
- <dt>Defined in:</dt>
81
- <dd>lib/timeboss.rb<span class="defines">,<br />
82
- lib/timeboss/version.rb,<br /> lib/timeboss/calendar.rb,<br /> lib/timeboss/calendars.rb,<br /> lib/timeboss/calendar/day.rb,<br /> lib/timeboss/calendar/half.rb,<br /> lib/timeboss/calendar/week.rb,<br /> lib/timeboss/calendar/year.rb,<br /> lib/timeboss/calendar/month.rb,<br /> lib/timeboss/calendar/parser.rb,<br /> lib/timeboss/calendar/period.rb,<br /> lib/timeboss/calendar/quarter.rb,<br /> lib/timeboss/calendar/support.rb,<br /> lib/timeboss/support/shellable.rb,<br /> lib/timeboss/calendar/waypoints.rb,<br /> lib/timeboss/calendars/broadcast.rb,<br /> lib/timeboss/calendar/support/unit.rb,<br /> lib/timeboss/calendar/support/formatter.rb,<br /> lib/timeboss/calendar/support/navigable.rb,<br /> lib/timeboss/calendar/support/shiftable.rb,<br /> lib/timeboss/calendar/waypoints/absolute.rb,<br /> lib/timeboss/calendar/waypoints/relative.rb,<br /> lib/timeboss/calendar/support/month_basis.rb,<br /> lib/timeboss/calendar/support/monthly_unit.rb</span>
83
- </dd>
84
- </dl>
85
-
86
- </div>
87
-
88
- <h2>Overview</h2><div class="docstring">
89
- <div class="discussion">
90
-
91
- <p>TimeBoss</p>
92
-
93
-
94
- </div>
95
- </div>
96
- <div class="tags">
97
-
98
-
99
- </div><h2>Defined Under Namespace</h2>
100
- <p class="children">
101
-
102
-
103
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="TimeBoss/Calendars.html" title="TimeBoss::Calendars (module)">Calendars</a></span>, <span class='object_link'><a href="TimeBoss/Support.html" title="TimeBoss::Support (module)">Support</a></span>
104
-
105
-
106
-
107
- <strong class="classes">Classes:</strong> <span class='object_link'><a href="TimeBoss/Calendar.html" title="TimeBoss::Calendar (class)">Calendar</a></span>
108
-
109
-
110
- </p>
111
-
112
-
113
- <h2>
114
- Constant Summary
115
- <small><a href="#" class="constants_summary_toggle">collapse</a></small>
116
- </h2>
117
-
118
- <dl class="constants">
119
-
120
- <dt id="VERSION-constant" class="">VERSION =
121
-
122
- </dt>
123
- <dd><pre class="code"><span class='tstring'><span class='tstring_beg'>&quot;</span><span class='tstring_content'>0.0.10</span><span class='tstring_end'>&quot;</span></span></pre></dd>
124
-
125
- </dl>
126
-
127
-
128
-
129
-
130
-
131
-
132
-
133
-
134
-
135
-
136
- </div>
137
-
138
- <div id="footer">
139
- Generated on Sun Jul 19 10:12:10 2020 by
140
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
141
- 0.9.25 (ruby-2.4.1).
142
- </div>
143
-
144
- </div>
145
- </body>
146
- </html>
@@ -1,137 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: TimeBoss::Calendar
8
-
9
- &mdash; Documentation by YARD 0.9.25
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="../css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "TimeBoss::Calendar";
19
- relpath = '../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../_index.html">Index (C)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../TimeBoss.html" title="TimeBoss (module)">TimeBoss</a></span></span>
41
- &raquo;
42
- <span class="title">Calendar</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: TimeBoss::Calendar
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName">Object</span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next">TimeBoss::Calendar</li>
78
-
79
- </ul>
80
- <a href="#" class="inheritanceTree">show all</a>
81
-
82
- </dd>
83
- </dl>
84
-
85
-
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
- <dl>
96
- <dt>Defined in:</dt>
97
- <dd>lib/timeboss/calendar/waypoints.rb<span class="defines">,<br />
98
- lib/timeboss/calendar/support/unit.rb,<br /> lib/timeboss/calendar/support/formatter.rb,<br /> lib/timeboss/calendar/support/navigable.rb,<br /> lib/timeboss/calendar/support/shiftable.rb,<br /> lib/timeboss/calendar/waypoints/absolute.rb,<br /> lib/timeboss/calendar/waypoints/relative.rb,<br /> lib/timeboss/calendar/support/month_basis.rb,<br /> lib/timeboss/calendar/support/monthly_unit.rb</span>
99
- </dd>
100
- </dl>
101
-
102
- </div>
103
-
104
- <div id="subclasses">
105
- <h2>Direct Known Subclasses</h2>
106
- <p class="children"><span class='object_link'><a href="Calendars/Broadcast.html" title="TimeBoss::Calendars::Broadcast (class)">TimeBoss::Calendars::Broadcast</a></span></p>
107
- </div>
108
- <h2>Defined Under Namespace</h2>
109
- <p class="children">
110
-
111
-
112
- <strong class="modules">Modules:</strong> <span class='object_link'><a href="Calendar/Waypoints.html" title="TimeBoss::Calendar::Waypoints (module)">Waypoints</a></span>
113
-
114
-
115
-
116
-
117
- </p>
118
-
119
-
120
-
121
-
122
-
123
-
124
-
125
-
126
-
127
- </div>
128
-
129
- <div id="footer">
130
- Generated on Sun Jul 19 10:12:11 2020 by
131
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
132
- 0.9.25 (ruby-2.4.1).
133
- </div>
134
-
135
- </div>
136
- </body>
137
- </html>
@@ -1,594 +0,0 @@
1
- <!DOCTYPE html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8">
5
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
- <title>
7
- Class: TimeBoss::Calendar::Day
8
-
9
- &mdash; Documentation by YARD 0.9.25
10
-
11
- </title>
12
-
13
- <link rel="stylesheet" href="../../css/style.css" type="text/css" />
14
-
15
- <link rel="stylesheet" href="../../css/common.css" type="text/css" />
16
-
17
- <script type="text/javascript">
18
- pathId = "TimeBoss::Calendar::Day";
19
- relpath = '../../';
20
- </script>
21
-
22
-
23
- <script type="text/javascript" charset="utf-8" src="../../js/jquery.js"></script>
24
-
25
- <script type="text/javascript" charset="utf-8" src="../../js/app.js"></script>
26
-
27
-
28
- </head>
29
- <body>
30
- <div class="nav_wrap">
31
- <iframe id="nav" src="../../class_list.html?1"></iframe>
32
- <div id="resizer"></div>
33
- </div>
34
-
35
- <div id="main" tabindex="-1">
36
- <div id="header">
37
- <div id="menu">
38
-
39
- <a href="../../_index.html">Index (D)</a> &raquo;
40
- <span class='title'><span class='object_link'><a href="../../TimeBoss.html" title="TimeBoss (module)">TimeBoss</a></span></span> &raquo; <span class='title'><span class='object_link'><a href="../Calendar.html" title="TimeBoss::Calendar (class)">Calendar</a></span></span>
41
- &raquo;
42
- <span class="title">Day</span>
43
-
44
- </div>
45
-
46
- <div id="search">
47
-
48
- <a class="full_list_link" id="class_list_link"
49
- href="../../class_list.html">
50
-
51
- <svg width="24" height="24">
52
- <rect x="0" y="4" width="24" height="4" rx="1" ry="1"></rect>
53
- <rect x="0" y="12" width="24" height="4" rx="1" ry="1"></rect>
54
- <rect x="0" y="20" width="24" height="4" rx="1" ry="1"></rect>
55
- </svg>
56
- </a>
57
-
58
- </div>
59
- <div class="clear"></div>
60
- </div>
61
-
62
- <div id="content"><h1>Class: TimeBoss::Calendar::Day
63
-
64
-
65
-
66
- </h1>
67
- <div class="box_info">
68
-
69
- <dl>
70
- <dt>Inherits:</dt>
71
- <dd>
72
- <span class="inheritName"><span class='object_link'><a href="Support/Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Support::Unit</a></span></span>
73
-
74
- <ul class="fullTree">
75
- <li>Object</li>
76
-
77
- <li class="next"><span class='object_link'><a href="Support/Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Support::Unit</a></span></li>
78
-
79
- <li class="next">TimeBoss::Calendar::Day</li>
80
-
81
- </ul>
82
- <a href="#" class="inheritanceTree">show all</a>
83
-
84
- </dd>
85
- </dl>
86
-
87
-
88
-
89
-
90
-
91
-
92
-
93
-
94
-
95
-
96
-
97
- <dl>
98
- <dt>Defined in:</dt>
99
- <dd>lib/timeboss/calendar/day.rb</dd>
100
- </dl>
101
-
102
- </div>
103
-
104
- <h2>Overview</h2><div class="docstring">
105
- <div class="discussion">
106
-
107
- <p>Representation of a single day within a calendar.</p>
108
-
109
-
110
- </div>
111
- </div>
112
- <div class="tags">
113
-
114
-
115
- </div>
116
-
117
-
118
- <h2>Constant Summary</h2>
119
-
120
- <h3 class="inherited">Constants included
121
- from <span class='object_link'><a href="Support/Shiftable.html" title="TimeBoss::Calendar::Support::Shiftable (module)">Support::Shiftable</a></span></h3>
122
- <p class="inherited"><span class='object_link'><a href="Support/Shiftable.html#PERIODS-constant" title="TimeBoss::Calendar::Support::Shiftable::PERIODS (constant)">Support::Shiftable::PERIODS</a></span></p>
123
-
124
-
125
-
126
-
127
- <h2>Instance Attribute Summary</h2>
128
-
129
- <h3 class="inherited">Attributes inherited from <span class='object_link'><a href="Support/Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Support::Unit</a></span></h3>
130
- <p class="inherited"><span class='object_link'><a href="Support/Unit.html#calendar-instance_method" title="TimeBoss::Calendar::Support::Unit#calendar (method)">#calendar</a></span>, <span class='object_link'><a href="Support/Unit.html#end_date-instance_method" title="TimeBoss::Calendar::Support::Unit#end_date (method)">#end_date</a></span>, <span class='object_link'><a href="Support/Unit.html#start_date-instance_method" title="TimeBoss::Calendar::Support::Unit#start_date (method)">#start_date</a></span></p>
131
-
132
-
133
-
134
- <h2>
135
- Instance Method Summary
136
- <small><a href="#" class="summary_toggle">collapse</a></small>
137
- </h2>
138
-
139
- <ul class="summary">
140
-
141
- <li class="public ">
142
- <span class="summary_signature">
143
-
144
- <a href="#index-instance_method" title="#index (instance method)">#<strong>index</strong> &#x21d2; Integer </a>
145
-
146
-
147
-
148
- </span>
149
-
150
-
151
-
152
-
153
-
154
-
155
-
156
-
157
-
158
- <span class="summary_desc"><div class='inline'>
159
- <p>Get the index of this day within its containing year.</p>
160
- </div></span>
161
-
162
- </li>
163
-
164
-
165
- <li class="public ">
166
- <span class="summary_signature">
167
-
168
- <a href="#initialize-instance_method" title="#initialize (instance method)">#<strong>initialize</strong>(calendar, start_date) &#x21d2; Day </a>
169
-
170
-
171
-
172
- </span>
173
-
174
-
175
- <span class="note title constructor">constructor</span>
176
-
177
-
178
-
179
-
180
-
181
-
182
-
183
-
184
- <span class="summary_desc"><div class='inline'>
185
- <p>A new instance of Day.</p>
186
- </div></span>
187
-
188
- </li>
189
-
190
-
191
- <li class="public ">
192
- <span class="summary_signature">
193
-
194
- <a href="#name-instance_method" title="#name (instance method)">#<strong>name</strong> &#x21d2; String </a>
195
-
196
-
197
-
198
- (also: #to_s)
199
-
200
- </span>
201
-
202
-
203
-
204
-
205
-
206
-
207
-
208
-
209
-
210
- <span class="summary_desc"><div class='inline'>
211
- <p>Get a simple representation of this day.</p>
212
- </div></span>
213
-
214
- </li>
215
-
216
-
217
- <li class="public ">
218
- <span class="summary_signature">
219
-
220
- <a href="#title-instance_method" title="#title (instance method)">#<strong>title</strong> &#x21d2; String </a>
221
-
222
-
223
-
224
- </span>
225
-
226
-
227
-
228
-
229
-
230
-
231
-
232
-
233
-
234
- <span class="summary_desc"><div class='inline'>
235
- <p>Get a “pretty” representation of this day.</p>
236
- </div></span>
237
-
238
- </li>
239
-
240
-
241
- <li class="public ">
242
- <span class="summary_signature">
243
-
244
- <a href="#year_index-instance_method" title="#year_index (instance method)">#<strong>year_index</strong> &#x21d2; Integer </a>
245
-
246
-
247
-
248
- </span>
249
-
250
-
251
-
252
-
253
-
254
-
255
-
256
-
257
-
258
- <span class="summary_desc"><div class='inline'>
259
- <p>Get the year number for this day.</p>
260
- </div></span>
261
-
262
- </li>
263
-
264
-
265
- </ul>
266
-
267
-
268
-
269
-
270
-
271
-
272
-
273
-
274
-
275
-
276
-
277
- <h3 class="inherited">Methods inherited from <span class='object_link'><a href="Support/Unit.html" title="TimeBoss::Calendar::Support::Unit (class)">Support::Unit</a></span></h3>
278
- <p class="inherited"><span class='object_link'><a href="Support/Unit.html#%2B-instance_method" title="TimeBoss::Calendar::Support::Unit#+ (method)">#+</a></span>, <span class='object_link'><a href="Support/Unit.html#--instance_method" title="TimeBoss::Calendar::Support::Unit#- (method)">#-</a></span>, <span class='object_link'><a href="Support/Unit.html#==-instance_method" title="TimeBoss::Calendar::Support::Unit#== (method)">#==</a></span>, <span class='object_link'><a href="Support/Unit.html#current%3F-instance_method" title="TimeBoss::Calendar::Support::Unit#current? (method)">#current?</a></span>, <span class='object_link'><a href="Support/Unit.html#format-instance_method" title="TimeBoss::Calendar::Support::Unit#format (method)">#format</a></span>, <span class='object_link'><a href="Support/Unit.html#offset-instance_method" title="TimeBoss::Calendar::Support::Unit#offset (method)">#offset</a></span>, <span class='object_link'><a href="Support/Unit.html#thru-instance_method" title="TimeBoss::Calendar::Support::Unit#thru (method)">#thru</a></span>, <span class='object_link'><a href="Support/Unit.html#to_range-instance_method" title="TimeBoss::Calendar::Support::Unit#to_range (method)">#to_range</a></span>, <span class='object_link'><a href="Support/Unit.html#type-class_method" title="TimeBoss::Calendar::Support::Unit.type (method)">type</a></span></p>
279
-
280
-
281
-
282
-
283
-
284
-
285
-
286
-
287
-
288
-
289
-
290
-
291
-
292
-
293
-
294
- <h3 class="inherited">Methods included from <span class='object_link'><a href="Support/Navigable.html" title="TimeBoss::Calendar::Support::Navigable (module)">Support::Navigable</a></span></h3>
295
- <p class="inherited"><span class='object_link'><a href="Support/Navigable.html#ago-instance_method" title="TimeBoss::Calendar::Support::Navigable#ago (method)">#ago</a></span>, <span class='object_link'><a href="Support/Navigable.html#ahead-instance_method" title="TimeBoss::Calendar::Support::Navigable#ahead (method)">#ahead</a></span>, <span class='object_link'><a href="Support/Navigable.html#next-instance_method" title="TimeBoss::Calendar::Support::Navigable#next (method)">#next</a></span>, <span class='object_link'><a href="Support/Navigable.html#previous-instance_method" title="TimeBoss::Calendar::Support::Navigable#previous (method)">#previous</a></span>, <span class='object_link'><a href="Support/Navigable.html#until-instance_method" title="TimeBoss::Calendar::Support::Navigable#until (method)">#until</a></span></p>
296
- <div id="constructor_details" class="method_details_list">
297
- <h2>Constructor Details</h2>
298
-
299
- <div class="method_details first">
300
- <h3 class="signature first" id="initialize-instance_method">
301
-
302
- #<strong>initialize</strong>(calendar, start_date) &#x21d2; <tt><span class='object_link'><a href="" title="TimeBoss::Calendar::Day (class)">Day</a></span></tt>
303
-
304
-
305
-
306
-
307
-
308
- </h3><div class="docstring">
309
- <div class="discussion">
310
-
311
- <p>Returns a new instance of Day.</p>
312
-
313
-
314
- </div>
315
- </div>
316
- <div class="tags">
317
-
318
-
319
- </div><table class="source_code">
320
- <tr>
321
- <td>
322
- <pre class="lines">
323
-
324
-
325
- 8
326
- 9
327
- 10</pre>
328
- </td>
329
- <td>
330
- <pre class="code"><span class="info file"># File 'lib/timeboss/calendar/day.rb', line 8</span>
331
-
332
- <span class='kw'>def</span> <span class='id identifier rubyid_initialize'>initialize</span><span class='lparen'>(</span><span class='id identifier rubyid_calendar'>calendar</span><span class='comma'>,</span> <span class='id identifier rubyid_start_date'>start_date</span><span class='rparen'>)</span>
333
- <span class='kw'>super</span><span class='lparen'>(</span><span class='id identifier rubyid_calendar'>calendar</span><span class='comma'>,</span> <span class='id identifier rubyid_start_date'>start_date</span><span class='comma'>,</span> <span class='id identifier rubyid_start_date'>start_date</span><span class='rparen'>)</span>
334
- <span class='kw'>end</span></pre>
335
- </td>
336
- </tr>
337
- </table>
338
- </div>
339
-
340
- </div>
341
-
342
-
343
- <div id="instance_method_details" class="method_details_list">
344
- <h2>Instance Method Details</h2>
345
-
346
-
347
- <div class="method_details first">
348
- <h3 class="signature first" id="index-instance_method">
349
-
350
- #<strong>index</strong> &#x21d2; <tt>Integer</tt>
351
-
352
-
353
-
354
-
355
-
356
- </h3><div class="docstring">
357
- <div class="discussion">
358
-
359
- <p>Get the index of this day within its containing year.</p>
360
-
361
-
362
- </div>
363
- </div>
364
- <div class="tags">
365
-
366
- <p class="tag_title">Returns:</p>
367
- <ul class="return">
368
-
369
- <li>
370
-
371
-
372
- <span class='type'>(<tt>Integer</tt>)</span>
373
-
374
-
375
-
376
- </li>
377
-
378
- </ul>
379
-
380
- </div><table class="source_code">
381
- <tr>
382
- <td>
383
- <pre class="lines">
384
-
385
-
386
- 28
387
- 29
388
- 30</pre>
389
- </td>
390
- <td>
391
- <pre class="code"><span class="info file"># File 'lib/timeboss/calendar/day.rb', line 28</span>
392
-
393
- <span class='kw'>def</span> <span class='id identifier rubyid_index'>index</span>
394
- <span class='ivar'>@_index</span> <span class='op'>||=</span> <span class='lparen'>(</span><span class='id identifier rubyid_start_date'>start_date</span> <span class='op'>-</span> <span class='id identifier rubyid_year'>year</span><span class='period'>.</span><span class='id identifier rubyid_start_date'>start_date</span><span class='rparen'>)</span><span class='period'>.</span><span class='id identifier rubyid_to_i'>to_i</span> <span class='op'>+</span> <span class='int'>1</span>
395
- <span class='kw'>end</span></pre>
396
- </td>
397
- </tr>
398
- </table>
399
- </div>
400
-
401
- <div class="method_details ">
402
- <h3 class="signature " id="name-instance_method">
403
-
404
- #<strong>name</strong> &#x21d2; <tt>String</tt>
405
-
406
-
407
-
408
- <span class="aliases">Also known as:
409
- <span class="names"><span id='to_s-instance_method'>to_s</span></span>
410
- </span>
411
-
412
-
413
-
414
- </h3><div class="docstring">
415
- <div class="discussion">
416
-
417
- <p>Get a simple representation of this day.</p>
418
-
419
-
420
- </div>
421
- </div>
422
- <div class="tags">
423
-
424
- <p class="tag_title">Returns:</p>
425
- <ul class="return">
426
-
427
- <li>
428
-
429
-
430
- <span class='type'>(<tt>String</tt>)</span>
431
-
432
-
433
-
434
- &mdash;
435
- <div class='inline'>
436
- <p>(e.g. “2020-08-03”)</p>
437
- </div>
438
-
439
- </li>
440
-
441
- </ul>
442
-
443
- </div><table class="source_code">
444
- <tr>
445
- <td>
446
- <pre class="lines">
447
-
448
-
449
- 14
450
- 15
451
- 16</pre>
452
- </td>
453
- <td>
454
- <pre class="code"><span class="info file"># File 'lib/timeboss/calendar/day.rb', line 14</span>
455
-
456
- <span class='kw'>def</span> <span class='id identifier rubyid_name'>name</span>
457
- <span class='id identifier rubyid_start_date'>start_date</span><span class='period'>.</span><span class='id identifier rubyid_to_s'>to_s</span>
458
- <span class='kw'>end</span></pre>
459
- </td>
460
- </tr>
461
- </table>
462
- </div>
463
-
464
- <div class="method_details ">
465
- <h3 class="signature " id="title-instance_method">
466
-
467
- #<strong>title</strong> &#x21d2; <tt>String</tt>
468
-
469
-
470
-
471
-
472
-
473
- </h3><div class="docstring">
474
- <div class="discussion">
475
-
476
- <p>Get a “pretty” representation of this day.</p>
477
-
478
-
479
- </div>
480
- </div>
481
- <div class="tags">
482
-
483
- <p class="tag_title">Returns:</p>
484
- <ul class="return">
485
-
486
- <li>
487
-
488
-
489
- <span class='type'>(<tt>String</tt>)</span>
490
-
491
-
492
-
493
- &mdash;
494
- <div class='inline'>
495
- <p>(e.g. “August 3, 2020”)</p>
496
- </div>
497
-
498
- </li>
499
-
500
- </ul>
501
-
502
- </div><table class="source_code">
503
- <tr>
504
- <td>
505
- <pre class="lines">
506
-
507
-
508
- 20
509
- 21
510
- 22</pre>
511
- </td>
512
- <td>
513
- <pre class="code"><span class="info file"># File 'lib/timeboss/calendar/day.rb', line 20</span>
514
-
515
- <span class='kw'>def</span> <span class='id identifier rubyid_title'>title</span>
516
- <span class='id identifier rubyid_start_date'>start_date</span><span class='period'>.</span><span class='id identifier rubyid_strftime'>strftime</span><span class='lparen'>(</span><span class='tstring'><span class='tstring_beg'>&#39;</span><span class='tstring_content'>%B %-d, %Y</span><span class='tstring_end'>&#39;</span></span><span class='rparen'>)</span>
517
- <span class='kw'>end</span></pre>
518
- </td>
519
- </tr>
520
- </table>
521
- </div>
522
-
523
- <div class="method_details ">
524
- <h3 class="signature " id="year_index-instance_method">
525
-
526
- #<strong>year_index</strong> &#x21d2; <tt>Integer</tt>
527
-
528
-
529
-
530
-
531
-
532
- </h3><div class="docstring">
533
- <div class="discussion">
534
-
535
- <p>Get the year number for this day.</p>
536
-
537
-
538
- </div>
539
- </div>
540
- <div class="tags">
541
-
542
- <p class="tag_title">Returns:</p>
543
- <ul class="return">
544
-
545
- <li>
546
-
547
-
548
- <span class='type'>(<tt>Integer</tt>)</span>
549
-
550
-
551
-
552
- &mdash;
553
- <div class='inline'>
554
- <p>(e.g. 2020)</p>
555
- </div>
556
-
557
- </li>
558
-
559
- </ul>
560
-
561
- </div><table class="source_code">
562
- <tr>
563
- <td>
564
- <pre class="lines">
565
-
566
-
567
- 34
568
- 35
569
- 36</pre>
570
- </td>
571
- <td>
572
- <pre class="code"><span class="info file"># File 'lib/timeboss/calendar/day.rb', line 34</span>
573
-
574
- <span class='kw'>def</span> <span class='id identifier rubyid_year_index'>year_index</span>
575
- <span class='ivar'>@_year_index</span> <span class='op'>||=</span> <span class='id identifier rubyid_year'>year</span><span class='period'>.</span><span class='id identifier rubyid_year_index'>year_index</span>
576
- <span class='kw'>end</span></pre>
577
- </td>
578
- </tr>
579
- </table>
580
- </div>
581
-
582
- </div>
583
-
584
- </div>
585
-
586
- <div id="footer">
587
- Generated on Sun Jul 19 10:12:11 2020 by
588
- <a href="http://yardoc.org" title="Yay! A Ruby Documentation Tool" target="_parent">yard</a>
589
- 0.9.25 (ruby-2.4.1).
590
- </div>
591
-
592
- </div>
593
- </body>
594
- </html>