GitXplorerGitXplorer
s

lita-debug

public
0 stars
0 forks
0 issues

Commits

List of commits on branch master.
Unverified
3ca83007e3eda99ca9d46dd3fd18128a92d5ea2b

Update README

sspajus committed 7 years ago
Unverified
911f152414e836ec605fa012fe67db88727fef23

Add ruby 2.4.2 to travis

sspajus committed 7 years ago
Unverified
15a845c732e601b73a223a1147bfd3faa7304128

Update badges in readme

sspajus committed 7 years ago
Unverified
7bfb4f3eb3ab4684156a2bd91008b74c0d7306e4

Add initial implementation of debug plugin

sspajus committed 7 years ago

README

The README file for this repository.

lita-debug

Build Status Coverage Status

A plugin for debugging Lita interactively, in production.

Installation

Add lita-debug to your Lita instance's Gemfile:

gem "lita-debug"

Configuration

# lita_config.rb

Lita.configure do |config|
  config.handlers.debug.enable_eval = true
  config.handlers.debug.restrict_eval_to = [:admins]
  config.handlers.debug.restrict_debug_to = [:admins, :developers]
end

Usage

Lita > lita debug
---
:server:
  :hostname: minion.local
:room: !ruby/object:Lita::Room
  id: shell
  metadata: {}
  name: shell
:user: !ruby/object:Lita::User
  id: '1'
  metadata:
    name: Shell User
  name: Shell User

Lita > lita eval response.room.name
"shell"
Lita > lita eval robot.name
"Lita"
Lita > lita eval 1+2
3