leap_salesforce 0.1.7 → 0.1.8

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: dad7a996366ea8a7e9dc3b7acfee0bd5a3c028b9cbbfcb900436af73a6974e80
4
- data.tar.gz: 0a1b977c80d03b62d6e2e963e2a37ae1bd9e3185b4ac25f6eed68804a0291cd5
3
+ metadata.gz: 457d0417a4b8be95ecd61db1b0ac53616900b504ce8c1eecc333c1e7ea5abfe9
4
+ data.tar.gz: 792af4fccfe7d765c7885cec8c3a4ff359bdcf1acf929869a2c4aa754173f885
5
5
  SHA512:
6
- metadata.gz: 1fcb10612c2c13acd12ca01d67a2bb3a92739cb5ac88c321df5775a9c6d11e75640e74bfd5e00b0322988c0a096867c53661540fd009f6b5e85d676588b3cec5
7
- data.tar.gz: daaad233034d817aa45bb7d5afe489cd61eb8a951d509437d8bba470ed84f37335f6f5893c15eeea2e6b6387a61f7c095123382957e57a711ce152fcecd2f7f2
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['name'].to_class_name}.sample")
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
 
@@ -71,6 +71,7 @@ module SoqlObjectDescribe
71
71
  fields.find_all { |field| field[''] }
72
72
  end
73
73
 
74
+ # @return [Array] List of labels that have picklists
74
75
  def picklists
75
76
  label_names.find_all { |f| type_for(f) == 'picklist' }
76
77
  end
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module LeapSalesforce
4
- VERSION = '0.1.7'
4
+ VERSION = '0.1.8'
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.7
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - IQA