work-md 0.4.0 → 0.4.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/work/md/commands/last.rb +2 -3
- data/lib/work/md/commands/tlast.rb +1 -1
- data/lib/work/md/config.rb +6 -1
- data/lib/work/md/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 785ba0c00e62f155b5d1f0bd99e8aabe1f2e2a21ab969ee2d2a537cacdea905a
|
4
|
+
data.tar.gz: 1b0e7d575c2cc1dfa12286ae3a81f7e6407c23bc7e7779cacf04f88fccc3bede
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2f29dee5202dbda4cac2ba534b4fec472188153db6f0aeda0dff409fcb0b20a0dc3a9fbb8d67b0e4ef43c492bdbf5a0aabd0ad6d1e356d4cea0d7aa5b572aa31
|
7
|
+
data.tar.gz: 7908a13d8c2515a0d149f63aa896aad7c476efde33664a66f08da9178e979f8f761a25ad5ed6b41fc6a44fa2898d3ca934ad9021575ccd6ca1079233b9a10219
|
@@ -10,8 +10,7 @@ module Work
|
|
10
10
|
current_day = Date.today.prev_day
|
11
11
|
work_dir = Work::Md::Config.work_dir
|
12
12
|
|
13
|
-
(1..
|
14
|
-
|
13
|
+
(1..160).each do
|
15
14
|
file_name = "#{current_day.strftime('%Y/%m/%d')}.md"
|
16
15
|
|
17
16
|
if ::File.exist?("#{work_dir}/#{file_name}")
|
@@ -26,7 +25,7 @@ module Work
|
|
26
25
|
unless found_file
|
27
26
|
Work::Md::Cli.help(
|
28
27
|
::TTY::Box.frame(
|
29
|
-
"message: No file found in last
|
28
|
+
"message: No file found in last 5 months",
|
30
29
|
**Work::Md::Cli.error_frame_style
|
31
30
|
)
|
32
31
|
)
|
data/lib/work/md/config.rb
CHANGED
data/lib/work/md/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: work-md
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henrique Fernandez Teixeira
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-10-
|
11
|
+
date: 2021-10-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-box
|