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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 39c8ffec184a7718984dbb08bcf5ac400634ba14f2a4365006a47f2ea9a11599
4
- data.tar.gz: 9bb3c2671a5151b8367523a6409d5eaf667264ba3859958c5a61e0eb4dd1ab6e
3
+ metadata.gz: 69b76dec04365023274b874715ec07fe995543d3ce7ee27d6e552028ff351a59
4
+ data.tar.gz: 5823cde4d61f5838dfa1a1595cef8cc756e8e3a067d185d7b6b3b52071dd1886
5
5
  SHA512:
6
- metadata.gz: 6ffa608dd8f74a219a3937f76719d43df337689449624af7631a8f0ab894bc6d134f4af8055f429d6416d43382aabd3629fb79e255d5e42a15f96fc798e66cf6
7
- data.tar.gz: 6e9f9a3878dbf74f0448f471bc8194bb7c29c727a612404eec5778d92af85680dd3d584625fcfaa15f3ef0d8da741cef6347a1f357f2a0475ca627d53e3bfc02
6
+ metadata.gz: 962afa2fcb556de349fbba543a1a16754d6d9e31284ba01fb2569c703e4ea87b2f4b1a137afe829ada4e415676c89f35a08d1c4f989664a98af2ebb222561de3
7
+ data.tar.gz: 471a487b4478f14c16b87a0d5dc87c22043c5650633fb085ef06ee77ae8190d2db8d8ef8f9fc5728dc08e79b4ac8ba35dcaca075ea860dfff83f229ee1fd308b
@@ -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.insert(0, params[:locale])
42
+ locales.unshift(params[:locale])
43
43
  elsif session[:locale]
44
- locales.insert(0, session[:locale])
44
+ locales.unshift(session[:locale])
45
45
  end
46
46
 
47
47
  ::R18n::I18n.new(
@@ -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', '>= 1.3'
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.0.5
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-07-19 00:00:00.000000000 Z
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.0.5
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.0.5
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: []