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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 133f621aecebd01516320415aa7463d70691d31647a0de2b98b4cb5bc370d806
4
- data.tar.gz: 2d783d1a2c276304e2113734ed5b351ee86a564e446aaa5039ada4f4fa76f45e
3
+ metadata.gz: c9557f17e35790f52927ea11905d943692e0a5973a68373204705e2991e380c6
4
+ data.tar.gz: b42a73edc44c7dc061e59d4e85cc38b34b67981bd7ac81e1f979cd8501f43eba
5
5
  SHA512:
6
- metadata.gz: 189e94a8ef9278e512939794b496435b02c0c87601a3c1c6ac01de384b5899acd59dbdd790db1fc4b99cc22336bf3a4bcdf494aab2fed6fc4873e1a08c0d3320
7
- data.tar.gz: 19b83125e2404cb5e4debbebd1bfbce4da0e40cc87211fe1ab55682d793ecd1f9564d7113d81c18ba384c80f545e6aaa71171f8dc1157ccb6d3c09f676fe745c
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
- show help
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
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Mcalendar
2
- VERSION = "0.6.0"
2
+ VERSION = "0.6.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mcalendar
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0
4
+ version: 0.6.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - icm7216