timecop
Lograge
Our great sponsors
timecop | Lograge | |
---|---|---|
4 | 7 | |
3,334 | 3,398 | |
- | - | |
6.1 | 5.0 | |
19 days ago | 30 days ago | |
Ruby | Ruby | |
MIT License | MIT License |
Stars - the number of stars that a project has on GitHub. Growth - month over month growth in stars.
Activity is a relative number indicating how actively a project is being developed. Recent commits have higher weight than older ones.
For example, an activity of 9.0 indicates that a project is amongst the top 10% of the most actively developed projects that we are tracking.
timecop
-
About time: how to unit test code that depends on time
The Ruby equivalent is Timecop
https://github.com/travisjeffery/timecop
Dynamic languages have the advantage to be able to rewrite the standard library classes at runtime.
-
What questions do you consider important for a Ruby on Rails technical interview?
vs https://github.com/travisjeffery/timecop yes it's true and i am happy to show everybody that they don't need timecop in rails test suite anymore.
- What are your top useful gems?
-
Travel in time in development/staing/... in your Rails app
I believe you already familiar with the gem https://github.com/travisjeffery/timecop which is very useful for testing.
Lograge
-
Manage Your Ruby Logs Like a Pro
You can choose from a number of third-party logging libraries, including Logging — based on Java's log4j library — and Lograge. Lograge is a feature-rich logging library meant to simplify the often messy and verbose Rails logs characteristic of the default application logger.
- Best rails tools to automatically handle logging of things like all a user's actions, or changes to a record in a module - primarily for audit purposes.
-
What are your top useful gems?
Also a big fan of Lograge, because I just can't stand Rails default logs.
-
Rails application boilerplate for fast MVP development
add lograge
-
Searchable logs with Filebeat and Elastic Stack
To output rails logs into JSON format, we are using lograge gem once you add it in Gemfile and bundle install it will be available to use in you application.
-
Logging in Ruby with Logger and Lograge
There are plenty of options when it comes to picking up a 3rd-party logging framework. The most popular of these is Lograge. Let's take a look at it!
-
Just curious : why is Rails default logging so verbose ?
Check out https://github.com/roidrage/lograge for some settings that work nicely for us in production
What are some alternatives?
Parallel Tests - Ruby: 2 CPUs = 2x Testing Speed for RSpec, Test::Unit and Cucumber
Semantic Logger - Semantic Logger is a feature rich logging framework, and replacement for existing Ruby & Rails loggers.
vcr - Record your test suite's HTTP interactions and replay them during future test runs for fast, deterministic, accurate tests.
Fluentd - Fluentd: Unified Logging Layer (project under CNCF)
R Spec - A minimalist RSpec clone with all the essentials. [Moved to: https://github.com/cyril/r_spec-clone.rb]
LogStashLogger - Ruby logger that writes logstash events
Knapsack - Knapsack splits tests evenly across parallel CI nodes to run fast CI build and save you time.
Log4r - Log4r is a comprehensive and flexible logging library for use in Ruby programs. It features a heirarchical logging system of any number of levels, custom level names, multiple output destinations per log event, custom formatting, and more.
mutant - Automated code reviews via mutation testing - semantic code coverage.
Logging - A flexible logging library for use in Ruby programs based on the design of Java's log4j library.
Spring - Rails application preloader
Sidekiq - Simple, efficient background processing for Ruby