leap_salesforce 0.1.3 → 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: 567bcc3e8e7646db7a5c55fdccb5dffe5465e6ee50344380ae6028a950c947ef
4
- data.tar.gz: f3c3977dec6a79d1a8021fd6fc1bc806754d702d8dd19caf3b75bf92876f9f01
3
+ metadata.gz: 8522ffd213da0790072896b2d4be5ce02c3de1126d8fe4f61df2c75cec4169f4
4
+ data.tar.gz: 0e0ce66808a6905518024accc608f62e3f028483a2f4709ecebf11804ed5e961
5
5
  SHA512:
6
- metadata.gz: cfef3607abbd5615db422eca9710eca0ce4c481bdfa27df18f6a35c0a078d9610c8ea1a6977bd0bc05d6efbdcf073d03eacd8d8738a2096dd3779b2007838b80
7
- data.tar.gz: 426f2a60ff86782decce83690a4fffa559143b282d562a09f3cf283808adcef1385225af0913330d392ca3b9e7b9a57dd599d9fe2e5f6de995a6c8a467259b51
6
+ metadata.gz: 13ed335313f5ad1f2bbdd7f4b54a720df5de2ff3ad8b32de1cc8e8d6a1d0784e5037353838fb7259189e5897355fad19c313133bbf77e2d1335a4575518f5071
7
+ data.tar.gz: 7da5836fc0e1af6d959154bc405fd2022750f94b8a20c220528fd63a3cb880e0d5082e0aa902d7c9fa532ce70586cfddbd0c4273e1da1e46d31b09baf72e96c0
data/.idea/workspace.xml CHANGED
@@ -1,13 +1,10 @@
1
1
  <?xml version="1.0" encoding="UTF-8"?>
2
2
  <project version="4">
3
3
  <component name="ChangeListManager">
4
- <list default="true" id="f424890b-d4ed-4658-932d-3b4d11846a9f" name="Default Changelist" comment="">
5
- <change beforePath="$PROJECT_DIR$/.idea/leap-salesforce.iml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/leap-salesforce.iml" afterDir="false" />
6
- <change beforePath="$PROJECT_DIR$/.idea/workspace.xml" beforeDir="false" afterPath="$PROJECT_DIR$/.idea/workspace.xml" afterDir="false" />
4
+ <list default="true" id="f424890b-d4ed-4658-932d-3b4d11846a9f" name="Default Changelist" comment="Catered for $, # and numbers at the beginning of methods that were breaking things">
7
5
  <change beforePath="$PROJECT_DIR$/ChangeLog" beforeDir="false" afterPath="$PROJECT_DIR$/ChangeLog" afterDir="false" />
8
- <change beforePath="$PROJECT_DIR$/README.md" beforeDir="false" afterPath="$PROJECT_DIR$/README.md" afterDir="false" />
9
- <change beforePath="$PROJECT_DIR$/leap_salesforce.gemspec" beforeDir="false" afterPath="$PROJECT_DIR$/leap_salesforce.gemspec" afterDir="false" />
10
6
  <change beforePath="$PROJECT_DIR$/lib/leap_salesforce/ext/string.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/leap_salesforce/ext/string.rb" afterDir="false" />
7
+ <change beforePath="$PROJECT_DIR$/lib/leap_salesforce/generator/soql_enums.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/leap_salesforce/generator/soql_enums.rb" afterDir="false" />
11
8
  <change beforePath="$PROJECT_DIR$/lib/leap_salesforce/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/leap_salesforce/version.rb" afterDir="false" />
12
9
  </list>
13
10
  <option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
@@ -27,88 +24,57 @@
27
24
  </provider>
28
25
  </entry>
29
26
  </file>
