]> git.netwichtig.de Git - user/henk/code/ruby/rbot.git/commitdiff
Merge pull request #30 from ruby-rbot/dependabot/bundler/nokogiri-1.10.9
authorMatthias Hecker <36882671+mattzque@users.noreply.github.com>
Fri, 27 Mar 2020 20:00:16 +0000 (21:00 +0100)
committerGitHub <noreply@github.com>
Fri, 27 Mar 2020 20:00:16 +0000 (21:00 +0100)
Bump nokogiri from 1.6.1 to 1.10.9

Gemfile.lock
data/rbot/plugins/markov.rb

index 47f5836e9bb01e5360b78aaeddf07f53ad931dd8..b57346a714383d1d319a4d9a2c374abc649a797d 100644 (file)
@@ -36,7 +36,7 @@ GEM
       multi_json (~> 1.3)
       multi_xml (~> 0.5)
       rack (~> 1.2)
-    rack (1.5.2)
+    rack (1.6.13)
     shorturl (1.0.0)
     thread_safe (0.2.0)
       atomic (>= 1.1.7, < 2)
index eb9294e2b141bb00e75f17fbba183df3fb9ec6ca..abb10172d639db03f91e98386285c40bfdb6b5ef 100644 (file)
@@ -391,7 +391,7 @@ class MarkovPlugin < Plugin
 
   def status(m,params)
     if @bot.config['markov.enabled']
-      reply = _("markov is currently enabled, %{p}% chance of chipping in") % { :p => probability? }
+      reply = _("markov is currently enabled, %{p}%% chance of chipping in") % { :p => probability? }
       l = @learning_queue.length
       reply << (_(", %{l} messages in queue") % {:l => l}) if l > 0
       l = @upgrade_queue.length
@@ -494,7 +494,7 @@ class MarkovPlugin < Plugin
       @bot.config['markov.probability'] = params[:probability].to_i
       m.okay
     else
-      m.reply _("markov has a %{prob}% chance of chipping in") % { :prob => probability? }
+      m.reply _("markov has a %{prob}%% chance of chipping in") % { :prob => probability? }
     end
   end
 
@@ -749,9 +749,10 @@ plugin.map 'markov enable', :action => "enable"
 plugin.map 'markov disable', :action => "disable"
 plugin.map 'markov status', :action => "status"
 plugin.map 'markov stats', :action => "stats"
-plugin.map 'chat about :seed1 [:seed2]', :action => "chat"
+plugin.map 'chat about :seed1 [:seed2]', :action => "chat", :defaults => {:seed2 => nil}
 plugin.map 'chat', :action => "rand_chat"
 plugin.map 'markov probability [:probability]', :action => "probability",
+           :defaults => {:probability => nil},
            :requirements => {:probability => /^\d+%?$/}
 plugin.map 'markov learn from :file [:testing [:lines lines]] [using pattern *pattern]', :action => "learn_from", :thread => true,
            :requirements => {