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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 34ccf6b962ba9d0c600c9c382909d963c90c974b3917ade3bfdfe8400f485958
4
- data.tar.gz: e18cec25d4609bd243bcc6dbc77365be5ba6697ac2219c4060307c24d03691dc
3
+ metadata.gz: 6076a491d8d16afa7ac5fa4a6da41d40c2747594bfcf7d1c6666a468fa44f62d
4
+ data.tar.gz: 48ff43f18168f9cafde81d24993f298ad9d20a2122bc4d04ca82fc2d32691ab2
5
5
  SHA512:
6
- metadata.gz: 716223af250d3b715100dd0eae29d5111d1f06ef292077b90d229ba832ebee4afe4525c028df20c4ea17c10636ed2e14c76d9a4dbe51762e238e6124c8cd366a
7
- data.tar.gz: c6b4481774032e00d0059543949a6e7a8d30fe9d831af7165acb63b47884d2d7cd89e41af31412e37465e1af0b25388bb102d5c6a34087b46793228cd15b2eef
6
+ metadata.gz: 849db3a18c93dde017e84cd2d3feb10ecb14c4cbf0713d5a0ddd784ae49735545debd0ef8e6beea59071a3e3a9278bbe920e65bbc6f1e292cce547c7d20d6f1e
7
+ data.tar.gz: 8c65155eeb41fd696b857d2275c23cbe6b44bc5851da667c0fef3dc7a78fe3d245f219b349117a8a220289034e1ada5ee8ebceecf9a1aaea44ad15ad8779e17c
@@ -1,4 +1,5 @@
1
1
  require "mn_utils_gem/version"
2
+ require "mn_utils_gem/string_to_bool"
2
3
  require "mn_utils_gem/site_action"
3
4
  require "mn_utils_gem/gui"
4
5
  require "mn_utils_gem/transactional_email"
@@ -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
@@ -0,0 +1,8 @@
1
+ class String
2
+ def to_bool
3
+ return true if self =~ (/^(true|t|yes|y|1)$/i)
4
+ return false if self.empty? || self =~ (/^(false|f|no|n|0)$/i)
5
+
6
+ raise ArgumentError.new "invalid value: #{self}"
7
+ end
8
+ end
@@ -1,3 +1,3 @@
1
1
  module MnUtilsGem
2
- VERSION = "1.15.6"
2
+ VERSION = "1.15.7"
3
3
  end
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.6
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