utopia 1.9.9 → 1.9.10
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.
- checksums.yaml +4 -4
- data/lib/utopia/localization.rb +3 -0
- data/lib/utopia/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: d93b751226f2a2d2f1223e3d130350cad98d3e7e
|
|
4
|
+
data.tar.gz: 6ead01dad6ec80dd6c8008eca8138a66d818c15b
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: d7ad52b27e644c19d6c23e8dcccdddfd7105e6e0ae95a684bcd95c2b9267daf196dca2e0b3bdd6349a877d37743940c0a211f3faebed29336ebf282ec43b3ffa
|
|
7
|
+
data.tar.gz: 6cf337b69acecb40bc163b552b9ded754028d4f7b57a22771065ce6a3b48253da731542e78cc8cbcaa0a3337c15b3656ee7b0a53b4fcb2b8cb0a8489ae81b975
|
data/lib/utopia/localization.rb
CHANGED
|
@@ -158,6 +158,9 @@ module Utopia
|
|
|
158
158
|
|
|
159
159
|
# Returns available languages based on the order languages:
|
|
160
160
|
return @all_locales & languages
|
|
161
|
+
rescue HTTP::Accept::ParseError
|
|
162
|
+
# If we fail to parse the browser Accept-Language header, we ignore it (silently).
|
|
163
|
+
return []
|
|
161
164
|
end
|
|
162
165
|
|
|
163
166
|
def nonlocalized?(env)
|
data/lib/utopia/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,14 +1,14 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: utopia
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 1.9.
|
|
4
|
+
version: 1.9.10
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Samuel Williams
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2017-01-
|
|
11
|
+
date: 2017-01-15 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: trenni
|