i18n-backend-http 0.1.0 → 0.1.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- i18n-backend-http (0.1.0)
4
+ i18n-backend-http (0.1.1)
5
5
  faraday
6
6
  gem_of_thrones
7
7
  i18n
@@ -14,7 +14,7 @@ GEM
14
14
  bundler
15
15
  rake
16
16
  crack (0.3.1)
17
- faraday (0.8.0)
17
+ faraday (0.8.1)
18
18
  multipart-post (~> 1.1)
19
19
  gem_of_thrones (0.2.1)
20
20
  i18n (0.6.0)
data/Readme.md CHANGED
@@ -71,6 +71,7 @@ I18n.backend = I18n::Backend::Chain.new(
71
71
  )
72
72
  ```
73
73
 
74
+
74
75
  TODO
75
76
  ====
76
77
  - available_locales is not implemented, since we did not need it
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/mgrosser/code/tools/i18n-backend-http
3
3
  specs:
4
- i18n-backend-http (0.0.1)
4
+ i18n-backend-http (0.1.0)
5
5
  faraday
6
6
  gem_of_thrones
7
7
  i18n
@@ -14,7 +14,7 @@ GEM
14
14
  bundler
15
15
  rake
16
16
  crack (0.3.1)
17
- faraday (0.8.0)
17
+ faraday (0.8.1)
18
18
  multipart-post (~> 1.1)
19
19
  gem_of_thrones (0.2.1)
20
20
  i18n (0.4.2)
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: /Users/mgrosser/code/tools/i18n-backend-http
3
3
  specs:
4
- i18n-backend-http (0.0.1)
4
+ i18n-backend-http (0.1.0)
5
5
  faraday
6
6
  gem_of_thrones
7
7
  i18n
@@ -14,7 +14,7 @@ GEM
14
14
  bundler
15
15
  rake
16
16
  crack (0.3.1)
17
- faraday (0.8.0)
17
+ faraday (0.8.1)
18
18
  multipart-post (~> 1.1)
19
19
  gem_of_thrones (0.2.1)
20
20
  i18n (0.6.0)
@@ -45,7 +45,7 @@ module I18n
45
45
 
46
46
  def lookup(locale, key, scope = [], options = {})
47
47
  key = ::I18n.normalize_keys(locale, key, scope, options[:separator])[1..-1].join('.')
48
- translations(locale)[key]
48
+ lookup_key translations(locale), key
49
49
  end
50
50
 
51
51
  def translations(locale)
@@ -109,6 +109,11 @@ module I18n
109
109
  def path(locale)
110
110
  raise "implement path"
111
111
  end
112
+
113
+ # hook for extension with other resolution method
114
+ def lookup_key(translations, key)
115
+ translations[key]
116
+ end
112
117
  end
113
118
  end
114
119
  end
@@ -1,7 +1,7 @@
1
1
  module I18n
2
2
  module Backend
3
3
  class Http
4
- VERSION = Version = "0.1.0"
4
+ VERSION = Version = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: i18n-backend-http
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Michael Grosser
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-05-18 00:00:00 Z
18
+ date: 2012-06-14 00:00:00 Z
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
21
21
  name: i18n