prune-erickson 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/bin/prune-erickson +15 -7
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0764deb0a204a83b4ed2a1f1b689348cf61461ab
4
- data.tar.gz: 9d22ed53859ca4d9168e7d23261ffc8190aae7c8
3
+ metadata.gz: 3d135d6eeb760755fc8ec72c27b25297a058dc4b
4
+ data.tar.gz: 0f9550758232f2d5075c9d95410341b961dbe645
5
5
  SHA512:
6
- metadata.gz: c9626ba2ca84e98c745824dc22eb216567f388aff2604d8e7726697a33ceae1430026637c6b6af0b22e7eaa0f4a2989851b2a4d6be8347800769decd2a31d71a
7
- data.tar.gz: 5767bb307f628a7408ce8ac3285e3e7aa4be404a661716af4b3233d21592dd519dc564c58745843d1afb27e32d57c895732e7969def4e052d72c15f463f6404a
6
+ metadata.gz: 021c27ad76577ad05b1663a07896d34c5502f67469d152fa5a919105759c874d3808539dab9b73fdce429be46b7f78398fbdc2ef826c966be209dc076454ec0b
7
+ data.tar.gz: dd1434a739092ebf00c1164ee5472d623f20a0dbc326a7f32cbc407c73de75e1f21fea90f6d2e693393e4d368ed8e518f967a54118a478007a0646e8288ff86d
data/bin/prune-erickson CHANGED
@@ -42,7 +42,7 @@ if ARGV.length == 1 and ARGV[0] == "help"
42
42
  elsif ARGV.length == 1 and (ARGV[0] == "-v" or ARGV[0] == "-version" or ARGV[0] == "version")
43
43
  print "\n
44
44
  -------------------
45
- | VERSION | 0.0.3 |
45
+ | VERSION | 0.0.4 |
46
46
  -------------------
47
47
  "
48
48
  print "
@@ -138,12 +138,12 @@ elsif ARGV.length == 1 and ARGV[0] != "version" or ARGV[0] != "help" or ARGV[0]
138
138
  }
139
139
  end
140
140
  print "~~>writing new file \n\n"
141
- # print newvar
141
+
142
142
  newvar.map! { |x|
143
143
 
144
144
  if x == "OppCommunity"
145
145
  print "renaming field #{x} \n".colorize(:light_blue)
146
- x = "Community"
146
+ x = "Community of Interest"
147
147
  elsif x == "FirstName"
148
148
  print "renaming field #{x} \n".colorize(:light_blue)
149
149
  x = "First Name"
@@ -152,19 +152,22 @@ elsif ARGV.length == 1 and ARGV[0] != "version" or ARGV[0] != "help" or ARGV[0]
152
152
  x = "Last Name"
153
153
  elsif x == "Address"
154
154
  print "renaming field #{x} \n".colorize(:light_blue)
155
- x = "Address"
155
+ x = "Address 1"
156
156
  elsif x == "city"
157
157
  print "renaming field #{x} \n".colorize(:light_blue)
158
158
  x = "city"
159
159
  elsif x == "State"
160
160
  print "renaming field #{x} \n".colorize(:light_blue)
161
- x = "State"
161
+ x = "State or Province"
162
162
  elsif x == "Zipcode"
163
163
  print "renaming field #{x} \n".colorize(:light_blue)
164
- x = "Zipcode"
164
+ x = "Zip or Postal Code"
165
165
  elsif x == "Email"
166
166
  print "renaming field #{x} \n".colorize(:light_blue)
167
- x = "Email"
167
+ x = "Email Address"
168
+ elsif x == "Phone"
169
+ print "renaming field #{x} \n".colorize(:light_blue)
170
+ x = "Home Phone"
168
171
  else
169
172
  x=x
170
173
  end
@@ -176,6 +179,11 @@ elsif ARGV.length == 1 and ARGV[0] != "version" or ARGV[0] != "help" or ARGV[0]
176
179
 
177
180
  newSheet.row(i).push newvar[(i*testvar.length)+j]
178
181
  end
182
+ if i > 0
183
+ newSheet.row(i).push "IL"
184
+ else
185
+ newSheet.row(i).push "ILorCC"
186
+ end
179
187
  end
180
188
  print "output file is in same file under out.xls to open, use \n \n open #{output}"
181
189
  print "\n"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prune-erickson
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alejandro Londono