utopia 1.9.9 → 1.9.10

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: 7de52a1351fcb76d75ab943aec244d0e99073efb
4
- data.tar.gz: 32969072fce26646b6d2ce0eba41237df56f0ade
3
+ metadata.gz: d93b751226f2a2d2f1223e3d130350cad98d3e7e
4
+ data.tar.gz: 6ead01dad6ec80dd6c8008eca8138a66d818c15b
5
5
  SHA512:
6
- metadata.gz: 34065160efd55c5a1c1f764a4ac5bad05439f59cfe0d5136d8c6f9c774686d8d4470fbd223ed9dcf88b73fb1bc027b3b0034655b7b6fb3e654e301b7e0ddd781
7
- data.tar.gz: 3afdb9c05d5e2dec4e55c2d70f81c1880d7db49a0420cc57928c220a0808bc6ecd1d5d4e78cc6cc8cc42d950d0a4174e73125248c215867d35eb31bbb3d338b4
6
+ metadata.gz: d7ad52b27e644c19d6c23e8dcccdddfd7105e6e0ae95a684bcd95c2b9267daf196dca2e0b3bdd6349a877d37743940c0a211f3faebed29336ebf282ec43b3ffa
7
+ data.tar.gz: 6cf337b69acecb40bc163b552b9ded754028d4f7b57a22771065ce6a3b48253da731542e78cc8cbcaa0a3337c15b3656ee7b0a53b4fcb2b8cb0a8489ae81b975
@@ -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)
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Utopia
22
- VERSION = "1.9.9"
22
+ VERSION = "1.9.10"
23
23
  end
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.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-14 00:00:00.000000000 Z
11
+ date: 2017-01-15 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: trenni