Skip to content
📇 Improved log view for your Solidus admin panel.
Ruby HTML Shell
Branch: master
Clone or download

Latest commit

Fetching latest commit…
Cannot retrieve the latest commit at this time.

Files

Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
.circleci
.github
app
bin
config
lib
spec
.gem_release.yml
.gitignore
.rspec
.rubocop.yml
Gemfile
LICENSE
README.md
Rakefile
solidus_log_viewer.gemspec

README.md

SolidusLogViewer

CircleCI

A log viewer for Solidus

Makes it easy for admin to view logs. Logs are anything in the log_entries table.

Currently only the payment model uses it, but the LogEntry is polymorphic so it will work with any other model

NOTE: app/views/admin/payments/_list.html.erb is overwritten by this gem

Installation

Add solidus_log_viewer to your Gemfile:

gem 'solidus_log_viewer'

Bundle your dependencies and run the installation generator:

bundle
bundle exec rails g solidus_log_viewer:install

Routes

You will get the following route:

admin_log_entries_path

You can optionally pass filters:

admin_log_entries_path(:source_type => 'Payment', :source_id => @payment.id)

Testing

First bundle your dependencies, then run rake. rake will default to building the dummy app if it does not exist, then it will run specs, and Rubocop static code analysis. The dummy app can be regenerated by using rake test_app.

bundle
bundle exec rake

When testing your application's integration with this extension you may use its factories. Simply add this require statement to your spec_helper:

require 'solidus_log_viewer/factories'

Releasing

Your new extension version can be released using gem-release like this:

bundle exec gem bump -v VERSION --tag --push --remote upstream && gem release

Copyright (c) 2011 Dynamo Design Studio, released under the New BSD License

You can’t perform that action at this time.