wolf_core 0.1.81 → 0.1.82

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: 4d8f5848e0da080deb068e1249aa74d70f8c87d247708a0a8d0ea1a696969126
4
- data.tar.gz: d00831a1455a158cc7faeb8399e88ab1271c4835a34b2ebd99445c3b37dc0abe
3
+ metadata.gz: 23473c2b309abb30732eeeb899af9f028cdd040f9e7ad7a2d7af060248d49d3b
4
+ data.tar.gz: a9c390678c164da149a21163b3a139ad49368e9e48ecc69580db24bedaf86892
5
5
  SHA512:
6
- metadata.gz: 78598feba5aa74437332e0bc8a7b09781a1bafbb0751b2911a6580a08544e28dd06c79ff6f8ae6e01f279115a96b3eb6e3c1f78e4cbfbdcc2092378a00f6fc67
7
- data.tar.gz: 2c8d15ebb467c97fd2f471e031e2dad412025bd40947e4cb097c77ef83b16c9c0d7d13b979bb31f7617c34f0c6835f0cb89a47f5a09e79dfd259778133a267cf
6
+ metadata.gz: 11b90e14e12f07bfcf09f148950bde91509a508f16928baf8427ba24d9510f38633a5cbc73e4bff8720f3a501f53c7947cacf1092c3b3bb5460b5917e8d891c1
7
+ data.tar.gz: 77f4b387b06f286a04766b6c4c45052411953a88cc32dd6ba98645c410a4009508878612eadedcff91724867a4065b7d59dd5c0cd8fc5eb5fe3ef7b7fc49247b
@@ -4,5 +4,11 @@ module WolfCore
4
4
  return if str.nil?
5
5
  str.gsub(/([A-Z])/, ' \1').strip.downcase.capitalize
6
6
  end
7
+
8
+ def clean_phone_number(phone)
9
+ cleaned_phone = phone.gsub(/\D/, '')
10
+ last_ten_digits = cleaned_phone[-10, 10]
11
+ last_ten_digits
12
+ end
7
13
  end
8
14
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module WolfCore
4
- VERSION = "0.1.81"
4
+ VERSION = "0.1.82"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wolf_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.81
4
+ version: 0.1.82
5
5
  platform: ruby
6
6
  authors:
7
7
  - Javier Roncallo