evertils 0.3.1.3 → 0.3.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 03a5a66e190a147f45aa893fec306b62e7821b7a
4
- data.tar.gz: 8c3b0cbd2182b6616c1ed38d2f6fd189bae9e5a2
3
+ metadata.gz: 43ad7a896a71c0d795fc1055a1978fe3986704b9
4
+ data.tar.gz: 17ad2c9211937a80a6412496e675773aff61acd6
5
5
  SHA512:
6
- metadata.gz: f694bef7de783773805265dfe81195a31f026c6f91bdbbdbca02662c14fdff364bac7ca9941411fc68ca7d81479c5c4623361ae4306f2922b2c2a9ab92bd1e62
7
- data.tar.gz: 8627ce35bd6f10b5d34062346c702c9abcad7665fc5bdb87970e0d70879d4a07c95ba167f67f920251616373f90f27af40b74eaab2a797c75f6bb975e25ad931
6
+ metadata.gz: 558b29635656f446dbda191c5ab8df1b20351db0c05e3c9a9b10b5a4e0361c3f5f8b74639f00f897c11ee758556cea56fadf45ffba7598e0711b631785e7c643
7
+ data.tar.gz: 1b85ed113a17f793c9d8eabc363a1d83bde975aa2ac404ba70ce27b34e00d7dac1a97dae31a1f51b690c9b959e350e347c7a4924d59f3381e02835f29003a500
@@ -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?
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Evertils
2
- VERSION = '0.3.1.3'
2
+ VERSION = '0.3.2'.freeze
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: evertils
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1.3
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Priebe