Sha256: 6315278bad0b38c244d008f4b8c1735bed71567db27f5adf87a6543939bc85af
Contents?: true
Size: 617 Bytes
Versions: 1
Compression:
Stored size: 617 Bytes
Contents
require 'i18n' require 'i18n/coverage/version' require 'i18n/coverage/reporter' require 'i18n/backend/key_logger' require 'i18n/coverage/config' module I18n module Coverage def self.start I18n::Backend::Simple.include I18n::Backend::KeyLogger at_exit { I18n::Coverage::Reporter.report } end def self.config @config ||= Config.new end def self.configure @config = Config.new yield @config if block_given? end end end if ENV['I18N_COVERAGE'] warn 'DEPRECATED: use I18n::Coverage.start instead' I18n::Backend::Simple.include I18n::Backend::KeyLogger end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
i18n-coverage-0.2.0 | lib/i18n/coverage.rb |