rack-user-locale 1.2.0 → 1.3.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/MIT-LICENSE +1 -1
- data/README.md +16 -18
- data/VERSION +1 -1
- metadata +39 -11
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c0309b9693bca3c0277caa6678a05322cbcb197374e036efd9f0a1909be450a6
|
4
|
+
data.tar.gz: 0e08b6bc4d7ab39d99c56b1ad7c69036817be89c3dae5628ae35c128f349a5cf
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 979f73d6c22e4575c66078d0bcadec97e5498401fe778a0a3f044a083369a9b542b6891cee1daaf5cc5c34cb0435b85acb8b4c0066863cb0c96cbe96421f74cc
|
7
|
+
data.tar.gz: 2c0c1d348b5f908e48d0891ff4dae994b8160bc9e41258423f1c231a6976407616214f8559e28016f66e2cf4a7db1b5c674abd3afdea08b786862e58e9718ade
|
data/MIT-LICENSE
CHANGED
data/README.md
CHANGED
@@ -1,16 +1,9 @@
|
|
1
1
|
# Rack User Locale
|
2
2
|
|
3
3
|
[![Gem Version](https://badge.fury.io/rb/rack-user-locale.svg)](http://badge.fury.io/rb/rack-user-locale)
|
4
|
-
[![Build Status](https://travis-ci.org/schinery/rack-user-locale.svg?branch=master)](https://travis-ci.org/schinery/rack-user-locale)
|
5
4
|
|
6
5
|
A Rack module for getting and setting a user's locale via a cookie or browser default language.
|
7
6
|
|
8
|
-
Credit to these gems for pointing me in the direction I wanted to go in...
|
9
|
-
|
10
|
-
- https://github.com/rack/rack-contrib/blob/master/lib/rack/contrib/locale.rb
|
11
|
-
- https://github.com/jeremyvdw/rack-locale-selector
|
12
|
-
- https://github.com/jeffersongirao/rack-locale_chooser
|
13
|
-
|
14
7
|
## Installation
|
15
8
|
|
16
9
|
```
|
@@ -75,18 +68,23 @@ If you don't want to use the default cookie name of `user-locale`, you can set i
|
|
75
68
|
use Rack::UserLocale, cookie_name: "some-cookie-name"
|
76
69
|
```
|
77
70
|
|
78
|
-
##
|
71
|
+
## Inspiration
|
72
|
+
|
73
|
+
Credit to these gems for pointing me in the direction I wanted to go in...
|
74
|
+
|
75
|
+
- https://github.com/rack/rack-contrib/blob/main/lib/rack/contrib/locale.rb
|
76
|
+
- https://github.com/jeremyvdw/rack-locale-selector
|
77
|
+
- https://github.com/jeffersongirao/rack-locale_chooser
|
78
|
+
|
79
|
+
## Contributing
|
80
|
+
|
81
|
+
Bug reports and pull requests are welcome on GitHub at https://github.com/technicalpanda/rack-user-locale. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the [Contributor Covenant](http://contributor-covenant.org) code of conduct.
|
82
|
+
|
83
|
+
## License
|
79
84
|
|
80
|
-
|
81
|
-
- Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it.
|
82
|
-
- Fork the project.
|
83
|
-
- Start a feature/bugfix branch.
|
84
|
-
- Commit and push until you are happy with your contribution.
|
85
|
-
- Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
|
86
|
-
- Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.
|
85
|
+
The gem is available as open source under the terms of the [MIT License](https://opensource.org/licenses/MIT).
|
87
86
|
|
88
|
-
##
|
87
|
+
## Code of Conduct
|
89
88
|
|
90
|
-
|
89
|
+
Everyone interacting with this project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the [code of conduct](https://github.com/technicalpanda/rack-user-locale/blob/main/CODE_OF_CONDUCT.md).
|
91
90
|
|
92
|
-
See LICENSE.txt for further details.
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
1.
|
1
|
+
1.3.0
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rack-user-locale
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Stuart Chinery
|
8
|
-
autorequire:
|
8
|
+
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2021-02-01 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: i18n
|
@@ -142,18 +142,46 @@ dependencies:
|
|
142
142
|
requirements:
|
143
143
|
- - "~>"
|
144
144
|
- !ruby/object:Gem::Version
|
145
|
-
version: '
|
145
|
+
version: '1.7'
|
146
146
|
type: :development
|
147
147
|
prerelease: false
|
148
148
|
version_requirements: !ruby/object:Gem::Requirement
|
149
149
|
requirements:
|
150
150
|
- - "~>"
|
151
151
|
- !ruby/object:Gem::Version
|
152
|
-
version: '
|
152
|
+
version: '1.7'
|
153
|
+
- !ruby/object:Gem::Dependency
|
154
|
+
name: rubocop-minitest
|
155
|
+
requirement: !ruby/object:Gem::Requirement
|
156
|
+
requirements:
|
157
|
+
- - "~>"
|
158
|
+
- !ruby/object:Gem::Version
|
159
|
+
version: '0.10'
|
160
|
+
type: :development
|
161
|
+
prerelease: false
|
162
|
+
version_requirements: !ruby/object:Gem::Requirement
|
163
|
+
requirements:
|
164
|
+
- - "~>"
|
165
|
+
- !ruby/object:Gem::Version
|
166
|
+
version: '0.10'
|
167
|
+
- !ruby/object:Gem::Dependency
|
168
|
+
name: rubocop-rake
|
169
|
+
requirement: !ruby/object:Gem::Requirement
|
170
|
+
requirements:
|
171
|
+
- - "~>"
|
172
|
+
- !ruby/object:Gem::Version
|
173
|
+
version: '0.5'
|
174
|
+
type: :development
|
175
|
+
prerelease: false
|
176
|
+
version_requirements: !ruby/object:Gem::Requirement
|
177
|
+
requirements:
|
178
|
+
- - "~>"
|
179
|
+
- !ruby/object:Gem::Version
|
180
|
+
version: '0.5'
|
153
181
|
description: A Rack module for getting and setting a user's locale via a cookie or
|
154
182
|
browser default language.
|
155
183
|
email:
|
156
|
-
-
|
184
|
+
- code@technicalpanda.co.uk
|
157
185
|
executables: []
|
158
186
|
extensions: []
|
159
187
|
extra_rdoc_files: []
|
@@ -164,11 +192,11 @@ files:
|
|
164
192
|
- VERSION
|
165
193
|
- lib/rack/user-locale/version.rb
|
166
194
|
- lib/user_locale.rb
|
167
|
-
homepage: https://github.com/
|
195
|
+
homepage: https://github.com/technicalpanda/rack-user-locale
|
168
196
|
licenses:
|
169
197
|
- MIT
|
170
198
|
metadata: {}
|
171
|
-
post_install_message:
|
199
|
+
post_install_message:
|
172
200
|
rdoc_options: []
|
173
201
|
require_paths:
|
174
202
|
- lib
|
@@ -176,15 +204,15 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
176
204
|
requirements:
|
177
205
|
- - ">="
|
178
206
|
- !ruby/object:Gem::Version
|
179
|
-
version: '
|
207
|
+
version: '2.5'
|
180
208
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
181
209
|
requirements:
|
182
210
|
- - ">="
|
183
211
|
- !ruby/object:Gem::Version
|
184
212
|
version: '0'
|
185
213
|
requirements: []
|
186
|
-
rubygems_version: 3.1.
|
187
|
-
signing_key:
|
214
|
+
rubygems_version: 3.1.4
|
215
|
+
signing_key:
|
188
216
|
specification_version: 4
|
189
217
|
summary: A Rack module for getting and setting a user's locale
|
190
218
|
test_files: []
|