work_md 0.3.4 → 0.3.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/lib/work_md/commands/annotations.rb +1 -1
- data/lib/work_md/commands/config.rb +1 -1
- data/lib/work_md/commands/tyesterday.rb +1 -1
- data/lib/work_md/file.rb +5 -5
- data/lib/work_md/version.rb +1 -1
- metadata +10 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: 2d6967faa7de63beb6db958b095b1cf6a157a9bc8db5a1effaae490c86add0bc
|
4
|
+
data.tar.gz: 054cdf1f0c0910e8962943e5a0ff5affd3830c300c54d85180049b4de7f4f708
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f3473bfd171cd7f1effd40914561dd9bac760e9d3b1fe4b80561f4cfa8e0e794adc6395cdec668fd7b113a9071d750719922669a0c8681bcfdf48651c96e9ff7
|
7
|
+
data.tar.gz: a0fb4d64a689853cfe3ec7c58c1ca0ef7edb22924c222eae0bd2de9e91ca37aa14ec48d44cd60eeeafb2efd17d98f0b1508dd3a4b5bd97970f0cb3f490662b17
|
data/lib/work_md/file.rb
CHANGED
@@ -2,13 +2,13 @@
|
|
2
2
|
|
3
3
|
module WorkMd
|
4
4
|
class File
|
5
|
-
def self.open_or_create(some_date)
|
6
|
-
open_in_editor(
|
5
|
+
def self.open_or_create(some_date, dir: nil)
|
6
|
+
open_in_editor([create_if_not_exist(some_date, dir: dir)], dir: dir)
|
7
7
|
end
|
8
8
|
|
9
|
-
def self.create_if_not_exist(some_date)
|
9
|
+
def self.create_if_not_exist(some_date, dir: nil)
|
10
10
|
t = WorkMd::Config.translations
|
11
|
-
work_dir = WorkMd::Config.work_dir
|
11
|
+
work_dir = dir || WorkMd::Config.work_dir
|
12
12
|
|
13
13
|
file_name = "#{some_date.strftime('%Y/%m/%d')}.md"
|
14
14
|
|
@@ -43,7 +43,7 @@ module WorkMd
|
|
43
43
|
file_name
|
44
44
|
end
|
45
45
|
|
46
|
-
def self.open_in_editor(file_names
|
46
|
+
def self.open_in_editor(file_names = [], dir: nil)
|
47
47
|
editor = WorkMd::Config.editor
|
48
48
|
work_dir = dir || WorkMd::Config.work_dir
|
49
49
|
|
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.3.
|
4
|
+
version: 0.3.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Henrique Fernandez Teixeira
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-09-
|
11
|
+
date: 2021-09-10 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: tty-box
|
@@ -38,7 +38,7 @@ dependencies:
|
|
38
38
|
- - "~>"
|
39
39
|
- !ruby/object:Gem::Version
|
40
40
|
version: 0.7.0
|
41
|
-
description:
|
41
|
+
description:
|
42
42
|
email:
|
43
43
|
- hriqueft@gmail.com
|
44
44
|
executables:
|
@@ -61,12 +61,12 @@ files:
|
|
61
61
|
- lib/work_md/file.rb
|
62
62
|
- lib/work_md/parser/engine.rb
|
63
63
|
- lib/work_md/version.rb
|
64
|
-
homepage:
|
64
|
+
homepage:
|
65
65
|
licenses:
|
66
66
|
- MIT
|
67
67
|
metadata:
|
68
|
-
source_code_uri: https://github.com/
|
69
|
-
post_install_message:
|
68
|
+
source_code_uri: https://github.com/work-md/work-md
|
69
|
+
post_install_message:
|
70
70
|
rdoc_options: []
|
71
71
|
require_paths:
|
72
72
|
- lib
|
@@ -81,10 +81,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
81
81
|
- !ruby/object:Gem::Version
|
82
82
|
version: '0'
|
83
83
|
requirements: []
|
84
|
-
|
85
|
-
|
86
|
-
signing_key:
|
84
|
+
rubygems_version: 3.2.15
|
85
|
+
signing_key:
|
87
86
|
specification_version: 4
|
88
|
-
summary:
|
89
|
-
month or specific days... and much more!
|
87
|
+
summary: "*** DEPRECATED 'work_md' was renamed 'work-md'"
|
90
88
|
test_files: []
|