crm_formatter 2.63 → 2.64

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: 1bf4fa12e1f8f398363644a747c64838fa774c014d8f27d4514abd3471f7ce4f
4
- data.tar.gz: 8a8c42530a244857442e77f7a150f5f2283729cb887cec1e786768fa362f1c1b
3
+ metadata.gz: 92cfbafb9cbfe1960251a1f1855ac76691358c8d30a15d3ecc81d7892d33a85b
4
+ data.tar.gz: 34b2614956573f9d571348932a2465d21b88523d47cbdd2d73cae6a4357dde97
5
5
  SHA512:
6
- metadata.gz: 8332654e5233d71ea626ee493725b6db48c919842e30bf73e039a4415742f63278dffa0b16fd40934aec8d1181db94e502e3047090af8a4b0c189be4f99c940e
7
- data.tar.gz: 24a697fa5e03bf05c0efab0a5888fc231eac4db59787ac07bd2cc9549a109a67404f38d2106207c9682037aa8211c87833f344e0a5e46cbd733d6ea2fb60660e
6
+ metadata.gz: b4db07d17a983dbff0459ccfc9a23b6a853580240276b73540017021ae9f39a04200f7dd47545b53e3b62055da7af5cb39e7e3c897a1d3129589de97e21a7ce9
7
+ data.tar.gz: 2fd347108d0947e00626cfdfd2cf37a192cb7e74546805ad6ab8855c7d98d7eb9b44e07ea1c608056b206c9813b542f8cd9452aa2261ec72a8af2b992a042f4c
data/Rakefile CHANGED
@@ -18,23 +18,23 @@ task :console do
18
18
  # formatted_data = format_with_report
19
19
  # formatted_phones = format_phones
20
20
  # formatted_urls = format_urls
21
- formatted_proper = format_proper
22
- # binding.pry
23
- # formatted_propers = format_propers
21
+ # formatted_proper = format_proper
22
+ formatted_propers = format_propers
24
23
  # formatted_addresses = format_addresses
25
- # binding.pry
24
+ binding.pry
25
+
26
26
  IRB.start
27
27
  end
28
28
 
29
29
  #############################################
30
30
  def format_proper
31
- proper_string = 'the gmc and bmw-world of AUSTIN tx'
31
+ proper_string = 'quick auto-approval gmc and bmw-world of AUSTIN tx, INC'
32
32
  formatted_proper = CrmFormatter.format_proper(proper_string)
33
33
  end
34
34
 
35
35
  def format_propers
36
36
  array_of_propers = [
37
- 'the gmc and bmw-world of AUSTIN tx',
37
+ 'quick auto-approval gmc and bmw-world of AUSTIN tx, INC',
38
38
  '123 Car-world Kia OF CHICAGO IL',
39
39
  'Main Street Ford in DALLAS tX',
40
40
  'broad st fiat of houston',
@@ -39,6 +39,8 @@ module CrmFormatter
39
39
  str = add_space(str)
40
40
 
41
41
  grab_ups.map do |up|
42
+ str = str.gsub(" #{up.capitalize},", " #{up}")
43
+ str = str.gsub(" #{up.capitalize}.", " #{up}")
42
44
  str = str.gsub(" #{up.capitalize} ", " #{up} ")
43
45
  str = str.gsub(" #{up.capitalize}-", " #{up}-")
44
46
  str = str.gsub("-#{up.capitalize} ", "-#{up} ")
@@ -78,7 +80,7 @@ module CrmFormatter
78
80
  ups = %w[I]
79
81
  brands = %w[BMW CDJR CJDR GMC CJD I]
80
82
  professional = %w[BA BS MA JD DC PA MD VP SVP EVP CMO CFO CEO]
81
- states = %w[AK AL AR AZ CA CT DC DE FL GA HI IA ID IL KS KY LA MA MD MI MN MO NC ND NE NH NJ NM NV NY OH OK PA RI SC SD TN TX UT VA VT WA WI WV WY]
83
+ states = %w[AK AL AR AZ CA CO CT DC DE FL GA HI IA ID IL KS KY LA MA MD MI MN MO NC ND NE NH NJ NM NV NY OH OK PA RI SC SD TN TX UT VA VT WA WI WV WY]
82
84
  directions = %w[NE NW SE SW]
83
85
  ups = [brands, professional, states, directions].flatten.uniq
84
86
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: false
2
2
 
3
3
  module CrmFormatter
4
- VERSION = "2.63"
4
+ VERSION = "2.64"
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crm_formatter
3
3
  version: !ruby/object:Gem::Version
4
- version: '2.63'
4
+ version: '2.64'
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Booth