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 +4 -4
- data/README.md +3 -3
- data/lib/i18n/missing/backend.rb +3 -0
- data/lib/i18n/missing/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5956b394bf3b5687a12f0203224c79dd5185b0d0
|
4
|
+
data.tar.gz: 6ac85acc77da1f2a0e76c98f6bab5ddc5a3a0ccd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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/
|
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-
|
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-
|
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
|
data/lib/i18n/missing/backend.rb
CHANGED
@@ -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})}|
|
data/lib/i18n/missing/version.rb
CHANGED
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.
|
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-
|
11
|
+
date: 2015-08-17 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|