No release in over 3 years
Low commit activity in last 3 years
Log your deprecations in log file.
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

~> 1.3.5

Runtime

>= 0
 Project Readme

Deprecations Collector

This gem is collecting Rails deprecations from your Rails app into a separate log file.

How it could be used: imagine you are doing Rails upgrade, you have many specs and you want to find all deprecations and fix them before version upgrade. You can log all deprecations in log file, fix them. It helps with version upgrade.

Installation

Add gem to Gemfile:

gem "deprecations_collector", group: [:development, :test] # or even production

Then run bundle install.

In config/environments/development.rb or config/environments/test.rb. You can also do it for production.

put:

  config.active_support.deprecation = [:log, DeprecationsCollector.instance]
  # or
  config.active_support.deprecation = [:stderr, DeprecationsCollector.instance]
  # or
  config.active_support.deprecation = DeprecationsCollector.instance
  # or
  config.active_support.deprecation = DeprecationsCollector.instance(filename: 'file-with-deprecations.log')

Start your Rails application, or specs/tests. Than check logs/deprecations.log.

Log file will be stored in Rails.root/logs folder.

Contributing

You are welcome to contribute. Gem has a dummy application which helps with development.

cd test/dummy

bundle install

rake db:migrate

rails s