flame-r18n 1.1.0 → 1.1.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flame/r18n.rb +3 -1
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 883953fcd9390e5fbf7a482c6de232d4109fe371
4
- data.tar.gz: 2c3de34304b2bba1b5d253247dcfe729a97b3b4c
3
+ metadata.gz: 69bd2e6db6ed7abde28c22f4492b15b4178b29e1
4
+ data.tar.gz: 9a378e6ba2e23b69d09365d84059dbda391b8a67
5
5
  SHA512:
6
- metadata.gz: 20193b690de320d2aec0e1743fce71c1ec736796ee88f7f822189ed0775fa3adec1de954c8c7904087601295bbc3c81696f5c94c3d5bd3ec8ccde1c65f5106fe
7
- data.tar.gz: 44798d07232f99b28da44eebc5b70a37ab18c9615c401784f1e446d0102d8cfa4da679030a94b3fa8314eb207c6bd30c8ccd436568980facade3d9402f0509af
6
+ metadata.gz: 3f9d73601ce2aef09de850fd05a32860b9462b785392e402788208aaa64d9e2248fcca68c429ad5846d68203b7cc0059ba53c8048b0fbe2b9f4eccb80a0d2096
7
+ data.tar.gz: eada5ba6df5ae02f72e531819cd3a8abb90556a6b0c8614ddc61c8c56c0ae97cc47959e1afa4af42e785e87cd0d9aee9d580b0813ffa6557f057234820a8bf9f
data/lib/flame/r18n.rb CHANGED
@@ -17,7 +17,9 @@ module Flame
17
17
 
18
18
  def execute(method)
19
19
  load_r18n
20
- session[:locale] = preferred_locale || ::R18n.get.locale.code
20
+ session[:locale] = (
21
+ preferred_locale || ::R18n.get.locale.code
22
+ ).gsub(/^\W+|\W+$/, '')
21
23
  super
22
24
  end
23
25
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flame-r18n
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.0
4
+ version: 1.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alexander Popov
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-20 00:00:00.000000000 Z
11
+ date: 2016-09-28 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: flame