30
- <file pinned="false" current-in-tab="false">
31
- <entry file="file://$PROJECT_DIR$/README.md">
32
- <provider selected="true" editor-type-id="split-provider[text-editor;MarkdownPreviewEditor]">
33
- <state split_layout="FIRST">
34
- <first_editor relative-caret-position="333">
35
- <caret line="34" selection-start-line="34" selection-end-line="34" />
36
- </first_editor>
37
- <second_editor>
38
- <markdownNavigatorState />
39
- </second_editor>
40
- </state>
41
- </provider>
42
- </entry>
43
- </file>
44
- <file pinned="false" current-in-tab="false">
27
+ <file pinned="false" current-in-tab="true">
45
28
  <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/ext/string.rb">
46
29
  <provider selected="true" editor-type-id="text-editor">
47
- <state relative-caret-position="252">
48
- <caret line="14" lean-forward="true" selection-start-line="14" selection-end-line="14" />
30
+ <state relative-caret-position="216">
31
+ <caret line="12" column="5" lean-forward="true" selection-start-line="12" selection-start-column="5" selection-end-line="12" selection-end-column="5" />
49
32
  </state>
50
33
  </provider>
51
34
  </entry>
52
35
  </file>
53
36
  <file pinned="false" current-in-tab="false">
54
- <entry file="file://$PROJECT_DIR$/leap_salesforce.gemspec">
55
- <provider selected="true" editor-type-id="text-editor">
56
- <state relative-caret-position="247">
57
- <caret line="36" column="31" selection-start-line="36" selection-start-column="31" selection-end-line="36" selection-end-column="31" />
58
- </state>
59
- </provider>
60
- </entry>
61
- </file>
62
- <file pinned="false" current-in-tab="true">
63
- <entry file="file://$PROJECT_DIR$/ChangeLog">
37
+ <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/soql_enums.rb">
64
38
  <provider selected="true" editor-type-id="text-editor">
65
- <state relative-caret-position="36">
66
- <caret line="2" column="86" selection-start-line="2" selection-start-column="86" selection-end-line="2" selection-end-column="86" />
39
+ <state relative-caret-position="351">
40
+ <caret line="33" column="60" selection-start-line="33" selection-start-column="60" selection-end-line="33" selection-end-column="60" />
67
41
  </state>
68
42
  </provider>
69
43
  </entry>
70
44
  </file>
71
45
  <file pinned="false" current-in-tab="false">
72
- <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/templates/.leap_salesforce.yml.erb">
46
+ <entry file="file://$PROJECT_DIR$/spec/integration/query_spec.rb">
73
47
  <provider selected="true" editor-type-id="text-editor">
74
- <state>
75
- <caret column="32" selection-start-column="32" selection-end-column="32" />
48
+ <state relative-caret-position="166">
49
+ <caret line="14" column="65" selection-start-line="14" selection-start-column="65" selection-end-line="14" selection-end-column="65" />
76
50
  </state>
77
51
  </provider>
78
52
  </entry>
79
53
  </file>
80
54
  <file pinned="false" current-in-tab="false">
81
- <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/soql_data/soql_handler.rb">
55
+ <entry file="file://$PROJECT_DIR$/ChangeLog">
82
56
  <provider selected="true" editor-type-id="text-editor">
83
- <state relative-caret-position="162">
84
- <caret line="9" column="32" selection-start-line="9" selection-start-column="9" selection-end-line="9" selection-end-column="38" />
57
+ <state relative-caret-position="198">
58
+ <caret line="11" column="29" selection-start-line="11" selection-start-column="29" selection-end-line="11" selection-end-column="29" />
85
59
  </state>
86
60
  </provider>
87
61
  </entry>
88
62
  </file>
89
63
  <file pinned="false" current-in-tab="false">
90
- <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/parameters.rb">
91
- <provider selected="true" editor-type-id="text-editor">
92
- <state relative-caret-position="576">
93
- <caret line="32" column="7" selection-start-line="32" selection-start-column="7" selection-end-line="32" selection-end-column="7" />
94
- </state>
95
- </provider>
64
+ <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/templates/factory.rb.erb">
65
+ <provider selected="true" editor-type-id="text-editor" />
96
66
  </entry>
97
67
  </file>
98
68
  <file pinned="false" current-in-tab="false">
