sinatra-r18n 3.0.5 → 3.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sinatra/r18n.rb +2 -2
- data/sinatra-r18n.gemspec +2 -2
- metadata +11 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 69b76dec04365023274b874715ec07fe995543d3ce7ee27d6e552028ff351a59
|
4
|
+
data.tar.gz: 5823cde4d61f5838dfa1a1595cef8cc756e8e3a067d185d7b6b3b52071dd1886
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 962afa2fcb556de349fbba543a1a16754d6d9e31284ba01fb2569c703e4ea87b2f4b1a137afe829ada4e415676c89f35a08d1c4f989664a98af2ebb222561de3
|
7
|
+
data.tar.gz: 471a487b4478f14c16b87a0d5dc87c22043c5650633fb085ef06ee77ae8190d2db8d8ef8f9fc5728dc08e79b4ac8ba35dcaca075ea860dfff83f229ee1fd308b
|
data/lib/sinatra/r18n.rb
CHANGED
@@ -39,9 +39,9 @@ module Sinatra
|
|
39
39
|
|
40
40
|
locales = ::R18n::I18n.parse_http(request.env['HTTP_ACCEPT_LANGUAGE'])
|
41
41
|
if params[:locale]
|
42
|
-
locales.
|
42
|
+
locales.unshift(params[:locale])
|
43
43
|
elsif session[:locale]
|
44
|
-
locales.
|
44
|
+
locales.unshift(session[:locale])
|
45
45
|
end
|
46
46
|
|
47
47
|
::R18n::I18n.new(
|
data/sinatra-r18n.gemspec
CHANGED
@@ -26,8 +26,8 @@ Gem::Specification.new do |s|
|
|
26
26
|
s.author = 'Andrey Sitnik'
|
27
27
|
s.email = 'andrey@sitnik.ru'
|
28
28
|
s.homepage = 'https://github.com/ai/r18n/tree/master/sinatra-r18n'
|
29
|
-
s.license = 'LGPL-3'
|
29
|
+
s.license = 'LGPL-3.0'
|
30
30
|
|
31
31
|
s.add_dependency 'r18n-core', "= #{R18n::VERSION}"
|
32
|
-
s.add_dependency 'sinatra',
|
32
|
+
s.add_dependency 'sinatra', '>= 1.3', '< 3'
|
33
33
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sinatra-r18n
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.
|
4
|
+
version: 3.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: 2018-
|
11
|
+
date: 2018-08-20 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: r18n-core
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - '='
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: 3.
|
19
|
+
version: 3.1.1
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - '='
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: 3.
|
26
|
+
version: 3.1.1
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: sinatra
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -31,6 +31,9 @@ dependencies:
|
|
31
31
|
- - ">="
|
32
32
|
- !ruby/object:Gem::Version
|
33
33
|
version: '1.3'
|
34
|
+
- - "<"
|
35
|
+
- !ruby/object:Gem::Version
|
36
|
+
version: '3'
|
34
37
|
type: :runtime
|
35
38
|
prerelease: false
|
36
39
|
version_requirements: !ruby/object:Gem::Requirement
|
@@ -38,6 +41,9 @@ dependencies:
|
|
38
41
|
- - ">="
|
39
42
|
- !ruby/object:Gem::Version
|
40
43
|
version: '1.3'
|
44
|
+
- - "<"
|
45
|
+
- !ruby/object:Gem::Version
|
46
|
+
version: '3'
|
41
47
|
description: |2
|
42
48
|
A Sinatra extension that provides i18n support to translate your web
|
43
49
|
application. It is just a wrapper for R18n core library.
|
@@ -66,7 +72,7 @@ files:
|
|
66
72
|
- spec/spec_helper.rb
|
67
73
|
homepage: https://github.com/ai/r18n/tree/master/sinatra-r18n
|
68
74
|
licenses:
|
69
|
-
- LGPL-3
|
75
|
+
- LGPL-3.0
|
70
76
|
metadata: {}
|
71
77
|
post_install_message:
|
72
78
|
rdoc_options: []
|