lib/geordi/settings.rb in geordi-9.6.1 vs lib/geordi/settings.rb in geordi-10.0.0
- old
+ new
@@ -6,19 +6,31 @@
module Geordi
class Settings
GLOBAL_SETTINGS_FILE_NAME = Util.testing? ? './tmp/global_settings.yml'.freeze : File.join(ENV['HOME'], '.config/geordi/global.yml').freeze
LOCAL_SETTINGS_FILE_NAME = Util.testing? ? './tmp/local_settings.yml'.freeze : './.geordi.yml'.freeze
- ALLOWED_GLOBAL_SETTINGS = %w[ pivotal_tracker_api_key auto_update_chromedriver pivotal_tracker_project_ids git_initials hint_probability ].freeze
+ ALLOWED_GLOBAL_SETTINGS = %w[
+ auto_update_chromedriver
+ git_initials
+ hint_probability
+ irb_flags
+ pivotal_tracker_api_key
+ pivotal_tracker_project_ids
+ ].freeze
+
ALLOWED_LOCAL_SETTINGS = %w[ pivotal_tracker_project_ids ].freeze
SETTINGS_WARNED = 'GEORDI_INVALID_SETTINGS_WARNED'
def initialize
read_settings
end
# Global settings
+ def irb_flags
+ @global_settings['irb_flags']
+ end
+
def pivotal_tracker_api_key
@global_settings['pivotal_tracker_api_key'] || gitpt_api_key_old || inquire_pt_api_key
end
def pivotal_tracker_api_key=(value)