i18n-missing 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 9091f92463300c4ed1baf0be7849d2aad85c6f14
4
- data.tar.gz: dbc50ea83e63fe7bcd13cb227086716d86e4cfa6
3
+ metadata.gz: 5956b394bf3b5687a12f0203224c79dd5185b0d0
4
+ data.tar.gz: 6ac85acc77da1f2a0e76c98f6bab5ddc5a3a0ccd
5
5
  SHA512:
6
- metadata.gz: 4ac81971412b2b3c32c1fe423882cc71adbadbfef2c087f1a4ba5e38baffb1c929ea288cc0a12353fcdc2633a60c46efefed2c0b9cd7936ce1e406c7e0397f65
7
- data.tar.gz: 4093e95b229e5b3f90d679a76c12aab4a5c38a62f9dfc6b0c5ac99912096984cce4b4f1818ba3d8ae5172c1b562e2b02d6a6577446f394c6feb5db900aa7a294
6
+ metadata.gz: ce7b22672bedbd80b44b1c85cafbbb897addeb0175031c3597d8a578f40e75f5042555bfb982e8e76e23b9e91338749e392b3a3fae7d13535e94fc432d6ece95
7
+ data.tar.gz: 42fb363324e0e2fb9fa71ced4dd0c81a55d9593dfc1dc88312957e37e2bc60ccf416b4c987c489bf800bf6da90bffe351be0535094fac1abd8e8c64f336a0b38
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # I18n::Missing
2
2
 
3
- Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/i18n/debug/log`. To experiment with that code, run `bin/console` for an interactive prompt.
3
+ Welcome to your new gem! In this directory, you'll find the files you need to be able to package up your Ruby library into a gem. Put your Ruby code in the file `lib/i18n/missing`. To experiment with that code, run `bin/console` for an interactive prompt.
4
4
 
5
5
  TODO: Delete this and the text above, and describe your gem
6
6
 
@@ -9,7 +9,7 @@ TODO: Delete this and the text above, and describe your gem
9
9
  Add this line to your application's Gemfile:
10
10
 
11
11
  ```ruby
12
- gem 'i18n-debug-log'
12
+ gem 'i18n-missing'
13
13
  ```
14
14
 
15
15
  And then execute:
@@ -32,7 +32,7 @@ To install this gem onto your local machine, run `bundle exec rake install`. To
32
32
 
33
33
  ## Contributing
34
34
 
35
- Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/i18n-debug-log. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
35
+ Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/i18n-missing. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](contributor-covenant.org) code of conduct.
36
36
 
37
37
 
38
38
  ## License
@@ -20,7 +20,10 @@ class I18n::Backend::Simple
20
20
  end
21
21
 
22
22
  def print_debug_message(keys, caller)
23
+ return if keys[1] == :simple_form
24
+
23
25
  caller_line = caller.detect{|f| f !~ /i18n/}
26
+
24
27
  (Gem.paths.path.clone << ENV['HOME']).each { |base| caller_line.sub!(base, '...') }
25
28
 
26
29
  puts %|I18n: couldn't find "\e[1;33m#{keys.map(&:to_s).join('.')}\e[0;0m"\n (from #{caller_line})}|
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module Missing
3
- VERSION = "0.1.0"
3
+ VERSION = "0.1.1"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-missing
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dmitry Galinsky
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-08-14 00:00:00.000000000 Z
11
+ date: 2015-08-17 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler