i18n-tasks 0.2.6 → 0.2.7

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: e1bc1cb806707bc4c7658d1c26a943c92dbd654c
4
- data.tar.gz: b63519bafa3e4f0f149a553c10af48f6e16e5b0d
3
+ metadata.gz: 35d4f7d34c81cc84e6123e4c63cb27bee56f7877
4
+ data.tar.gz: a2faf5f22e2caba3fab9e08707e1dd3a98c14fc9
5
5
  SHA512:
6
- metadata.gz: 5b8b9bd686f9bfce0e95e335f28a14afa966acc6b2c7f3a916c8f5fe5ca6a9b7b33cac512684d768f1646f2e220f3bb4e46e1e5eaab3f178f07f3c0858e7c068
7
- data.tar.gz: a5384b5edd7c0fcf17d0bd4264e81e2db0f071ddf525933403370fd1fcf6bbc5c89788b4b8bb924f1e7645561ed253618556c1083a49de69ac6240b3dd7b751a
6
+ metadata.gz: 82f76ca5ab2e84949f760dfe043a449e19d7761e9d29391ed5269e665d79caf0e61d3908ce23a1e9336b34998af0d22a3a03fb6a6612c7fcad5407f61d0a3be5
7
+ data.tar.gz: d70a3d3db66c89d9d042039ebdf78322fb0cdf22bed4df99d56e7a0b6192cf7f6d82b2cb222cc76b4310b3d47b25ed03218aaac137d63562dff62059a4e05ff0
data/CHANGES.md CHANGED
@@ -1,10 +1,8 @@
1
- ## v0.2.6
1
+ ## v0.2.5..0.2.7
2
2
 
3
3
  * config/i18n-tasks.yml now processed with ERB (@glebm)
4
-
5
- ## v0.2.5
6
-
7
4
  * can now be used with any ruby apps, not just Rails (@glebm)
5
+ * more locale formats are considered valid (@glebm)
8
6
 
9
7
  ## v0.2.4
10
8
 
data/README.md CHANGED
@@ -73,7 +73,7 @@ For more examples see [the tests](/spec/i18n_tasks_spec.rb).
73
73
  Simply add to Gemfile:
74
74
 
75
75
  ```ruby
76
- gem 'i18n-tasks', '~> 0.2.6'
76
+ gem 'i18n-tasks', '~> 0.2.7'
77
77
  ```
78
78
 
79
79
  If you do not use Rails, you will also need to require the tasks in your Rakefile:
@@ -4,7 +4,7 @@ module I18n::Tasks::DataTraversal
4
4
  def t(hash = data[base_locale], key)
5
5
  if hash.is_a?(String)
6
6
  # has is a locale
7
- raise ArgumentError.new("invalid locale: #{hash}") if hash =~ /[^A-z-]/
7
+ raise ArgumentError.new("invalid locale: #{hash}") if hash =~ /[^A-z\d-]/
8
8
  hash = data[hash]
9
9
  end
10
10
  key.split('.').inject(hash) { |r, seg| r[seg] if r }
@@ -1,5 +1,5 @@
1
1
  module I18n
2
2
  module Tasks
3
- VERSION = '0.2.6'
3
+ VERSION = '0.2.7'
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-tasks
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.6
4
+ version: 0.2.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - glebm