mcalendar 0.6.0 → 0.6.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 +18 -1
- data/lib/mcalendar/command.rb +1 -1
- data/lib/mcalendar/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c9557f17e35790f52927ea11905d943692e0a5973a68373204705e2991e380c6
|
4
|
+
data.tar.gz: b42a73edc44c7dc061e59d4e85cc38b34b67981bd7ac81e1f979cd8501f43eba
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2385cb49e422f191b2391ee78754370362a4090afaaa9c924f36b902f2ba69394e31d46cbf524d7aee286b25ffbed4af5d20b01841c9e83fc0bfb3350942f9ef
|
7
|
+
data.tar.gz: 36a5585b38178fec46f7face229ac766a666f3962b4ef6e4dcadb6be96a014906860ae24fcc71dde065b374513033ebe0ed835eb8dd0809a2d96560200128890
|
data/README.md
CHANGED
@@ -142,8 +142,24 @@ You can also use the command option `-f` or `--config=` to load your own `your_s
|
|
142
142
|
>mcalendar -f your_schedule.yml
|
143
143
|
```
|
144
144
|
|
145
|
+
How many Sundays are there this month?
|
146
|
+
Use the command option `-w`, You can easily know this answer.
|
147
|
+
```
|
148
|
+
>mcalendar -w
|
149
|
+
|
150
|
+
Number of days for each day of the week in August 2022
|
151
|
+
-----------------------------------------------------------------------
|
152
|
+
Sun. 4 days. => 7,14,21,28
|
153
|
+
Mon. 5 days. => 1, 8,15,22,29
|
154
|
+
Tue. 5 days. => 2, 9,16,23,30
|
155
|
+
Wed. 5 days. => 3,10,17,24,31
|
156
|
+
Thu. 4 days. => 4,11,18,25
|
157
|
+
Fri. 4 days. => 5,12,19,26
|
158
|
+
Sat. 4 days. => 6,13,20,27
|
159
|
+
```
|
160
|
+
|
145
161
|
|
146
|
-
|
162
|
+
Show help
|
147
163
|
```
|
148
164
|
>mcalendar --help
|
149
165
|
Usage: mcalendar [options]
|
@@ -153,6 +169,7 @@ Usage: mcalendar [options]
|
|
153
169
|
-c, --console output console
|
154
170
|
-f, --config=FILE Use YAML format file.
|
155
171
|
-y, --holidays Display holidays and anniversaries in YAML file
|
172
|
+
-w, --wday Number of days for each day of the week in this month
|
156
173
|
```
|
157
174
|
|
158
175
|
## License
|
data/lib/mcalendar/command.rb
CHANGED
@@ -31,7 +31,7 @@ module Mcalendar
|
|
31
31
|
wvalues = day_of_weeks.values
|
32
32
|
|
33
33
|
puts "\nNumber of days for each day of the week in #{@date.strftime("%B %Y")}"
|
34
|
-
puts "
|
34
|
+
puts "------------------------------------------------------------"
|
35
35
|
wdays.each_with_index do |wday, idx|
|
36
36
|
puts "#{wday} #{wvalues[idx].size} days. => #{wvalues[idx].join(",")}"
|
37
37
|
end
|
data/lib/mcalendar/version.rb
CHANGED