lib/ayadn/set.rb in ayadn-1.4.6 vs lib/ayadn/set.rb in ayadn-1.5.0

- old
+ new

@@ -69,16 +69,10 @@ end counts_config.log(args) counts_config.save end - # desc "format ITEM NUMBER", "Set ITEM parameter to NUMBER by default" - # map "formats" => :format - # def format(*args) - # puts args - # end - desc "color ITEM COLOR", "Set ITEM to COLOR" long_desc Descriptions.set_color map "colors" => :color map "colour" => :color map "colours" => :color @@ -158,21 +152,10 @@ def initialize Settings.load_config Settings.get_token Settings.init_config Logs.create_logger - unless Settings.options[:nicerank] - Settings.options[:nicerank] = { - threshold: 2.1, - cache: 48, - filter: true, - filter_unranked: false - } - end - unless Settings.options[:colors][:nicerank] - Settings.options[:colors][:nicerank] = :cyan - end end def log(args) x = "New value for '#{args[0]}' in 'NiceRank' => #{"%1.1f" % args[1].to_f}" puts "\n#{x}\n".color(:cyan) Logs.rec.info x @@ -380,30 +363,14 @@ Settings.options[:timeline][:show_real_name] = value end def show_date(value) Settings.options[:timeline][:show_date] = value end - def show_nicerank value - unless Settings.options[:nicerank] - Settings.options[:nicerank] = { - threshold: 2.1, - filter: true, - filter_unranked: false - } - end - unless Settings.options[:colors][:nicerank] - Settings.options[:colors][:nicerank] = :cyan - end - Settings.options[:timeline][:show_nicerank] = value - end def show_spinner value Settings.options[:timeline][:show_spinner] = value end def show_debug value - unless Settings.options[:colors][:debug] - Settings.options[:colors][:debug] = :cyan - end Settings.options[:timeline][:show_debug] = value end end class SetColor @@ -488,12 +455,8 @@ symbols color end def debug(color) Settings.options[:colors][:debug] = color.to_sym - end - - def nicerank(color) - Settings.options[:colors][:nicerank] = color.to_sym end end end