evertils 0.3.10 → 0.3.11

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: f3cc89aa250a441ec4ef84b6d87980dfe615fb5d
4
- data.tar.gz: b07a3f8df9c76f95e20762269476089db4e9b8a6
3
+ metadata.gz: ad62baedc7a7cc0b591ca277d9524a356f4feb26
4
+ data.tar.gz: c7e736bd63c4d2b461170f2d0a80f4acaf3e3bf6
5
5
  SHA512:
6
- metadata.gz: 956c3f11188732b6237cd0894690743f979b85bcba8f4b07b05fdfc3a3d2e38a9660510e631efca66362623c68bbb11b6f3dd412d8ebcf88988b6527bcde4e80
7
- data.tar.gz: 03133ea112159db4a711feff401580fed7758b933ce845072c665a4dbd4791e60efcbf6f0e4cb693602d7136f7916850553e3b4f8c894a0849fe94c0ffa33b32
6
+ metadata.gz: 38353d2f0d79183b55faebdcfc0afe4cd69a676baad72c81f0fd2f59573df0cff3b4b83c69f5b1ae789798fb8a12d3555009e6b84711449b6f95c30c0e96a650
7
+ data.tar.gz: 8287b24d155416fde7a379e5a3b26992188e34987f9df7a0355c02618012c039cd752bf5ee061a73deccb03193050b9ca2b53053f0a463ca277a973b0658affb
data/lib/evertils/type.rb CHANGED
@@ -3,6 +3,8 @@ module Evertils
3
3
  class Base
4
4
  attr_reader :title, :content, :notebook
5
5
 
6
+ COLOUR = 0xffffff
7
+
6
8
  #
7
9
  # @since 0.3.7
8
10
  def initialize(config, *args)
@@ -19,7 +21,8 @@ module Evertils
19
21
  title: @title,
20
22
  body: @content,
21
23
  parent_notebook: self.class::NOTEBOOK,
22
- tags: tags || []
24
+ tags: tags || [],
25
+ colour: self.class.COLOUR
23
26
  }
24
27
 
25
28
  raise 'Invalid title' if @title.nil?
@@ -2,6 +2,7 @@ module Evertils
2
2
  module Type
3
3
  class Daily < Type::Base
4
4
  NOTEBOOK = :Daily
5
+ COLOUR = 0xffe8b7
5
6
 
6
7
  #
7
8
  # @since 0.3.7
@@ -2,6 +2,7 @@ module Evertils
2
2
  module Type
3
3
  class MonthlyTaskSummary < Type::Base
4
4
  NOTEBOOK = :'Monthly Task Summaries'
5
+ COLOUR = 0xffe8b7
5
6
 
6
7
  #
7
8
  # @since 0.3.7
@@ -2,6 +2,7 @@ module Evertils
2
2
  module Type
3
3
  class Monthly < Type::Base
4
4
  NOTEBOOK = :Monthly
5
+ COLOUR = 0xffe8b7
5
6
 
6
7
  #
7
8
  # @since 0.3.7
@@ -2,6 +2,7 @@ module Evertils
2
2
  module Type
3
3
  class PriorityQueue < Type::Base
4
4
  NOTEBOOK = :'Priority Queue'
5
+ COLOUR = 0xffe8b7
5
6
 
6
7
  #
7
8
  # @since 0.3.7
@@ -2,6 +2,7 @@ module Evertils
2
2
  module Type
3
3
  class Weekly < Type::Base
4
4
  NOTEBOOK = :Weekly
5
+ COLOUR = 0xffe8b7
5
6
 
6
7
  #
7
8
  # @since 0.3.7
@@ -1,3 +1,3 @@
1
1
  module Evertils
2
- VERSION = '0.3.10'.freeze
2
+ VERSION = '0.3.11'.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.10
4
+ version: 0.3.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ryan Priebe