leap_salesforce 0.2.27 → 0.2.28

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: 6beb8a4e462a31ab61b61f7dd20a56b2a4e005802624060f55c667f13de2e475
4
- data.tar.gz: 3f5fdf94ce7bea4b7d5d5a22c875478006bceb471250755cce7822c016eadc02
3
+ metadata.gz: c713a2f3052a5b335fb56963091508d652a4b1d570a6283e2ad775e2e062dd9b
4
+ data.tar.gz: a845f0ee3220c1d88ae9086a529e61612b25cc79ccdacf2bae0296b12ade189e
5
5
  SHA512:
6
- metadata.gz: 121c6750cbeb5296f9827c269d303783aa4870e807d232e56e6319deabe82d6b5f6b3c8c5fa9f9fdd6bc71a94119f297d5faed8050d6593a5373b014924f55e2
7
- data.tar.gz: 88bfc12cb84587912d26b352fdcb933c6ca4ec6af712fd0f5f2445364db249757560a4156112ec89da2e0e144b99427c666bf13e267ce56e4a5c01269ead0091
6
+ metadata.gz: b8b6b99d725267fe4e89f32cfd513aadea6ee83e9ac1220052882988e88fa5bd1762ecaafc9ac23a8698f2645beea1bb2dce7cd1d38ae2b101bdb947588c1258
7
+ data.tar.gz: 93bcc18ead3300a227163fd19e18e5f9b7bbcc0c19c71cd0f32136ce3e176eb2b1515e00815507f438f94e84853a3d4c7f921edb3a9f76ded23d122b94035c43
data/ChangeLog CHANGED
@@ -1,3 +1,7 @@
1
+ Version 0.2.28
2
+ * Enhancement
3
+ * Make exclude method able to use class name in exclusion filter (hence easier to use)
4
+
1
5
  Version 0.2.27
2
6
  * Bug fix
3
7
  * Patch to update deprecated `create_enum` method so it allows 1 parameter
@@ -41,7 +41,7 @@ module LeapSalesforce
41
41
  puts "#{picklists.count} picklists found"
42
42
  picklists.each do |picklist|
43
43
  if soql_object.excludes?(picklist)
44
- puts "Exluding picklist '#{picklist}'"
44
+ puts "Excluding picklist '#{picklist}'"
45
45
  else
46
46
  generate_picklist_file picklist
47
47
  end
@@ -35,8 +35,9 @@ module LeapSalesforce
35
35
  def excludes?(picklist)
36
36
  if create_enum.is_a? Hash
37
37
  if create_enum['exclude']
38
+ picklist_class = picklist.to_class_name
38
39
  create_enum['exclude'].any? do |exclusion_list|
39
- !picklist.to_s[Regexp.new(exclusion_list)].nil?
40
+ !picklist.to_s[Regexp.new(exclusion_list)].nil? || !picklist_class[Regexp.new(exclusion_list)].nil?
40
41
  end
41
42
  else
42
43
  false
@@ -2,5 +2,5 @@
2
2
 
3
3
  module LeapSalesforce
4
4
  # @return [String] Version of leap salesforce
5
- VERSION = '0.2.27'
5
+ VERSION = '0.2.28'
6
6
  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.2.27
4
+ version: 0.2.28
5
5
  platform: ruby
6
6
  authors:
7
7
  - IQA
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: exe
11
11
  cert_chain: []
12
- date: 2020-04-23 00:00:00.000000000 Z
12
+ date: 2020-04-29 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler