README.md in i18n-debug-1.0.0 vs README.md in i18n-debug-1.1.0

- old
+ new

@@ -1,7 +1,10 @@ # Ruby I18n Debug +[![Build Status][build-image]][build-link] +[![Gem Version][gem-image]][gem-link] + **Ever wondered which translations are being looked up by Rails, a gem, or simply your app? Wonder no more!** Rails' implicit translations, for instance, are a nice feature. But sometimes getting the key to, let's say, the `BillingAddress`' `street` attribute in @@ -31,10 +34,12 @@ ```ruby gem 'i18n-debug', group: :development ``` +If you need support for ruby < 2, make sure to use version 1.0.0. + ## Usage This gem works straight out of the box. If Rails is available, it will log using `Rails.logger.debug`. Otherwise it will log using `Logger.new($stdout).debug`. @@ -52,11 +57,11 @@ ```ruby # Collect stats on I18n key usage. i18n_stats = Hash.new { |stats, key| stats[key] = 0 } -I18n::Debug.on_lookup = lambda do |key, value| +I18n::Debug.on_lookup do |key, value| i18n_stats[key] += 1 if value end ``` ## Additional Information @@ -73,5 +78,10 @@ Philipe Fatio ([fphilipe](https://github.com/fphilipe)) ### License MIT License. Copyright 2014 Philipe Fatio + +[build-image]: https://travis-ci.org/fphilipe/i18n-debug.svg +[build-link]: https://travis-ci.org/fphilipe/i18n-debug +[gem-image]: https://badge.fury.io/rb/i18n-debug.svg +[gem-link]: https://rubygems.org/gems/i18n-debug