evertils 0.3.8 → 0.3.9

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: 9e842768fbe2f278375d2237fd4f574b5384bc0e
4
- data.tar.gz: 2206bb78084adf5ea0f47d5efdb70be1e8ca808f
3
+ metadata.gz: 796f9bb4facdc3778213af99ee7dc7e46d36e14b
4
+ data.tar.gz: 4093e91c0a15976b90ba6c1e20928718d413ce6f
5
5
  SHA512:
6
- metadata.gz: 6219f5fcce8ada651fac7abcfa8b7f2e194bb3946e1045600bb74729d5f745473075ab14c46122d74cc9c34617725f4eb2490cac2e1b1dca222f251e95ea1943
7
- data.tar.gz: c5dc1a67ae390280ddf15ce6709735bf8e1ea698c187589ace2d0e6791a4c3fdcc0c565be78cb020588033e62c7645ee35eea6b909b4ddb4fb7e1e7714f6b66c
6
+ metadata.gz: d03716691b0fc187481fb51466a8af147d3209f168c2ccdd87e766ab48f81c0194b49cdd22c7a0a13cd0aa4ac611d896192e396d7340c8bdcccae795f5b0f5ce
7
+ data.tar.gz: 46d8aaf7bb54a98c87da3f4752e4c302f7e9ca2442cf749754532a3034869bf659eb9bf64cd345a3054bec002bf607c35335f07950fab40e111ea4cf61b9baf3
data/lib/evertils/type.rb CHANGED
@@ -18,7 +18,8 @@ module Evertils
18
18
  data = {
19
19
  title: @title,
20
20
  body: @content,
21
- parent_notebook: self.class::NOTEBOOK
21
+ parent_notebook: self.class::NOTEBOOK,
22
+ tags: tags || []
22
23
  }
23
24
 
24
25
  raise 'Invalid title' if @title.nil?
@@ -11,6 +11,12 @@ module Evertils
11
11
  @title = @format.date_templates[NOTEBOOK]
12
12
  @content = @format.template_contents(NOTEBOOK)
13
13
  end
14
+
15
+ #
16
+ # @since 0.3.9
17
+ def tags
18
+ ["day-#{Date.today.yday}"]
19
+ end
14
20
  end
15
21
  end
16
22
  end
@@ -11,17 +11,12 @@ module Evertils
11
11
  @name = @args.first
12
12
  @title = "#{@name} #{DateTime.now.strftime('%m-%Y')}"
13
13
  @content = @format.template_contents(NOTEBOOK)
14
+ end
14
15
 
15
- # BUG: inability to tag notes lies somewhere in evertils-common,
16
- # specifically in how note.tag works
17
- # As this is non-functional, lets not run it - commented out for now
18
- # tag_manager = Evertils::Common::Manager::Tag.instance
19
- # month_tag = tag_manager.find_or_create("month-#{Date.today.month}")
20
- # mts_note.tag(month_tag.prop(:name))
21
-
22
- # TODO: commented out until support for multiple tags is added
23
- # client_tag = tag_manager.find_or_create(@name)
24
- # mts_note.tag(client_tag.prop(:name))
16
+ #
17
+ # @since 0.3.9
18
+ def tags
19
+ ["day-#{Date.today.yday}"]
25
20
  end
26
21
  end
27
22
  end
@@ -10,13 +10,12 @@ module Evertils
10
10
 
11
11
  @title = @format.date_templates[NOTEBOOK]
12
12
  @content = @format.template_contents(NOTEBOOK)
13
+ end
13
14
 
14
- # BUG: inability to tag notes lies somewhere in evertils-common,
15
- # specifically in how note.tag works
16
- # As this is non-functional, lets not run it - commented out for now
17
- # tag_manager = Evertils::Common::Manager::Tag.instance
18
- # month_tag = tag_manager.find_or_create("month-#{Date.today.month}")
19
- # note.tag(month_tag.prop(:name))
15
+ #
16
+ # @since 0.3.9
17
+ def tags
18
+ ["month-#{Date.today.month}"]
20
19
  end
21
20
 
22
21
  #
@@ -19,6 +19,12 @@ module Evertils
19
19
  end
20
20
  end
21
21
 
22
+ #
23
+ # @since 0.3.9
24
+ def tags
25
+ ["day-#{Date.today.yday}"]
26
+ end
27
+
22
28
  private
23
29
 
24
30
  # Get friday's note
@@ -10,13 +10,12 @@ module Evertils
10
10
 
11
11
  @title = @format.date_templates[NOTEBOOK]
12
12
  @content = @format.template_contents(NOTEBOOK)
13
+ end
13
14
 
14
- # BUG: inability to tag notes lies somewhere in evertils-common,
15
- # specifically in how note.tag works
16
- # As this is non-functional, lets not run it - commented out for now
17
- # tag_manager = Evertils::Common::Manager::Tag.instance
18
- # week_tag = tag_manager.find_or_create("week-#{Date.today.cweek}")
19
- # note.tag(week_tag.prop(:name))
15
+ #
16
+ # @since 0.3.9
17
+ def tags
18
+ ["week-#{Date.today.cweek}"]
20
19
  end
21
20
 
22
21
  #
@@ -1,3 +1,3 @@
1
1
  module Evertils
2
- VERSION = '0.3.8'.freeze
2
+ VERSION = '0.3.9'.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.8
4
+ version: 0.3.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Priebe
@@ -140,7 +140,6 @@ files:
140
140
  - lib/evertils/types/weekly.rb
141
141
  - lib/evertils/utils.rb
142
142
  - lib/evertils/version.rb
143
- - logs/.gitignore
144
143
  homepage: http://rubygems.org/gems/evertils
145
144
  licenses:
146
145
  - MIT
data/logs/.gitignore DELETED
@@ -1,4 +0,0 @@
1
- # Ignore everything in this directory
2
- *
3
- # Except this file
4
- !.gitignore