99
- <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/templates/config/general.rb.erb">
100
- <provider selected="true" editor-type-id="text-editor">
101
- <state relative-caret-position="72">
102
- <caret line="4" column="73" selection-start-line="4" selection-start-column="73" selection-end-line="4" selection-end-column="73" />
103
- </state>
104
- </provider>
69
+ <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/templates/soql_object.rb.erb">
70
+ <provider selected="true" editor-type-id="text-editor" />
105
71
  </entry>
106
72
  </file>
107
73
  <file pinned="false" current-in-tab="false">
108
- <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/templates/spec/picklists_spec.rb.erb">
74
+ <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/templates/picklist.rb.erb">
109
75
  <provider selected="true" editor-type-id="text-editor">
110
- <state relative-caret-position="36">
111
- <caret line="2" column="26" selection-start-line="2" selection-start-column="26" selection-end-line="2" selection-end-column="26" />
76
+ <state relative-caret-position="90">
77
+ <caret line="5" column="23" selection-start-line="5" selection-start-column="14" selection-end-line="5" selection-end-column="23" />
112
78
  </state>
113
79
  </provider>
114
80
  </entry>
@@ -125,7 +91,6 @@
125
91
  </component>
126
92
  <component name="FindInProjectRecents">
127
93
  <findStrings>
128
- <find>const_</find>
129
94
  <find>template</find>
130
95
  <find>.leap</find>
131
96
  <find>default_values</find>
@@ -155,6 +120,7 @@
155
120
  <find>get</find>
156
121
  <find>leap</find>
157
122
  <find>CREDENTIAL_FILE</find>
123
+ <find>enum_name</find>
158
124
  </findStrings>
159
125
  <replaceStrings>
160
126
  <replace>leap-salesforce</replace>
@@ -172,8 +138,6 @@
172
138
  <component name="IdeDocumentHistory">
173
139
  <option name="CHANGED_PATHS">
174
140
  <list>
175
- <option value="$PROJECT_DIR$/config/credentials/salesforce_oauth2.yml" />
176
- <option value="$PROJECT_DIR$/.leap_salesforce.yml" />
177
141
  <option value="$PROJECT_DIR$/spec/integration/creating_spec.rb" />
178
142
  <option value="$PROJECT_DIR$/spec/integration/limit_spec.rb" />
179
143
  <option value="$PROJECT_DIR$/.gitignore" />
@@ -221,8 +185,10 @@
221
185
  <option value="$PROJECT_DIR$/README.md" />
222
186
  <option value="$PROJECT_DIR$/leap_salesforce.gemspec" />
223
187
  <option value="$PROJECT_DIR$/lib/leap_salesforce/version.rb" />
224
- <option value="$PROJECT_DIR$/lib/leap_salesforce/ext/string.rb" />
225
188
  <option value="$PROJECT_DIR$/ChangeLog" />
189
+ <option value="$PROJECT_DIR$/spec/support/metadata/enum/account/account_type.rb" />
190
+ <option value="$PROJECT_DIR$/lib/leap_salesforce/generator/soql_enums.rb" />
191
+ <option value="$PROJECT_DIR$/lib/leap_salesforce/ext/string.rb" />
226
192
  </list>
227
193
  </option>
228
194
  </component>
@@ -261,6 +227,26 @@
261
227
  <item name="leap_salesforce" type="462c0819:PsiDirectoryNode" />
262
228
  <item name="ext" type="462c0819:PsiDirectoryNode" />
263
229
  </path>
