leap_salesforce 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.idea/workspace.xml +165 -101
- data/ChangeLog +5 -0
- data/lib/leap_salesforce/ext/string.rb +13 -5
- data/lib/leap_salesforce/generator/soql_enums.rb +1 -1
- data/lib/leap_salesforce/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 34e05db673469ab9a0bc71da3a58abf22522fb797776e7ed144504177ec43923
|
4
|
+
data.tar.gz: c36487d9759e438fff829f742f8edbe1a7cef970cf272c5eaac3b0b824a3460e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: caa01bf5c5268ca4781999f8a997f08ecc23ae3c4be923fb9a76d3a4d430c6dd6e7130df4ff9687077745e9ba61109e327c0af2ba8d2dda1e1e1b06f425d97e1
|
7
|
+
data.tar.gz: 6c4f242aa17da03f03069b541b34f3dd199c4883e48c53fb1d6a02a37cfffc69826426721be9fa12a8e19e0e2c9ed3ebcaca74c5ce8cd0cf82b21c1202d07af4
|
data/.idea/workspace.xml
CHANGED
@@ -1,12 +1,7 @@
|
|
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$/ChangeLog" beforeDir="false" afterPath="$PROJECT_DIR$/ChangeLog" afterDir="false" />
|
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" />
|
8
|
-
<change beforePath="$PROJECT_DIR$/lib/leap_salesforce/version.rb" beforeDir="false" afterPath="$PROJECT_DIR$/lib/leap_salesforce/version.rb" afterDir="false" />
|
9
|
-
</list>
|
4
|
+
<list default="true" id="f424890b-d4ed-4658-932d-3b4d11846a9f" name="Default Changelist" comment="" />
|
10
5
|
<option name="EXCLUDED_CONVERTED_TO_IGNORED" value="true" />
|
11
6
|
<option name="SHOW_DIALOG" value="false" />
|
12
7
|
<option name="HIGHLIGHT_CONFLICTS" value="true" />
|
@@ -24,11 +19,20 @@
|
|
24
19
|
</provider>
|
25
20
|
</entry>
|
26
21
|
</file>
|
27
|
-
<file pinned="false" current-in-tab="
|
22
|
+
<file pinned="false" current-in-tab="false">
|
28
23
|
<entry file="file://$PROJECT_DIR$/lib/leap_salesforce/ext/string.rb">
|
29
24
|
<provider selected="true" editor-type-id="text-editor">
|
30
|
-
<state relative-caret-position="
|
31
|
-
<caret line="
|
25
|
+
<state relative-caret-position="158">
|
26
|
+
<caret line="19" column="41" selection-start-line="19" selection-start-column="41" selection-end-line="19" selection-end-column="41" />
|
27
|
+
</state>
|
28
|
+
</provider>
|
29
|
+
</entry>
|
30
|
+
</file>
|
31
|
+
<file pinned="false" current-in-tab="false">
|
32
|
+
<entry file="file://$PROJECT_DIR$/spec/unit/ext/string_spec.rb">
|
33
|
+
<provider selected="true" editor-type-id="text-editor">
|
34
|
+
<state relative-caret-position="270">
|
35
|
+
<caret line="42" column="36" selection-start-line="42" selection-start-column="36" selection-end-line="42" selection-end-column="36" />
|
32
36
|
</state>
|
33
37
|
</provider>
|
34
38
|
</entry>
|
@@ -36,8 +40,8 @@
|
|
36
40
|
<file pinned="false" current-in-tab="false">
|
37
41
|
<entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/soql_enums.rb">
|
38
42
|
<provider selected="true" editor-type-id="text-editor">
|
39
|
-
<state relative-caret-position="
|
40
|
-
<caret line="33" column="
|
43
|
+
<state relative-caret-position="594">
|
44
|
+
<caret line="33" column="47" selection-start-line="33" selection-start-column="47" selection-end-line="33" selection-end-column="47" />
|
41
45
|
</state>
|
42
46
|
</provider>
|
43
47
|
</entry>
|
@@ -45,17 +49,17 @@
|
|
45
49
|
<file pinned="false" current-in-tab="false">
|
46
50
|
<entry file="file://$PROJECT_DIR$/spec/integration/query_spec.rb">
|
47
51
|
<provider selected="true" editor-type-id="text-editor">
|
48
|
-
<state relative-caret-position="
|
52
|
+
<state relative-caret-position="252">
|
49
53
|
<caret line="14" column="65" selection-start-line="14" selection-start-column="65" selection-end-line="14" selection-end-column="65" />
|
50
54
|
</state>
|
51
55
|
</provider>
|
52
56
|
</entry>
|
53
57
|
</file>
|
54
|
-
<file pinned="false" current-in-tab="
|
58
|
+
<file pinned="false" current-in-tab="true">
|
55
59
|
<entry file="file://$PROJECT_DIR$/ChangeLog">
|
56
60
|
<provider selected="true" editor-type-id="text-editor">
|
57
|
-
<state relative-caret-position="
|
58
|
-
<caret line="
|
61
|
+
<state relative-caret-position="36">
|
62
|
+
<caret line="2" column="4" selection-start-line="2" selection-start-column="4" selection-end-line="3" selection-end-column="50" />
|
59
63
|
</state>
|
60
64
|
</provider>
|
61
65
|
</entry>
|
@@ -138,8 +142,6 @@
|
|
138
142
|
<component name="IdeDocumentHistory">
|
139
143
|
<option name="CHANGED_PATHS">
|
140
144
|
<list>
|
141
|
-
<option value="$PROJECT_DIR$/spec/integration/creating_spec.rb" />
|
142
|
-
<option value="$PROJECT_DIR$/spec/integration/limit_spec.rb" />
|
143
145
|
<option value="$PROJECT_DIR$/.gitignore" />
|
144
146
|
<option value="$PROJECT_DIR$/config/general.rb" />
|
145
147
|
<option value="$PROJECT_DIR$/lib/leap_salesforce/users/user.rb" />
|
@@ -184,15 +186,17 @@
|
|
184
186
|
<option value="$PROJECT_DIR$/lib/leap_salesforce/parameters.rb" />
|
185
187
|
<option value="$PROJECT_DIR$/README.md" />
|
186
188
|
<option value="$PROJECT_DIR$/leap_salesforce.gemspec" />
|
187
|
-
<option value="$PROJECT_DIR$/lib/leap_salesforce/version.rb" />
|
188
|
-
<option value="$PROJECT_DIR$/ChangeLog" />
|
189
189
|
<option value="$PROJECT_DIR$/spec/support/metadata/enum/account/account_type.rb" />
|
190
|
+
<option value="$PROJECT_DIR$/spec/unit/string_spec.rb" />
|
191
|
+
<option value="$PROJECT_DIR$/lib/leap_salesforce/version.rb" />
|
190
192
|
<option value="$PROJECT_DIR$/lib/leap_salesforce/generator/soql_enums.rb" />
|
191
193
|
<option value="$PROJECT_DIR$/lib/leap_salesforce/ext/string.rb" />
|
194
|
+
<option value="$PROJECT_DIR$/spec/unit/ext/string_spec.rb" />
|
195
|
+
<option value="$PROJECT_DIR$/ChangeLog" />
|
192
196
|
</list>
|
193
197
|
</option>
|
194
198
|
</component>
|
195
|
-
<component name="ProjectFrameBounds" extendedState="
|
199
|
+
<component name="ProjectFrameBounds" extendedState="7">
|
196
200
|
<option name="width" value="1594" />
|
197
201
|
<option name="height" value="869" />
|
198
202
|
</component>
|
@@ -202,6 +206,7 @@
|
|
202
206
|
<foldersAlwaysOnTop value="true" />
|
203
207
|
</navigator>
|
204
208
|
<panes>
|
209
|
+
<pane id="Scope" />
|
205
210
|
<pane id="ProjectPane">
|
206
211
|
<subPane>
|
207
212
|
<expand>
|
@@ -230,28 +235,64 @@
|
|
230
235
|
<path>
|
231
236
|
<item name="leap_salesforce" type="b2602c69:ProjectViewProjectNode" />
|
232
237
|
<item name="leap_salesforce" type="462c0819:PsiDirectoryNode" />
|
233
|
-
<item name="
|
234
|
-
<item name="leap_salesforce" type="462c0819:PsiDirectoryNode" />
|
235
|
-
<item name="generator" type="462c0819:PsiDirectoryNode" />
|
238
|
+
<item name="spec" type="462c0819:PsiDirectoryNode" />
|
236
239
|
</path>
|
237
240
|
<path>
|
238
241
|
<item name="leap_salesforce" type="b2602c69:ProjectViewProjectNode" />
|
239
242
|
<item name="leap_salesforce" type="462c0819:PsiDirectoryNode" />
|
240
|
-
<item name="
|
241
|
-
<item name="
|
242
|
-
<item name="generator" type="462c0819:PsiDirectoryNode" />
|
243
|
-
<item name="templates" type="462c0819:PsiDirectoryNode" />
|
243
|
+
<item name="spec" type="462c0819:PsiDirectoryNode" />
|
244
|
+
<item name="unit" type="462c0819:PsiDirectoryNode" />
|
244
245
|
</path>
|
245
246
|
<path>
|
246
247
|
<item name="leap_salesforce" type="b2602c69:ProjectViewProjectNode" />
|
247
248
|
<item name="leap_salesforce" type="462c0819:PsiDirectoryNode" />
|
248
249
|
<item name="spec" type="462c0819:PsiDirectoryNode" />
|
250
|
+
<item name="unit" type="462c0819:PsiDirectoryNode" />
|
251
|
+
<item name="ext" type="462c0819:PsiDirectoryNode" />
|
252
|
+
</path>
|
253
|
+
<path>
|
254
|
+
<item name="leap_salesforce" type="b2602c69:ProjectViewProjectNode" />
|
255
|
+
<item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
|
256
|
+
</path>
|
257
|
+
<path>
|
258
|
+
<item name="leap_salesforce" type="b2602c69:ProjectViewProjectNode" />
|
259
|
+
<item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
|
260
|
+
<item name="activesupport (v5.2.3, RVM: ruby-2.6.0) [gem]" type="70bed36:NamedLibraryElementNode" />
|
261
|
+
</path>
|
262
|
+
<path>
|
263
|
+
<item name="leap_salesforce" type="b2602c69:ProjectViewProjectNode" />
|
264
|
+
<item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
|
265
|
+
<item name="activesupport (v5.2.3, RVM: ruby-2.6.0) [gem]" type="70bed36:NamedLibraryElementNode" />
|
266
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
267
|
+
</path>
|
268
|
+
<path>
|
269
|
+
<item name="leap_salesforce" type="b2602c69:ProjectViewProjectNode" />
|
270
|
+
<item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
|
271
|
+
<item name="activesupport (v5.2.3, RVM: ruby-2.6.0) [gem]" type="70bed36:NamedLibraryElementNode" />
|
272
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
273
|
+
<item name="active_support" type="462c0819:PsiDirectoryNode" />
|
274
|
+
</path>
|
275
|
+
<path>
|
276
|
+
<item name="leap_salesforce" type="b2602c69:ProjectViewProjectNode" />
|
277
|
+
<item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
|
278
|
+
<item name="activesupport (v5.2.3, RVM: ruby-2.6.0) [gem]" type="70bed36:NamedLibraryElementNode" />
|
279
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
280
|
+
<item name="active_support" type="462c0819:PsiDirectoryNode" />
|
281
|
+
<item name="core_ext" type="462c0819:PsiDirectoryNode" />
|
282
|
+
</path>
|
283
|
+
<path>
|
284
|
+
<item name="leap_salesforce" type="b2602c69:ProjectViewProjectNode" />
|
285
|
+
<item name="External Libraries" type="cb654da1:ExternalLibrariesNode" />
|
286
|
+
<item name="activesupport (v5.2.3, RVM: ruby-2.6.0) [gem]" type="70bed36:NamedLibraryElementNode" />
|
287
|
+
<item name="lib" type="462c0819:PsiDirectoryNode" />
|
288
|
+
<item name="active_support" type="462c0819:PsiDirectoryNode" />
|
289
|
+
<item name="core_ext" type="462c0819:PsiDirectoryNode" />
|
290
|
+
<item name="string" type="462c0819:PsiDirectoryNode" />
|
249
291
|
</path>
|
250
292
|
</expand>
|
251
293
|
<select />
|
252
294
|
</subPane>
|
253
295
|
</pane>
|
254
|
-
<pane id="Scope" />
|
255
296
|
</panes>
|
256
297
|
</component>
|
257
298
|
<component name="PropertiesComponent">
|
@@ -266,6 +307,13 @@
|
|
266
307
|
<property name="settings.editor.selected.configurable" value="org.jetbrains.plugins.ruby.settings.RubyActiveModuleSdkConfigurable" />
|
267
308
|
</component>
|
268
309
|
<component name="RecentsManager">
|
310
|
+
<key name="MoveFile.RECENT_KEYS">
|
311
|
+
<recent name="$PROJECT_DIR$/spec/unit/ext" />
|
312
|
+
<recent name="$PROJECT_DIR$/lib/leap_salesforce/generator/templates/config" />
|
313
|
+
<recent name="$PROJECT_DIR$/spec/integration" />
|
314
|
+
<recent name="$PROJECT_DIR$/lib/leap_salesforce/generator/templates" />
|
315
|
+
<recent name="$PROJECT_DIR$/lib/leap_salesforce/generator" />
|
316
|
+
</key>
|
269
317
|
<key name="CopyFile.RECENT_KEYS">
|
270
318
|
<recent name="$PROJECT_DIR$/lib/leap_salesforce/generator/templates/spec" />
|
271
319
|
<recent name="$PROJECT_DIR$/lib/leap_salesforce/generator/templates" />
|
@@ -273,13 +321,6 @@
|
|
273
321
|
<recent name="$PROJECT_DIR$/lib/leap_salesforce/generator/templates/config" />
|
274
322
|
<recent name="$PROJECT_DIR$/spec" />
|
275
323
|
</key>
|
276
|
-
<key name="MoveFile.RECENT_KEYS">
|
277
|
-
<recent name="$PROJECT_DIR$/lib/leap_salesforce/generator/templates/config" />
|
278
|
-
<recent name="$PROJECT_DIR$/spec/integration" />
|
279
|
-
<recent name="$PROJECT_DIR$/lib/leap_salesforce/generator/templates" />
|
280
|
-
<recent name="$PROJECT_DIR$/lib/leap_salesforce/generator" />
|
281
|
-
<recent name="$PROJECT_DIR$/lib/leap_salesforce/rake/templates" />
|
282
|
-
</key>
|
283
324
|
</component>
|
284
325
|
<component name="RunDashboard">
|
285
326
|
<option name="ruleStates">
|
@@ -557,7 +598,9 @@
|
|
557
598
|
<workItem from="1563859049411" duration="1935000" />
|
558
599
|
<workItem from="1563911392675" duration="2920000" />
|
559
600
|
<workItem from="1563916471074" duration="2377000" />
|
560
|
-
<workItem from="1563938549211" duration="
|
601
|
+
<workItem from="1563938549211" duration="5572000" />
|
602
|
+
<workItem from="1563945954687" duration="3378000" />
|
603
|
+
<workItem from="1563953330409" duration="1128000" />
|
561
604
|
</task>
|
562
605
|
<task id="LOCAL-00001" summary="Initial commit with functionality to interact with soql">
|
563
606
|
<created>1562722949418</created>
|
@@ -783,7 +826,28 @@
|
|
783
826
|
<option name="project" value="LOCAL" />
|
784
827
|
<updated>1563939800232</updated>
|
785
828
|
</task>
|
786
|
-
<
|
829
|
+
<task id="LOCAL-00033" summary="Catered for more characters in regular expression">
|
830
|
+
<created>1563944157776</created>
|
831
|
+
<option name="number" value="00033" />
|
832
|
+
<option name="presentableId" value="LOCAL-00033" />
|
833
|
+
<option name="project" value="LOCAL" />
|
834
|
+
<updated>1563944157776</updated>
|
835
|
+
</task>
|
836
|
+
<task id="LOCAL-00034" summary="IDE changes">
|
837
|
+
<created>1563944197064</created>
|
838
|
+
<option name="number" value="00034" />
|
839
|
+
<option name="presentableId" value="LOCAL-00034" />
|
840
|
+
<option name="project" value="LOCAL" />
|
841
|
+
<updated>1563944197064</updated>
|
842
|
+
</task>
|
843
|
+
<task id="LOCAL-00035" summary="Handle name starting with 0, currency. This time adding string unit tests Correct class/module names so always CamelCase">
|
844
|
+
<created>1563953975938</created>
|
845
|
+
<option name="number" value="00035" />
|
846
|
+
<option name="presentableId" value="LOCAL-00035" />
|
847
|
+
<option name="project" value="LOCAL" />
|
848
|
+
<updated>1563953975938</updated>
|
849
|
+
</task>
|
850
|
+
<option name="localTasksCounter" value="36" />
|
787
851
|
<servers />
|
788
852
|
</component>
|
789
853
|
<component name="TestHistory">
|
@@ -819,7 +883,7 @@
|
|
819
883
|
</history-entry>
|
820
884
|
</component>
|
821
885
|
<component name="TimeTrackingManager">
|
822
|
-
<option name="totallyTimeSpent" value="
|
886
|
+
<option name="totallyTimeSpent" value="164411000" />
|
823
887
|
</component>
|
824
888
|
<component name="TodoView" selected-index="4">
|
825
889
|
<todo-panel id="selected-file">
|
@@ -834,7 +898,7 @@
|
|
834
898
|
<frame x="-1" y="0" width="1602" height="873" extended-state="6" />
|
835
899
|
<editor active="true" />
|
836
900
|
<layout>
|
837
|
-
<window_info content_ui="combo" id="Project" order="0" sideWeight="0.49808428" visible="true" weight="0.
|
901
|
+
<window_info content_ui="combo" id="Project" order="0" sideWeight="0.49808428" visible="true" weight="0.22200772" />
|
838
902
|
<window_info id="Structure" order="1" sideWeight="0.5019157" side_tool="true" weight="0.16151866" />
|
839
903
|
<window_info id="Favorites" order="2" side_tool="true" />
|
840
904
|
<window_info anchor="bottom" id="Message" order="0" />
|
@@ -846,8 +910,8 @@
|
|
846
910
|
<window_info anchor="bottom" id="TODO" order="6" weight="0.32991013" />
|
847
911
|
<window_info anchor="bottom" id="Docker" order="7" weight="0.32991013" />
|
848
912
|
<window_info anchor="bottom" id="Database Changes" order="8" />
|
849
|
-
<window_info anchor="bottom" id="Version Control" order="9" weight="0.3440308" />
|
850
|
-
<window_info
|
913
|
+
<window_info active="true" anchor="bottom" id="Version Control" order="9" visible="true" weight="0.3440308" />
|
914
|
+
<window_info anchor="bottom" id="Terminal" order="10" weight="0.39537868" />
|
851
915
|
<window_info anchor="bottom" id="Event Log" order="11" side_tool="true" />
|
852
916
|
<window_info anchor="bottom" id="Messages" order="12" weight="0.32991013" />
|
853
917
|
<window_info anchor="right" id="Commander" order="0" weight="0.4" />
|
@@ -870,9 +934,6 @@
|
|
870
934
|
</option>
|
871
935
|
</component>
|
872
936
|
<component name="VcsManagerConfiguration">
|
873
|
-
<MESSAGE value="Updated location to remote location" />
|
874
|
-
<MESSAGE value="Updated IDE" />
|
875
|
-
<MESSAGE value="Added generation of FactoryBot factories" />
|
876
937
|
<MESSAGE value="Make lib folder if not present" />
|
877
938
|
<MESSAGE value="Fixed limit class" />
|
878
939
|
<MESSAGE value="Cleaned up query tests. Give more examples of using methods" />
|
@@ -895,7 +956,10 @@
|
|
895
956
|
<MESSAGE value="Added output color, icons, initialisation verification and picklist spec" />
|
896
957
|
<MESSAGE value="Added output color, icons, initialisation verification and picklist spec. Added security token into what's stored and sent for authentication" />
|
897
958
|
<MESSAGE value="Catered for $, # and numbers at the beginning of methods that were breaking things" />
|
898
|
-
<
|
959
|
+
<MESSAGE value="Catered for more characters in regular expression" />
|
960
|
+
<MESSAGE value="IDE changes" />
|
961
|
+
<MESSAGE value="Handle name starting with 0, currency. This time adding string unit tests Correct class/module names so always CamelCase" />
|
962
|
+
<option name="LAST_COMMIT_MESSAGE" value="Handle name starting with 0, currency. This time adding string unit tests Correct class/module names so always CamelCase" />
|
899
963
|
</component>
|
900
964
|
<component name="XDebuggerManager">
|
901
965
|
<breakpoint-manager>
|
@@ -936,37 +1000,6 @@
|
|
936
1000
|
<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" />
|
937
1001
|
</component>
|
938
1002
|
<component name="editorHistoryManager">
|
939
|
-
<entry file="file://$PROJECT_DIR$/spec/exe/init_spec.rb">
|
940
|
-
<provider selected="true" editor-type-id="text-editor">
|
941
|
-
<state relative-caret-position="198">
|
942
|
-
<caret line="29" column="5" selection-start-line="29" selection-start-column="5" selection-end-line="29" selection-end-column="5" />
|
943
|
-
</state>
|
944
|
-
</provider>
|
945
|
-
</entry>
|
946
|
-
<entry file="file://$PROJECT_DIR$/lib/leap_salesforce/soql_data/data_relationships.rb">
|
947
|
-
<provider selected="true" editor-type-id="text-editor">
|
948
|
-
<state relative-caret-position="-162">
|
949
|
-
<caret line="12" column="5" selection-start-line="12" selection-start-column="5" selection-end-line="12" selection-end-column="5" />
|
950
|
-
</state>
|
951
|
-
</provider>
|
952
|
-
</entry>
|
953
|
-
<entry file="file://$PROJECT_DIR$/lib/leap_salesforce/soql_data/soql_data.rb">
|
954
|
-
<provider selected="true" editor-type-id="text-editor">
|
955
|
-
<state relative-caret-position="102">
|
956
|
-
<caret line="81" column="10" selection-start-line="81" selection-start-column="10" selection-end-line="81" selection-end-column="10" />
|
957
|
-
</state>
|
958
|
-
</provider>
|
959
|
-
</entry>
|
960
|
-
<entry file="file://$PROJECT_DIR$/lib/leap_salesforce/soql_data/soql_global_object_data.rb">
|
961
|
-
<provider selected="true" editor-type-id="text-editor">
|
962
|
-
<state relative-caret-position="162">
|
963
|
-
<caret line="179" column="6" selection-start-line="179" selection-start-column="6" selection-end-line="179" selection-end-column="6" />
|
964
|
-
</state>
|
965
|
-
</provider>
|
966
|
-
</entry>
|
967
|
-
<entry file="file://$PROJECT_DIR$/spec/support/soql_data/contact_field_names.rb">
|
968
|
-
<provider selected="true" editor-type-id="text-editor" />
|
969
|
-
</entry>
|
970
1003
|
<entry file="file://$PROJECT_DIR$/tmp/init/Gemfile.lock" />
|
971
1004
|
<entry file="file://$PROJECT_DIR$/config/credentials/salesforce_oauth2.yml">
|
972
1005
|
<provider selected="true" editor-type-id="text-editor">
|
@@ -1170,38 +1203,68 @@
|
|
1170
1203
|
<entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/templates/soql_object_field_names.rb.erb">
|
1171
1204
|
<provider selected="true" editor-type-id="text-editor" />
|
1172
1205
|
</entry>
|
1173
|
-
<entry file="file://$PROJECT_DIR$/
|
1206
|
+
<entry file="file://$PROJECT_DIR$/spec/support/metadata/enum/contact/lead_source.rb">
|
1207
|
+
<provider selected="true" editor-type-id="text-editor">
|
1208
|
+
<state relative-caret-position="252">
|
1209
|
+
<caret line="26" column="13" selection-start-line="26" selection-start-column="13" selection-end-line="26" selection-end-column="14" />
|
1210
|
+
</state>
|
1211
|
+
</provider>
|
1212
|
+
</entry>
|
1213
|
+
<entry file="file://$PROJECT_DIR$/spec/support/metadata/enum/account/account_rating.rb">
|
1214
|
+
<provider selected="true" editor-type-id="text-editor">
|
1215
|
+
<state relative-caret-position="108">
|
1216
|
+
<caret line="6" selection-start-line="6" selection-end-line="6" />
|
1217
|
+
</state>
|
1218
|
+
</provider>
|
1219
|
+
</entry>
|
1220
|
+
<entry file="file://$PROJECT_DIR$/spec/support/metadata/enum/account/billing_geocode_accuracy.rb">
|
1221
|
+
<provider selected="true" editor-type-id="text-editor" />
|
1222
|
+
</entry>
|
1223
|
+
<entry file="file://$PROJECT_DIR$/spec/support/metadata/enum/account/account_type.rb">
|
1224
|
+
<provider selected="true" editor-type-id="text-editor" />
|
1225
|
+
</entry>
|
1226
|
+
<entry file="file://$PROJECT_DIR$/spec/support/metadata/enum/document/publish_status.rb">
|
1227
|
+
<provider selected="true" editor-type-id="text-editor">
|
1228
|
+
<state relative-caret-position="162">
|
1229
|
+
<caret line="21" column="13" lean-forward="true" selection-start-line="21" selection-start-column="13" selection-end-line="21" selection-end-column="13" />
|
1230
|
+
</state>
|
1231
|
+
</provider>
|
1232
|
+
</entry>
|
1233
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-2.6.0/gems/topoisomerase-0.1.3/lib/topoisomerase/core_ext/string.rb">
|
1174
1234
|
<provider selected="true" editor-type-id="text-editor">
|
1175
1235
|
<state relative-caret-position="54">
|
1176
|
-
<caret line="3" column="
|
1236
|
+
<caret line="3" column="6" selection-start-line="3" selection-start-column="6" selection-end-line="3" selection-end-column="6" />
|
1177
1237
|
</state>
|
1178
1238
|
</provider>
|
1179
1239
|
</entry>
|
1180
|
-
<entry file="file://$
|
1240
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-2.6.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string/inflections.rb">
|
1181
1241
|
<provider selected="true" editor-type-id="text-editor">
|
1182
|
-
<state relative-caret-position="
|
1183
|
-
<caret line="
|
1242
|
+
<state relative-caret-position="256">
|
1243
|
+
<caret line="90" column="6" selection-start-line="90" selection-start-column="6" selection-end-line="90" selection-end-column="6" />
|
1184
1244
|
</state>
|
1185
1245
|
</provider>
|
1186
1246
|
</entry>
|
1187
|
-
<entry file="file://$
|
1247
|
+
<entry file="file://$USER_HOME$/.rvm/gems/ruby-2.6.0/gems/activesupport-5.2.3/lib/active_support/core_ext/string.rb">
|
1248
|
+
<provider selected="true" editor-type-id="text-editor" />
|
1249
|
+
</entry>
|
1250
|
+
<entry file="file://$PROJECT_DIR$/lib/leap_salesforce/version.rb">
|
1188
1251
|
<provider selected="true" editor-type-id="text-editor">
|
1189
|
-
<state relative-caret-position="
|
1190
|
-
<caret line="
|
1252
|
+
<state relative-caret-position="54">
|
1253
|
+
<caret line="3" column="18" selection-start-line="3" selection-start-column="18" selection-end-line="3" selection-end-column="18" />
|
1191
1254
|
</state>
|
1192
1255
|
</provider>
|
1193
1256
|
</entry>
|
1194
|
-
<entry file="file://$PROJECT_DIR$/
|
1257
|
+
<entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/soql_enums.rb">
|
1195
1258
|
<provider selected="true" editor-type-id="text-editor">
|
1196
|
-
<state relative-caret-position="
|
1197
|
-
<caret line="
|
1259
|
+
<state relative-caret-position="594">
|
1260
|
+
<caret line="33" column="47" selection-start-line="33" selection-start-column="47" selection-end-line="33" selection-end-column="47" />
|
1198
1261
|
</state>
|
1199
1262
|
</provider>
|
1200
1263
|
</entry>
|
1201
|
-
<entry file="file://$PROJECT_DIR$/spec/
|
1264
|
+
<entry file="file://$PROJECT_DIR$/spec/integration/query_spec.rb">
|
1202
1265
|
<provider selected="true" editor-type-id="text-editor">
|
1203
|
-
<state relative-caret-position="
|
1204
|
-
<caret line="
|
1266
|
+
<state relative-caret-position="252">
|
1267
|
+
<caret line="14" column="65" selection-start-line="14" selection-start-column="65" selection-end-line="14" selection-end-column="65" />
|
1205
1268
|
</state>
|
1206
1269
|
</provider>
|
1207
1270
|
</entry>
|
@@ -1218,23 +1281,24 @@
|
|
1218
1281
|
</state>
|
1219
1282
|
</provider>
|
1220
1283
|
</entry>
|
1221
|
-
<entry file="file://$PROJECT_DIR$/
|
1222
|
-
<provider selected="true" editor-type-id="text-editor" />
|
1223
|
-
</entry>
|
1224
|
-
<entry file="file://$PROJECT_DIR$/lib/leap_salesforce/generator/soql_enums.rb">
|
1284
|
+
<entry file="file://$PROJECT_DIR$/lib/leap_salesforce/ext/string.rb">
|
1225
1285
|
<provider selected="true" editor-type-id="text-editor">
|
1226
|
-
<state relative-caret-position="
|
1227
|
-
<caret line="
|
1286
|
+
<state relative-caret-position="158">
|
1287
|
+
<caret line="19" column="41" selection-start-line="19" selection-start-column="41" selection-end-line="19" selection-end-column="41" />
|
1228
1288
|
</state>
|
1229
1289
|
</provider>
|
1230
1290
|
</entry>
|
1231
|
-
<entry file="file://$PROJECT_DIR$/spec/
|
1232
|
-
<provider selected="true" editor-type-id="text-editor"
|
1291
|
+
<entry file="file://$PROJECT_DIR$/spec/unit/ext/string_spec.rb">
|
1292
|
+
<provider selected="true" editor-type-id="text-editor">
|
1293
|
+
<state relative-caret-position="270">
|
1294
|
+
<caret line="42" column="36" selection-start-line="42" selection-start-column="36" selection-end-line="42" selection-end-column="36" />
|
1295
|
+
</state>
|
1296
|
+
</provider>
|
1233
1297
|
</entry>
|
1234
|
-
<entry file="file://$PROJECT_DIR$/
|
1298
|
+
<entry file="file://$PROJECT_DIR$/ChangeLog">
|
1235
1299
|
<provider selected="true" editor-type-id="text-editor">
|
1236
|
-
<state relative-caret-position="
|
1237
|
-
<caret line="
|
1300
|
+
<state relative-caret-position="36">
|
1301
|
+
<caret line="2" column="4" selection-start-line="2" selection-start-column="4" selection-end-line="3" selection-end-column="50" />
|
1238
1302
|
</state>
|
1239
1303
|
</provider>
|
1240
1304
|
</entry>
|
data/ChangeLog
CHANGED
@@ -3,23 +3,31 @@
|
|
3
3
|
require 'nori/core_ext'
|
4
4
|
require 'rubykeyword'
|
5
5
|
require 'humanize'
|
6
|
+
require 'active_support/core_ext/string'
|
6
7
|
|
7
8
|
# Override string object to provide convenience methods for Strings
|
8
9
|
class String
|
9
|
-
# Convert string to something that would be friendly to use as
|
10
|
+
# @return [String] Convert string to something that would be friendly to use as in Ruby
|
10
11
|
def to_ruby_friendly
|
11
|
-
tr("'/()
|
12
|
-
|
12
|
+
tr(":'/()$€£¥#+, ", '').tr('-*"', '').tr('&|=', '_')
|
13
|
+
.gsub('<', '_lt_').gsub('>', '_gt_')
|
14
|
+
.remove_macrons.tr("\n", '')
|
15
|
+
.humanize_numbered_string
|
16
|
+
end
|
17
|
+
|
18
|
+
# @return [String] Convert String to form a class could use
|
19
|
+
def to_class_name
|
20
|
+
camelize.to_ruby_friendly.tr('_', '')
|
13
21
|
end
|
14
22
|
|
15
23
|
# @return [String] Remove many complex characters to make a key for a Ruby Hash that is usable in a method/key
|
16
24
|
def to_key_name
|
17
|
-
to_ruby_friendly.
|
25
|
+
to_ruby_friendly.snakecase.gsub(/__+/, '_')
|
18
26
|
end
|
19
27
|
|
20
28
|
# Convert string starting with number to a human string
|
21
29
|
def humanize_numbered_string
|
22
|
-
self[0] = self[0]
|
30
|
+
self[0] = ('0'..'9').cover?(self[0]) ? self[0].to_i.humanize : self[0]
|
23
31
|
self
|
24
32
|
end
|
25
33
|
|
@@ -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.
|
34
|
+
@enum_name = picklist.to_class_name
|
35
35
|
picklist_name = picklist.to_key_name
|
36
36
|
values = entity.picklist_for picklist
|
37
37
|
@enum_values = {}
|