Module: Tcelfer
- Defined in:
- lib/tcelfer.rb,
lib/tcelfer/cli.rb,
lib/tcelfer/config.rb,
lib/tcelfer/errors.rb,
lib/tcelfer/storage.rb,
lib/tcelfer/version.rb,
lib/tcelfer/cli/report.rb,
lib/tcelfer/models/day.rb,
lib/tcelfer/cli/db_tasks.rb
Overview
Copyright © 2019 Anthony Gargiulo <[email protected]>
This program is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see <www.gnu.org/licenses/>.
Defined Under Namespace
Modules: CLI, Models Classes: CliError, Config, DuplicateDayError, Error, ReportError, Storage, StorageError
Constant Summary collapse
- DAY_RATINGS =
Found these on Reddit
[ 'Amazing, Fantastic Day', 'Really Good, Happy Day', 'Normal, Average Day', 'Exhausted, Tired Day', 'Stressed-Out, Frantic Day', 'Frustrated, Angry Day', 'Depressed, Sad Day' ].freeze
- RATING_TO_COLOR_MAP =
Separate because reasons that used to make sense and fixing is not worth at the moment
DAY_RATINGS.zip( # ordering taking from a mix of examples on reddit # and my own preferences. # '#4B0082' is indigo and :green != 'green' :( ['maroon', :green, 'peru', '#4B0082', :red, 'orange', :blue] # based on ColorPicker generic RGB on macOS if you want those # %w[#ca4674 #6ba089 #cca04d #4b0082 #bd2d26 #fb9f09 #5a86ac] ).to_h.freeze
- VERSION =
'1.1.2'
Class Method Summary collapse
Class Method Details
.config ⇒ Object
45 46 47 48 |
# File 'lib/tcelfer.rb', line 45 def self.config @config ||= Config.new @config.validate! end |