wco_models 3.1.0.256 → 3.1.0.258

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: df997a022614f9d91328ec9895d6751031d95757c3bd440a8d901e3b9ec05039
4
- data.tar.gz: 0d5b4f8ae88b862dd789bd222d07f8a1d22830b2fc002fe443e9df3fe888fced
3
+ metadata.gz: f9b1b79f6117b312b9552b8c38edbee57a2768e0c9908ab8f6427230f28b1822
4
+ data.tar.gz: 9dd95f4f9c4b32696f4a60bc8f59cf67ac381b18843d0307c666b1cde550a6a9
5
5
  SHA512:
6
- metadata.gz: eeb94f1ebc9fe0c9e8f889e91131fca6d3f497f641e2ab08edb2e762aeedc2716079a0e71ff33f5b3a00070161e8b13e015dc5a52a90fa3174dcf5c157271339
7
- data.tar.gz: 6da49cff643a536dc13c169de9b37d0d82cf0ecfaf5cd1ef2bc3c1dc9cdca6c6a566e4d9b7de646698a94cc40124d73ef0a06c42f28c2a2f56e3d599493a806b
6
+ metadata.gz: 17ac583474a6ec1c08e714f412c9f675a0294eaa21009148ac236109f81954735ea6902733d7f5ead2668bd1d650f7cb41fa1820ff45d5961af0761d19ba62fd
7
+ data.tar.gz: eca5c34f97259a7621a2d5c84d5dd3695d43c6b0974eb554eb98d09e9eff07eb210a42e471a04ef2da9a277e9af0b997037b05c88927b6a71f6834dff153d85f
@@ -40,20 +40,28 @@ class WcoEmail::EmailFilterCondition
40
40
  cond = self
41
41
  reason = nil
42
42
  case cond.field
43
- when WcoEmail::FIELD_LEADSET
44
- if cond.operator == WcoEmail::OPERATOR_NOT_HAS_TAG
45
- this_tag = Wco::Tag.find cond.value
46
- if leadset.tags.include?( this_tag )
47
- ;
48
- else
49
- reason = "#{email_skip_filter ? 'skip_' : ''}condition leadset not-has-tag #{this_tag} NOT met"
43
+ ## from match-i <value>
44
+ when WcoEmail::EmailFilterCondition::FIELD_FROM
45
+ if cond.operator == WcoEmail::EmailFilterCondition::OPERATOR_MATCH
46
+ if message.from.downcase.include?( value.downcase )
47
+ reason = "#{email_skip_filter ? 'skip_' : ''}condition from match-i `#{value}`"
50
48
  end
51
49
  end
52
- when WcoEmail::FIELD_TO
53
- if message.to == cond.value
54
- reason = "{email_skip_filter ? 'skip_' : ''}condition to = #{cond.value}"
55
- end
56
50
  end
51
+ # when WcoEmail::FIELD_LEADSET
52
+ # if cond.operator == WcoEmail::OPERATOR_NOT_HAS_TAG
53
+ # this_tag = Wco::Tag.find cond.value
54
+ # if leadset.tags.include?( this_tag )
55
+ # ;
56
+ # else
57
+ # reason = "#{email_skip_filter ? 'skip_' : ''}condition leadset not-has-tag #{this_tag} NOT met"
58
+ # end
59
+ # end
60
+ # when WcoEmail::FIELD_TO
61
+ # if message.to == cond.value
62
+ # reason = "{email_skip_filter ? 'skip_' : ''}condition to = #{cond.value}"
63
+ # end
64
+ # end
57
65
  return reason
58
66
  end
59
67
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: wco_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.1.0.256
4
+ version: 3.1.0.258
5
5
  platform: ruby
6
6
  authors:
7
7
  - Victor Pudeyev