Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

puma-clocker

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

puma-clocker

  • 0.1.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

Puma::Clocker

A super-basic gem to calculate the speed of your Rails project's rails server command.

Installation

Add the following to your Rails project's Gemfile:

gem 'puma-clocker'

Bundle it!

Usage

Time-calculations are done based on the exact time you executed the command. For this, the system's date command is used. Its output is passed to rails s as an environment variable, like so:

STARTING_PUMA_ON=$(date) rails s

or as an abbreviated variable, like so:

SPO=$(date) rails s

The time-calculation result will appear in the last line shown right after Puma's own messages:

alt text

If you are loading other environment variables from a .env file, you might be tempted to do the same for SPO. However, keep in mind that the start-time considered then will not be the true starting time of the command.

FAQs

Package last updated on 15 Apr 2015

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc