mn_utils_gem 1.15.6 → 1.15.7
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/mn_utils_gem.rb +1 -0
- data/lib/mn_utils_gem/sso.rb +0 -7
- data/lib/mn_utils_gem/string_to_bool.rb +8 -0
- data/lib/mn_utils_gem/version.rb +1 -1
- metadata +2 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6076a491d8d16afa7ac5fa4a6da41d40c2747594bfcf7d1c6666a468fa44f62d
|
4
|
+
data.tar.gz: 48ff43f18168f9cafde81d24993f298ad9d20a2122bc4d04ca82fc2d32691ab2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 849db3a18c93dde017e84cd2d3feb10ecb14c4cbf0713d5a0ddd784ae49735545debd0ef8e6beea59071a3e3a9278bbe920e65bbc6f1e292cce547c7d20d6f1e
|
7
|
+
data.tar.gz: 8c65155eeb41fd696b857d2275c23cbe6b44bc5851da667c0fef3dc7a78fe3d245f219b349117a8a220289034e1ada5ee8ebceecf9a1aaea44ad15ad8779e17c
|
data/lib/mn_utils_gem.rb
CHANGED
data/lib/mn_utils_gem/sso.rb
CHANGED
@@ -81,7 +81,6 @@ module MnUtilsAuth
|
|
81
81
|
def redis_server
|
82
82
|
@redis_server ||= Redis.new(
|
83
83
|
url: ENV['MN_REDIS_URL'],
|
84
|
-
ssl: string_to_bool(ENV['MN_REDIS_SSL']),
|
85
84
|
semian: {
|
86
85
|
name: 'user-service',
|
87
86
|
tickets: 4,
|
@@ -100,11 +99,5 @@ module MnUtilsAuth
|
|
100
99
|
"#{SSO_COOKIE_VALUE_PREFIX}#{SecureRandom.uuid}"
|
101
100
|
end
|
102
101
|
|
103
|
-
def string_to_bool(s)
|
104
|
-
return true if s =~ (/^(true|t|yes|y|1)$/i)
|
105
|
-
return false if s.empty? || s =~ (/^(false|f|no|n|0)$/i)
|
106
|
-
|
107
|
-
raise ArgumentError.new "invalid value: #{s}"
|
108
|
-
end
|
109
102
|
end
|
110
103
|
end
|
data/lib/mn_utils_gem/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mn_utils_gem
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.15.
|
4
|
+
version: 1.15.7
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Shamim Mirzai
|
@@ -174,6 +174,7 @@ files:
|
|
174
174
|
- lib/mn_utils_gem/gui.rb
|
175
175
|
- lib/mn_utils_gem/site_action.rb
|
176
176
|
- lib/mn_utils_gem/sso.rb
|
177
|
+
- lib/mn_utils_gem/string_to_bool.rb
|
177
178
|
- lib/mn_utils_gem/transactional_email.rb
|
178
179
|
- lib/mn_utils_gem/version.rb
|
179
180
|
homepage: https://github.com/mumsnet/mn_utils_gem
|