leap_salesforce 0.1.7 → 0.1.8
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
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 457d0417a4b8be95ecd61db1b0ac53616900b504ce8c1eecc333c1e7ea5abfe9
|
4
|
+
data.tar.gz: 792af4fccfe7d765c7885cec8c3a4ff359bdcf1acf929869a2c4aa754173f885
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8f2dce774c2571a06064ea7c2f865dc77719eb889df63d03f86313bb37c52b3360a48ab58c8183f6644cbbf70ec221db5759f5274a91c4f0d6f913835613221b
|
7
|
+
data.tar.gz: c96e12f15cdd3857d5b5766d95a70f443c6f8054345c2acf4c69ff6a640213f03173262b6dcd57b2fa779cf223f8c23cdf891ed5b95319c3c217c3a64273d1e4
|
data/ChangeLog
CHANGED
@@ -1,3 +1,7 @@
|
|
1
|
+
Version 0.1.8
|
2
|
+
* Bug Fix
|
3
|
+
* Numbers at start of picklist names were not working and having different label and backend names broke things too
|
4
|
+
|
1
5
|
Version 0.1.7
|
2
6
|
* Bug Fix
|
3
7
|
* Enumeration handle where duplicates are created when converting to ruby style method by adding a '_1', '_2'
|
data/README.md
CHANGED
@@ -52,6 +52,14 @@ API Traffic logs can be seen in the `logs` folder.
|
|
52
52
|
|
53
53
|
TODO: Finish this. A lot more needed
|
54
54
|
|
55
|
+
## Structure
|
56
|
+
|
57
|
+
.
|
58
|
+
├── config # Code for the configuration of the automation suite
|
59
|
+
│ ├── general.rb # Code loaded for common (non confidential code) setup across environments
|
60
|
+
│ ├── credentials #
|
61
|
+
|
62
|
+
|
55
63
|
## Docs
|
56
64
|
|
57
65
|
Technical docs [here](https://www.rubydoc.info/gems/leap_salesforce)
|
@@ -20,7 +20,7 @@ class String
|
|
20
20
|
|
21
21
|
# @return [String] Convert String to form a class could use
|
22
22
|
def to_class_name
|
23
|
-
camelize.to_ruby_friendly.tr('_', '')
|
23
|
+
camelize.to_ruby_friendly.tr('_', '').camelize
|
24
24
|
end
|
25
25
|
|
26
26
|
# @return [String] Remove many complex characters to make a key for a Ruby Hash that is usable in a method/key
|
@@ -21,7 +21,7 @@ module LeapSalesforce
|
|
21
21
|
when 'string' then set("Faker::Lorem.paragraph_by_chars(#{field['length']})")
|
22
22
|
when 'id' then set('Best to not hard code this', use_quotes: true)
|
23
23
|
when 'boolean' then set('true')
|
24
|
-
when 'picklist' then set("#{class_name}::#{field['
|
24
|
+
when 'picklist' then set("#{class_name}::#{field['label'].to_class_name}.sample")
|
25
25
|
when 'reference'
|
26
26
|
return set('User.find(CreatedDate: "<#{0.days.ago}").id') if field['name'] == 'OwnerId'
|
27
27
|
|