230
+ <path>
231
+ <item name="leap_salesforce" type="b2602c69:ProjectViewProjectNode" />
232
+ <item name="leap_salesforce" type="462c0819:PsiDirectoryNode" />
233
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
234
+ <item name="leap_salesforce" type="462c0819:PsiDirectoryNode" />
235
+ <item name="generator" type="462c0819:PsiDirectoryNode" />
236
+ </path>
237
+ <path>
238
+ <item name="leap_salesforce" type="b2602c69:ProjectViewProjectNode" />
239
+ <item name="leap_salesforce" type="462c0819:PsiDirectoryNode" />
240
+ <item name="lib" type="462c0819:PsiDirectoryNode" />
241
+ <item name="leap_salesforce" type="462c0819:PsiDirectoryNode" />
242
+ <item name="generator" type="462c0819:PsiDirectoryNode" />
243
+ <item name="templates" type="462c0819:PsiDirectoryNode" />
244
+ </path>
245
+ <path>
246
+ <item name="leap_salesforce" type="b2602c69:ProjectViewProjectNode" />
247
+ <item name="leap_salesforce" type="462c0819:PsiDirectoryNode" />
248
+ <item name="spec" type="462c0819:PsiDirectoryNode" />
249
+ </path>
264
250
  </expand>
265
251
  <select />
266
252
  </subPane>
@@ -571,7 +557,7 @@
571
557
  <workItem from="1563859049411" duration="1935000" />
572
558
  <workItem from="1563911392675" duration="2920000" />
573
559
  <workItem from="1563916471074" duration="2377000" />
574
- <workItem from="1563938549211" duration="1186000" />
560
+ <workItem from="1563938549211" duration="4881000" />
575
561
  </task>
576
562
  <task id="LOCAL-00001" summary="Initial commit with functionality to interact with soql">
577
563
  <created>1562722949418</created>
@@ -790,7 +776,14 @@
790
776
  <option name="project" value="LOCAL" />
791
777
  <updated>1563917557527</updated>
792
778
  </task>
793
- <option name="localTasksCounter" value="32" />
779
+ <task id="LOCAL-00032" summary="Catered for $, # and numbers at the beginning of methods that were breaking things">
780
+ <created>1563939800232</created>
781
+ <option name="number" value="00032" />
782
+ <option name="presentableId" value="LOCAL-00032" />
783
+ <option name="project" value="LOCAL" />
784
+ <updated>1563939800232</updated>
785
+ </task>
786
+ <option name="localTasksCounter" value="33" />
794
787
  <servers />
795
788
  </component>
796
789
  <component name="TestHistory">
@@ -826,7 +819,7 @@
826
819
  </history-entry>
827
820
  </component>
828
821
  <component name="TimeTrackingManager">
829
- <option name="totallyTimeSpent" value="155519000" />
822
+ <option name="totallyTimeSpent" value="159214000" />
830
823
  </component>
831
824
  <component name="TodoView" selected-index="4">
832
825
  <todo-panel id="selected-file">
@@ -841,7 +834,7 @@
841
834
  <frame x="-1" y="0" width="1602" height="873" extended-state="6" />
842
835
  <editor active="true" />
843
836
  <layout>
844
- <window_info active="true" content_ui="combo" id="Project" order="0" sideWeight="0.49808428" visible="true" weight="0.21621622" />
837
+ <window_info content_ui="combo" id="Project" order="0" sideWeight="0.49808428" visible="true" weight="0.21621622" />
845
838
  <window_info id="Structure" order="1" sideWeight="0.5019157" side_tool="true" weight="0.16151866" />
846
839
  <window_info id="Favorites" order="2" side_tool="true" />
847
840
  <window_info anchor="bottom" id="Message" order="0" />
@@ -854,7 +847,7 @@
854
847
  <window_info anchor="bottom" id="Docker" order="7" weight="0.32991013" />
855
848
  <window_info anchor="bottom" id="Database Changes" order="8" />
856
849
  <window_info anchor="bottom" id="Version Control" order="9" weight="0.3440308" />
857
- <window_info anchor="bottom" id="Terminal" order="10" visible="true" weight="0.39537868" />
850
+ <window_info active="true" anchor="bottom" id="Terminal" order="10" visible="true" weight="0.39537868" />
858
851
  <window_info anchor="bottom" id="Event Log" order="11" side_tool="true" />
859
852
  <window_info anchor="bottom" id="Messages" order="12" weight="0.32991013" />
