Peephole

Circle CI Code Climate Test Coverage

A log viewer engine for Rails.

Installation

# Gemfile
gem 'peephole'

$ bundle

$ rails g peephole:install
       route  mount Peephole::Engine => "/peephole"
      create  config/initializers/log_tags.rb
      create  config/initializers/peephole.rb

Configuration

# config/initializers/peephole.rb
Peephole.configure do |config|
  config.paginates_per = 200
  config.peeper? do
    # current_user.role.admin?

    # admin_user_signed_in?

    # authenticate_or_request_with_http_basic do |user, pass|
    #   user == ENV['PEEPHOLE_USER'] && pass == ENV['PEEPHOLE_PASS']
    # end
  end
end

Example

$ git clone [email protected]:tnantoka/peephole.git
$ cd peephole/spec/dummy
$ rails s
$ open http://localhost:3000/peephole

License

MIT

Author

@tnantoka