r18n-core 2.1.0 → 2.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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 7bb0f68d184f4e8e36b9c3b0710b7bcda32e9dbc
4
- data.tar.gz: c0e10b3c35f008b31e2d8173bef0047d2c478e6f
3
+ metadata.gz: 11bc4dc5f4a8d95074acf505f1da8e2ee403bdca
4
+ data.tar.gz: cbce6b1aa70f9ae9b07b9c7b737c631989e1fba8
5
5
  SHA512:
6
- metadata.gz: 1f91f3a5de1bf85cabf0b6b6e8b922c0b1458016acde513f805c1d8cd00939170d98be77207975f50d57fe0f092cfad70df2275ffab28e8a56780d141d3aa909
7
- data.tar.gz: 074759b4e79f377f18a901eaeaf55f347bc078620349eb68b4aaceb7e54572774c09e74920612cc546c69b25898f0fe214966651083d596b8cfacdf90934b7df
6
+ metadata.gz: 0717a656b81a5b0e85d83375099077f3d65d322e6ed69c4ec042fb418f812340aabf8a36fc48bc38fd942ebcfb6c66c871b6a1fec5c13f0801b22619d5998241
7
+ data.tar.gz: 77ff86c5ba4493c592031d83975bc200a70cf782e5c602130cf6c37fbf23f2a1148043a0ceb277cc525c1742968dbac196c6f0780d8042c01e3d9336d0ac0560
data/ChangeLog.md CHANGED
@@ -1,3 +1,6 @@
1
+ ## 2.1.1 (Barcelona)
2
+ * Better sanity check for Accept-Language header (by Viktors Rotanovs).
3
+
1
4
  ## 2.1 (Một)
2
5
  * Add Vietnamese locale (by Nguyễn Văn Được).
3
6
  * Add Persian locale.
@@ -149,7 +149,7 @@ module R18n
149
149
  end
150
150
  locales << @@default
151
151
  locales.each_with_index do |locale, i|
152
- if locale =~ /[_-]/
152
+ if locale =~ /[^_-]+[_-]/
153
153
  locales.insert(i + 1, locale.match(/([^_-]+)[_-]/)[1])
154
154
  end
155
155
  end
@@ -1,3 +1,3 @@
1
1
  module R18n
2
- VERSION = '2.1.0'.freeze unless defined? R18n::VERSION
2
+ VERSION = '2.1.1'.freeze unless defined? R18n::VERSION
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: r18n-core
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.0
4
+ version: 2.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrey Sitnik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-10-29 00:00:00.000000000 Z
11
+ date: 2015-12-09 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: |2
14
14
  R18n is a i18n tool to translate your Ruby application.