860
853
  <window_info anchor="right" id="Commander" order="0" weight="0.4" />
@@ -877,7 +870,6 @@
877
870
  </option>
878
871
  </component>
879
872
  <component name="VcsManagerConfiguration">
880
- <MESSAGE value="Added account object" />
881
873
  <MESSAGE value="Updated location to remote location" />
882
874
  <MESSAGE value="Updated IDE" />
883
875
  <MESSAGE value="Added generation of FactoryBot factories" />
@@ -902,7 +894,8 @@
902
894
  <MESSAGE value="Run setup script as part of CI run" />
903
895
  <MESSAGE value="Added output color, icons, initialisation verification and picklist spec" />
904
896
  <MESSAGE value="Added output color, icons, initialisation verification and picklist spec. Added security token into what's stored and sent for authentication" />
905
- <option name="LAST_COMMIT_MESSAGE" value="Added output color, icons, initialisation verification and picklist spec. Added security token into what's stored and sent for authentication" />
897
+ <MESSAGE value="Catered for $, # and numbers at the beginning of methods that were breaking things" />
898
+ <option name="LAST_COMMIT_MESSAGE" value="Catered for $, # and numbers at the beginning of methods that were breaking things" />
906
899
  </component>
907
900
  <component name="XDebuggerManager">
908
901
  <breakpoint-manager>
@@ -943,48 +936,6 @@
943
936
  <SUITE FILE_PATH="coverage/leap_salesforce@LeapSalesforce_can_delete_records__leap_salesforce.rcov" NAME="LeapSalesforce can delete records: leap-salesforce Coverage Results" MODIFIED="1562721599656" SOURCE_PROVIDER="com.intellij.coverage.DefaultCoverageFileProvider" RUNNER="rcov" COVERAGE_BY_TEST_ENABLED="true" COVERAGE_TRACING_ENABLED="false" WORKING_DIRECTORY="$PROJECT_DIR$" MODULE_NAME="leap-salesforce" />
944
937
  </component>
945
938
  <component name="editorHistoryManager">
946
- <entry file="file://$PROJECT_DIR$/tmp/init/config/credentials/salesforce_oauth2.yml" />
947
- <entry file="file://$PROJECT_DIR$/tmp/init/config/general.rb" />
948
- <entry file="file://$PROJECT_DIR$/tmp/init/config/environments/prod.rb" />
949
- <entry file="file://$PROJECT_DIR$/tmp/init/Gemfile" />
950
- <entry file="file://$PROJECT_DIR$/spec/spec_helper.rb">
951
- <provider selected="true" editor-type-id="text-editor">
952
- <state relative-caret-position="156">
953
- <caret line="36" column="6" selection-start-line="36" selection-start-column="6" selection-end-line="36" selection-end-column="6" />
954
- </state>
955
- </provider>
956
- </entry>
957
- <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/templates/spec/spec_helper.rb.erb">
958
- <provider selected="true" editor-type-id="text-editor">
959
- <state>
960
- <caret selection-end-column="29" />
961
- </state>
962
- </provider>
963
- </entry>
964
- <entry file="file://$PROJECT_DIR$/stub/soql_data/contact.rb">
965
- <provider selected="true" editor-type-id="text-editor">
966
- <state relative-caret-position="251">
967
- <caret line="2695" column="6" selection-start-line="2695" selection-start-column="6" selection-end-line="2695" selection-end-column="6" />
968
- </state>
969
- </provider>
970
- </entry>
971
- <entry file="file://$PROJECT_DIR$/spec/support/factories/account.rb">
972
- <provider selected="true" editor-type-id="text-editor">
973
- <state relative-caret-position="630">
974
- <caret line="35" column="12" lean-forward="true" selection-start-line="35" selection-start-column="12" selection-end-line="35" selection-end-column="12" />
975
- </state>
976
- </provider>
977
- </entry>
978
- <entry file="file://$PROJECT_DIR$/spec/support/soql_data/account.rb">
979
- <provider selected="true" editor-type-id="text-editor" />
980
- </entry>
981
- <entry file="file://$PROJECT_DIR$/spec/support/soql_data/broker_field_names.rb">
982
- <provider selected="true" editor-type-id="text-editor">
983
- <state relative-caret-position="144">
984
- <caret line="8" column="12" selection-start-line="8" selection-start-column="12" selection-end-line="8" selection-end-column="12" />
985
- </state>
986
- </provider>
987
- </entry>
988
939
  <entry file="file://$PROJECT_DIR$/spec/exe/init_spec.rb">
