immosquare-extensions 0.1.22 → 0.1.24

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: 9340872ccbc9a67247ee5e5d07144909b38a2a521267b5a0610cc9ed8125c08e
4
- data.tar.gz: bb68bbc53a56035518e9ccd4e2a8c4b121b5180d0183e03fd85226fe6aebad05
3
+ metadata.gz: 3d4ded5cc647e8126d631f8ca563eef84565028fd6ce7a02b2c02cc7f8d6e5fa
4
+ data.tar.gz: 1d6d1a14217c893831fc42d213bd501dc3e5395495ccf374c57ab548f6cfd7f2
5
5
  SHA512:
6
- metadata.gz: f4390440477c636fae97533afd2d4a6a63d4decf195a565172c907379946ab91aec6052a461cafa70928b701df32a6560b1729656a3a470d9f72985e72a2b1b0
7
- data.tar.gz: f13ddf10e5ba8d02d238e43fa42cc98a239bb747d37c0990c16af787a647eb3d52308122e8c16af379dfac214c74ee2ec1a74f193b7ada055f481e0638881035
6
+ metadata.gz: 76e11581eeb74ed8b42f24f224b9784ba5421efd926061dcb5e5aa2e71aa0940a4caf4478624a07d63e76b06be1f7b7f53f586052c472b08eeaec0158d148c42
7
+ data.tar.gz: 48b1920ad971819e4118cfa0d20dbd560cf1bad98394fa5ebb2277eb655ce9c8dcae8fe007b5065876a42b5dbb1616f32f196c1c886ec15d10a0ea7d0e2fb16a
@@ -5,7 +5,7 @@ module ImmosquareExtensions
5
5
 
6
6
  initializer "immosquare_extensions.action_view" do
7
7
  ActiveSupport.on_load(:action_view) do
8
- include ImmosquareExtensions::MailHelper
8
+ include ImmosquareExtensions::PreviewMailerHelper
9
9
  end
10
10
  end
11
11
 
@@ -10,16 +10,19 @@ class String
10
10
  ## Any other value will return nil.
11
11
  ##
12
12
  ## Examples:
13
- ## "true".to_boolean => true
14
- ## "false".to_boolean => false
15
- ## "random".to_boolean => nil
13
+ ## "true".to_boolean => true
14
+ ## "false".to_boolean => false
15
+ ## "random".to_boolean => nil
16
+ ## "random".to_boolean(true) => true
16
17
  ##============================================================##
17
- def to_boolean
18
+ def to_boolean(default_value = nil)
18
19
  case downcase
19
20
  when "true"
20
21
  true
21
22
  when "false"
22
23
  false
24
+ else
25
+ default_value
23
26
  end
24
27
  end
25
28
 
@@ -1,3 +1,3 @@
1
1
  module ImmosquareExtensions
2
- VERSION = "0.1.22".freeze
2
+ VERSION = "0.1.24".freeze
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immosquare-extensions
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.22
4
+ version: 0.1.24
5
5
  platform: ruby
6
6
  authors:
7
7
  - IMMO SQUARE
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-05-07 00:00:00.000000000 Z
11
+ date: 2024-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: unicode_utils
@@ -62,7 +62,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
62
62
  - !ruby/object:Gem::Version
63
63
  version: '0'
64
64
  requirements: []
65
- rubygems_version: 3.5.9
65
+ rubygems_version: 3.5.11
66
66
  signing_key:
67
67
  specification_version: 4
68
68
  summary: Utility extensions for Ruby core classes