prune-erickson 0.0.3 → 0.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/bin/prune-erickson +15 -7
- metadata +1 -1
checksums.yaml
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
---
|
|
2
2
|
SHA1:
|
|
3
|
-
metadata.gz:
|
|
4
|
-
data.tar.gz:
|
|
3
|
+
metadata.gz: 3d135d6eeb760755fc8ec72c27b25297a058dc4b
|
|
4
|
+
data.tar.gz: 0f9550758232f2d5075c9d95410341b961dbe645
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
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.
|
|
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
|
-
|
|
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 = "
|
|
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"
|