0.0
No commit activity in last 3 years
No release in over 3 years
A Cinch plug-in to evaluate Ruby code on https://eval.in.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

~> 2.1
~> 1.6
 Project Readme

Eval.in plugin

This is a plugin that allows users to evaluate Ruby code on https://eval.in/. It can be sent queries as follow:

>> "Hello world"'
10>> TRUE.type # Ruby 1.0 # MRI 1.0
18>> true.respond_to? :type # MRI 1.8.7
19>> true.type # MRI 1.9.3
20>> false.class # MRI 2.0.0
21>> 'strange'.length # MRI 2.1

Installation

To install this, run the following command:

gem install cinch-eval-in

Here's an example of how to use it:

require "cinch"
require "cinch/plugins/eval_in"

bot = Cinch::Bot.new do
  configure do |c|
    # You can of course add more plugins and other options here.
    c.plugins.plugins = [Cinch::Plugins::EvalIn]
  end
end

bot.start