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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: a631cc3aa66ab964ad5814906ee0d749fe3d31d6
4
- data.tar.gz: 02e5d25c8b0caf2a294002c57900f6828ce6e4fb
2
+ SHA256:
3
+ metadata.gz: 2d6967faa7de63beb6db958b095b1cf6a157a9bc8db5a1effaae490c86add0bc
4
+ data.tar.gz: 054cdf1f0c0910e8962943e5a0ff5affd3830c300c54d85180049b4de7f4f708
5
5
  SHA512:
6
- metadata.gz: c06bc312584d71d258347e0fcd7cd57d8ce86d524457da4ea2ead10e273e89e55200e6f7828128287af8fe0a50fe98e018dbe939fde26bf2952357aa1538b357
7
- data.tar.gz: ffe349994074cfe42dffd4d33a833ef3006252ebc8a38f9e416eca61d181fa83dc1dc18a0cd6ab06842ba7669d6cb3b0f579dec967d19e23eeeb5800b41637d1
6
+ metadata.gz: f3473bfd171cd7f1effd40914561dd9bac760e9d3b1fe4b80561f4cfa8e0e794adc6395cdec668fd7b113a9071d750719922669a0c8681bcfdf48651c96e9ff7
7
+ data.tar.gz: a0fb4d64a689853cfe3ec7c58c1ca0ef7edb22924c222eae0bd2de9e91ca37aa14ec48d44cd60eeeafb2efd17d98f0b1508dd3a4b5bd97970f0cb3f490662b17
@@ -14,7 +14,7 @@ module WorkMd
14
14
  ::File.open("#{work_dir}/#{file_name}", 'w+') { |f| f.puts("# \n\n") }
15
15
  end
16
16
 
17
- WorkMd::File.open_in_editor(file_names: [file_name])
17
+ WorkMd::File.open_in_editor([file_name])
18
18
  end
19
19
  end
20
20
  end
@@ -25,7 +25,7 @@ module WorkMd
25
25
  end
26
26
 
27
27
  ::WorkMd::File.open_in_editor(
28
- file_names: [file_name],
28
+ [file_name],
29
29
  dir: work_dir
30
30
  )
31
31
  end
@@ -10,7 +10,7 @@ module WorkMd
10
10
  WorkMd::File.create_if_not_exist(date)
11
11
  end
12
12
 
13
- WorkMd::File.open_in_editor(file_names: file_names)
13
+ WorkMd::File.open_in_editor(file_names)
14
14
  end
15
15
  end
16
16
  end
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(file_names: [create_if_not_exist(some_date)])
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: [], dir: nil)
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
 
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WorkMd
4
- VERSION = '0.3.4'
4
+ VERSION = '0.3.5'
5
5
  end
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
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-03 00:00:00.000000000 Z
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/henriquefernandez/work_md
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
- rubyforge_project:
85
- rubygems_version: 2.6.14.4
86
- signing_key:
84
+ rubygems_version: 3.2.15
85
+ signing_key:
87
86
  specification_version: 4
88
- summary: Track your work activities, write annotations, recap what you did for a week,
89
- month or specific days... and much more!
87
+ summary: "*** DEPRECATED 'work_md' was renamed 'work-md'"
90
88
  test_files: []