989
940
  <provider selected="true" editor-type-id="text-editor">
990
941
  <state relative-caret-position="198">
@@ -1209,6 +1160,16 @@
1209
1160
  </state>
1210
1161
  </provider>
1211
1162
  </entry>
1163
+ <entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/string.rb">
1164
+ <provider selected="true" editor-type-id="text-editor">
1165
+ <state relative-caret-position="418">
1166
+ <caret line="1673" column="8" selection-start-line="1673" selection-start-column="8" selection-end-line="1673" selection-end-column="8" />
1167
+ </state>
1168
+ </provider>
1169
+ </entry>
1170
+ <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/templates/soql_object_field_names.rb.erb">
1171
+ <provider selected="true" editor-type-id="text-editor" />
1172
+ </entry>
1212
1173
  <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/version.rb">
1213
1174
  <provider selected="true" editor-type-id="text-editor">
1214
1175
  <state relative-caret-position="54">
@@ -1216,24 +1177,64 @@
1216
1177
  </state>
1217
1178
  </provider>
1218
1179
  </entry>
1219
- <entry file="file://$APPLICATION_HOME_DIR$/rubystubs26/string.rb">
1180
+ <entry file="file://$PROJECT_DIR$/ChangeLog">
1220
1181
  <provider selected="true" editor-type-id="text-editor">
1221
- <state relative-caret-position="418">
1222
- <caret line="1673" column="8" selection-start-line="1673" selection-start-column="8" selection-end-line="1673" selection-end-column="8" />
1182
+ <state relative-caret-position="198">
1183
+ <caret line="11" column="29" selection-start-line="11" selection-start-column="29" selection-end-line="11" selection-end-column="29" />
1223
1184
  </state>
1224
1185
  </provider>
1225
1186
  </entry>
1226
- <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/ext/string.rb">
1187
+ <entry file="file://$PROJECT_DIR$/spec/support/metadata/enum/contact/lead_source.rb">
1227
1188
  <provider selected="true" editor-type-id="text-editor">
1228
1189
  <state relative-caret-position="252">
1229
- <caret line="14" lean-forward="true" selection-start-line="14" selection-end-line="14" />
1190
+ <caret line="26" column="13" selection-start-line="26" selection-start-column="13" selection-end-line="26" selection-end-column="14" />
1230
1191
  </state>
1231
1192
  </provider>
1232
1193
  </entry>
1233
- <entry file="file://$PROJECT_DIR$/ChangeLog">
1194
+ <entry file="file://$PROJECT_DIR$/spec/integration/query_spec.rb">
1234
1195
  <provider selected="true" editor-type-id="text-editor">
