evertils 0.3.1.3 → 0.3.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/controllers/generate.rb +4 -4
- data/lib/controllers/new.rb +4 -4
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 43ad7a896a71c0d795fc1055a1978fe3986704b9
|
4
|
+
data.tar.gz: 17ad2c9211937a80a6412496e675773aff61acd6
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 558b29635656f446dbda191c5ab8df1b20351db0c05e3c9a9b10b5a4e0361c3f5f8b74639f00f897c11ee758556cea56fadf45ffba7598e0711b631785e7c643
|
7
|
+
data.tar.gz: 1b85ed113a17f793c9d8eabc363a1d83bde975aa2ac404ba70ce27b34e00d7dac1a97dae31a1f51b690c9b959e350e347c7a4924d59f3381e02835f29003a500
|
data/lib/controllers/generate.rb
CHANGED
@@ -39,7 +39,7 @@ module Evertils
|
|
39
39
|
body += to_enml($config.custom_sections[NOTEBOOK_DAILY]) if $config.custom_sections[NOTEBOOK_DAILY]
|
40
40
|
parent_notebook = NOTEBOOK_DAILY
|
41
41
|
|
42
|
-
@model.create_note(title, body, parent_notebook)
|
42
|
+
@model.create_note(title: title, body: body, parent_notebook: parent_notebook)
|
43
43
|
end
|
44
44
|
|
45
45
|
# generate weekly notes
|
@@ -55,7 +55,7 @@ module Evertils
|
|
55
55
|
end
|
56
56
|
end
|
57
57
|
|
58
|
-
note = @model.create_note(title, body, parent_notebook)
|
58
|
+
note = @model.create_note(title: title, body: body, parent_notebook: parent_notebook)
|
59
59
|
|
60
60
|
tag_manager = Evertils::Common::Manager::Tag.new
|
61
61
|
week_tag = tag_manager.find("week-#{DateTime.now.cweek + 1}")
|
@@ -69,7 +69,7 @@ module Evertils
|
|
69
69
|
body += to_enml($config.custom_sections[NOTEBOOK_MONTHLY]) if $config.custom_sections[NOTEBOOK_MONTHLY]
|
70
70
|
parent_notebook = NOTEBOOK_MONTHLY
|
71
71
|
|
72
|
-
note = @model.create_note(title, body, parent_notebook)
|
72
|
+
note = @model.create_note(title: title, body: body, parent_notebook: parent_notebook)
|
73
73
|
|
74
74
|
tag_manager = Evertils::Common::Manager::Tag.new
|
75
75
|
month_tag = tag_manager.find("month-#{DateTime.now.strftime('%-m')}")
|
@@ -86,7 +86,7 @@ module Evertils
|
|
86
86
|
parent_notebook = NOTEBOOK_MTS
|
87
87
|
|
88
88
|
# create the note from template
|
89
|
-
mts_note = @model.create_note(title, body, parent_notebook)
|
89
|
+
mts_note = @model.create_note(title: title, body: body, parent_notebook: parent_notebook)
|
90
90
|
|
91
91
|
# tag it
|
92
92
|
# TODO: maybe move this out of controller?
|
data/lib/controllers/new.rb
CHANGED
@@ -8,7 +8,7 @@ module Evertils
|
|
8
8
|
@methods_require_internet.push(:daily, :weekly, :monthly)
|
9
9
|
|
10
10
|
@title = "Evertils - Custom Note"
|
11
|
-
|
11
|
+
|
12
12
|
# command flag parser
|
13
13
|
OptionParser.new do |opt|
|
14
14
|
opt.banner = "#{Evertils::PACKAGE_NAME} new note [...-flags]"
|
@@ -54,7 +54,7 @@ module Evertils
|
|
54
54
|
message = @body
|
55
55
|
end
|
56
56
|
|
57
|
-
note = @model.create_note(@title, message, @notebook, @file, false, @created_on)
|
57
|
+
note = @model.create_note(title: @title, body: message, parent_notebook: @notebook, files: @file, shareable: false, created_on: @created_on)
|
58
58
|
|
59
59
|
if note[:note]
|
60
60
|
Notify.success("Note created")
|
@@ -74,8 +74,8 @@ module Evertils
|
|
74
74
|
|
75
75
|
# Prefix title to indicate it's shared status
|
76
76
|
@title = "[SHARED] #{@title}"
|
77
|
-
|
78
|
-
note = @model.create_note(@title, message, @notebook, @file, true, @created_on)
|
77
|
+
|
78
|
+
note = @model.create_note(title: @title, body: message, parent_notebook: @notebook, files: @file, shareable: true, created_on: @created_on)
|
79
79
|
|
80
80
|
if note[:share_url]
|
81
81
|
Notify.success("Note created and shared:\n#{note[:share_url]}")
|
data/lib/version.rb
CHANGED