immosquare-constants 0.1.2 → 0.1.4

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: 8403926356849e266166dfa73088487e5799990725056aa5a548e31d74864e29
4
- data.tar.gz: bc38b84a421748d12f87b1fa4a4a1667162a8785d042ecc2380266aad04bf478
3
+ metadata.gz: b66dc71166a72385fc57f8ca295de970863a611525758a2915f7af8d125134ba
4
+ data.tar.gz: 9eaccf234fbedb822ca65444a3ca8adb8baa7fc50bfa9be3e32ff38bf11860cf
5
5
  SHA512:
6
- metadata.gz: 6c7659c4c7421f273c2366e91ad23b6eff32b3a013def8a8dbf3b5933a91e17089caa5546ae52f634783182c57d9d1a145a291d924e86943e52789e83898565c
7
- data.tar.gz: c896808dccc5a50f24c6d84a98e6d752bc69d2c07b0c11ff1f3bcfd15320192590b9a02d1ebba7b54a8ed05d1897ca09717fcc4688c0150f4bf6c6c224de0345
6
+ metadata.gz: '08e16b7c3551beaa21fb9a9072489916092c28c61c8499d389f92ce06ccc699f68ca1ed9e52db153f359cb881b7e33d57f8d0f173e1c992fbdf7be755bfdbe3a'
7
+ data.tar.gz: 2bcaf01f1c7b13f7aa154fbea68c5b559902441d68308721049176402bea7e6fd208eb83ae2134aa0c34ac762160f7a3fd1529e4aadf8b324e97481f9a861494
@@ -1,5 +1,5 @@
1
1
  module ImmosquareConstants
2
- module Locale
2
+ module Color
3
3
  COLORS = {
4
4
  :aliceblue => "#f0f8ff",
5
5
  :antiquewhite => "#faebd7",
@@ -151,9 +151,12 @@ module ImmosquareConstants
151
151
  :yellowgreen => "#9acd32"
152
152
  }.freeze
153
153
 
154
+ class << self
155
+
156
+ def color_name_to_hex(color_name)
157
+ COLORS[color_name.to_sym] || nil
158
+ end
154
159
 
155
- def color_name_to_hex(color_name)
156
- COLORS[color_name.to_sym] || nil
157
160
  end
158
161
  end
159
162
  end
@@ -0,0 +1,11 @@
1
+ module ImmosquareConstants
2
+ module Regex
3
+ class << self
4
+
5
+ def email
6
+ /\A[^@\s]+@[^@\s]+\z/
7
+ end
8
+
9
+ end
10
+ end
11
+ end
@@ -1,3 +1,3 @@
1
1
  module ImmosquareConstants
2
- VERSION = "0.1.2".freeze
2
+ VERSION = "0.1.4".freeze
3
3
  end
@@ -1,5 +1,6 @@
1
1
  require "immosquare-constants/locale"
2
2
  require "immosquare-constants/color"
3
+ require "immosquare-constants/regex"
3
4
 
4
5
  module ImmosquareConstants
5
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: immosquare-constants
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - IMMO SQUARE
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-10-06 00:00:00.000000000 Z
11
+ date: 2023-11-27 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: ImmosquareConstants gem provides a robust set of constants to facilitate
14
14
  application development across various domains
@@ -21,6 +21,7 @@ files:
21
21
  - lib/immosquare-constants.rb
22
22
  - lib/immosquare-constants/color.rb
23
23
  - lib/immosquare-constants/locale.rb
24
+ - lib/immosquare-constants/regex.rb
24
25
  - lib/immosquare-constants/version.rb
25
26
  homepage: https://github.com/IMMOSQUARE/immosquare-constants
26
27
  licenses: