translation 1.1.2 → 1.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/translation_io/client/base_operation.rb +3 -0
- data/lib/translation_io/railtie.rb +5 -0
- 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: 81a04ebcdf1b01843182685b2a8049e957407262
|
4
|
+
data.tar.gz: 0fd561f17e328a59f29d1327b36520c18ee9506c
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 3b93cedff15a6d98cbb61110c8dfd5ebb3c13305a40f650261795d76288da213ec6ee1fcc3b966c53f796605500b15ed8be2a03faab21515608b571dc90ac993
|
7
|
+
data.tar.gz: 4de981b5049fd0e46aab74de8e42d82555dfcc42bfbbb1405b89c87a6aacb63f88723a217e28851a1fe6e5360c8f8c001a2c8504c044fb4c3de453381eb5d631
|
@@ -39,11 +39,14 @@ module TranslationIO
|
|
39
39
|
return parsed_response
|
40
40
|
elsif response.code.to_i == 400 && parsed_response.has_key?('error')
|
41
41
|
$stderr.puts "[Error] #{parsed_response['error']}"
|
42
|
+
exit
|
42
43
|
else
|
43
44
|
$stderr.puts "[Error] Unknown error."
|
45
|
+
exit
|
44
46
|
end
|
45
47
|
rescue Errno::ECONNREFUSED
|
46
48
|
$stderr.puts "[Error] Server not responding."
|
49
|
+
exit
|
47
50
|
end
|
48
51
|
end
|
49
52
|
|
@@ -14,6 +14,11 @@ module TranslationIO
|
|
14
14
|
initializer 'translation.rails_extensions' do
|
15
15
|
ActionController::Base.send(:include, TranslationIO::Controller)
|
16
16
|
end
|
17
|
+
|
18
|
+
config.after_initialize do
|
19
|
+
# Ensure GetText.locale is in sync with I18n's default locale at boot
|
20
|
+
I18n.locale = I18n.default_locale
|
21
|
+
end
|
17
22
|
end
|
18
23
|
end
|
19
24
|
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: translation
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.1.
|
4
|
+
version: 1.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Aurelien Malisart
|
@@ -9,7 +9,7 @@ authors:
|
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date: 2015-03-
|
12
|
+
date: 2015-03-31 00:00:00.000000000 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: gettext
|