1235
- <state relative-caret-position="36">
1236
- <caret line="2" column="86" selection-start-line="2" selection-start-column="86" selection-end-line="2" selection-end-column="86" />
1196
+ <state relative-caret-position="166">
1197
+ <caret line="14" column="65" selection-start-line="14" selection-start-column="65" selection-end-line="14" selection-end-column="65" />
1198
+ </state>
1199
+ </provider>
1200
+ </entry>
1201
+ <entry file="file://$PROJECT_DIR$/spec/support/metadata/enum/account/account_rating.rb">
1202
+ <provider selected="true" editor-type-id="text-editor">
1203
+ <state relative-caret-position="108">
1204
+ <caret line="6" selection-start-line="6" selection-end-line="6" />
1205
+ </state>
1206
+ </provider>
1207
+ </entry>
1208
+ <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/templates/factory.rb.erb">
1209
+ <provider selected="true" editor-type-id="text-editor" />
1210
+ </entry>
1211
+ <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/templates/soql_object.rb.erb">
1212
+ <provider selected="true" editor-type-id="text-editor" />
1213
+ </entry>
1214
+ <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/templates/picklist.rb.erb">
1215
+ <provider selected="true" editor-type-id="text-editor">
1216
+ <state relative-caret-position="90">
1217
+ <caret line="5" column="23" selection-start-line="5" selection-start-column="14" selection-end-line="5" selection-end-column="23" />
1218
+ </state>
1219
+ </provider>
1220
+ </entry>
1221
+ <entry file="file://$PROJECT_DIR$/spec/support/metadata/enum/account/billing_geocode_accuracy.rb">
1222
+ <provider selected="true" editor-type-id="text-editor" />
1223
+ </entry>
1224
+ <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/soql_enums.rb">
1225
+ <provider selected="true" editor-type-id="text-editor">
1226
+ <state relative-caret-position="351">
1227
+ <caret line="33" column="60" selection-start-line="33" selection-start-column="60" selection-end-line="33" selection-end-column="60" />
1228
+ </state>
1229
+ </provider>
1230
+ </entry>
1231
+ <entry file="file://$PROJECT_DIR$/spec/support/metadata/enum/account/account_type.rb">
1232
+ <provider selected="true" editor-type-id="text-editor" />
1233
+ </entry>
1234
+ <entry file="file://$PROJECT_DIR$/lib/leap_salesforce/ext/string.rb">
1235
+ <provider selected="true" editor-type-id="text-editor">
1236
+ <state relative-caret-position="216">
1237
+ <caret line="12" column="5" lean-forward="true" selection-start-line="12" selection-start-column="5" selection-end-line="12" selection-end-column="5" />
1237
1238
  </state>
1238
1239
  </provider>
1239
1240
  </entry>
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Version 0.1.4
2
+ * Bug Fix
3
+ * Catered for double quotes and characters appearing in table names.
4
+
1
5
  Version 0.1.3
2
6
  * Bug Fix
3
7
  * Catered for $, # and numbers at the beginning of methods that were breaking things
@@ -6,11 +6,15 @@ require 'humanize'
6
6
 
7
7
  # Override string object to provide convenience methods for Strings
8
8
  class String
9
- # @todo: Have method of replacing all
10
- # @return [String] Remove many complex characters to make a key for a Ruby Hash that is usable
9
+ # Convert string to something that would be friendly to use as a ruby object/method name
10
+ def to_ruby_friendly
11
+ tr("'/()$#+-, ", '').tr('*', '').tr('"', '').tr('&', '').gsub('<', 'gt').remove_macrons.tr("\n", '')
12
+ .humanize_numbered_string
13
+ end
14
+
15
+ # @return [String] Remove many complex characters to make a key for a Ruby Hash that is usable in a method/key
11
16
  def to_key_name
12
- tr(' ,-', '_').tr("'/():$#", '').tr('&', '').gsub('<', 'gt').remove_macrons.snakecase.gsub('__', '_')
13
- .humanize_numbered_string
17
+ to_ruby_friendly.tr(':', '').snakecase.gsub('__', '_')
14
18
  end
15
19
 
16
20
  # Convert string starting with number to a human string
@@ -31,7 +31,7 @@ module LeapSalesforce
31
31
  puts "#{picklists.count} picklists found"
32
32
  picklists.each do |picklist|
33
33
  @picklist = picklist
34
- @enum_name = picklist.tr(" '/()-", '').remove_macrons
34
+ @enum_name = picklist.to_ruby_friendly.tr(" '/()-", '')
35
35
  picklist_name = picklist.to_key_name
36
36
  values = entity.picklist_for picklist
37
37
  @enum_values = {}
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LeapSalesforce
4
- VERSION = '0.1.3'
4
+ VERSION = '0.1.4'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: leap_salesforce
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - IQA