mass-client 1.0.9 → 1.0.11

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: b23fd3f2a8f804afaf12ea2b2f33a9a0b6a8edb38aa2ec6149d89e865614c07f
4
- data.tar.gz: 2209625ee901f2fda749d43979a13b33f3b7698f0b9354d0cdfd6563a6179ae6
3
+ metadata.gz: f4e212b05533b1a1c800613dfe67b17992b0d28adbe9a5f7ca6542f85c624224
4
+ data.tar.gz: c7752e62beb09f1ae0b7ca50c09bab366efc295e002bef0f6f3f5d5254e90b28
5
5
  SHA512:
6
- metadata.gz: 95fadc2d8df7a9481ee503d0e8a13f498d9085c6f44daa0ab6bfc76f6d0860e84468669d0c056a2f35a27e84dde174feebfffb53bee0ff8cd77fd185ed8a8235
7
- data.tar.gz: 287b6d62fac3d795d3d12888c3a9a742dbb89e28b7dcb7288f85b85ccb3fc605a50dfc816576096a1b95af5b344fb4b7b82f2e3c9eed38859da99382fe14318a
6
+ metadata.gz: ddf48c8e4c197b1d4a17cd6350019d14a45333060962e9c59e15743d156c55947dcc34e9a846487c78f6c68ee6daad1b49c3fe021a15f65fa3a634da696d4b3f
7
+ data.tar.gz: d8813ed6dc642d2785d21ea0d3268a80f7d40a26a1f0b70c4403ed8d0d4ba8fe58000f51dc6069b874454be5f9f889c0abc7eecfc82b9a45ff1b187c10275f4d
@@ -13,6 +13,7 @@ module Mass
13
13
  self.lead = Mass::Lead.new(h['lead']) if h['lead']
14
14
  self.company = Mass::Company.new(h['company']) if h['company']
15
15
  self.profile_type = Mass::ProfileType.page(
16
+ id_account: h['id_account'],
16
17
  page: 1,
17
18
  limit: 1,
18
19
  filters: {
@@ -13,6 +13,7 @@ module Mass
13
13
  self.lead = Mass::Lead.new(h['lead']) if h['lead']
14
14
  self.company = Mass::Company.new(h['company']) if h['company']
15
15
  self.profile_type = Mass::ProfileType.page(
16
+ id_account: h['id_account'],
16
17
  page: 1,
17
18
  limit: 1,
18
19
  filters: {
@@ -9,6 +9,7 @@ module Mass
9
9
  def initialize(h={})
10
10
  super(h)
11
11
  self.profile_type = Mass::ProfileType.page(
12
+ id_account: h['id_account'],
12
13
  page: 1,
13
14
  limit: 1,
14
15
  filters: {
@@ -0,0 +1,14 @@
1
+ module Mass
2
+ class Unsubscribe < BlackStack::Base
3
+ #attr_accessor :type, :profile, :lead, :company, :profile_type
4
+
5
+ def self.object_name
6
+ 'unsubscribe'
7
+ end
8
+
9
+ def initialize(h)
10
+ super(h)
11
+ self.id_outreach = h['profile_type'] if h['profile_type']
12
+ end
13
+ end # class Unsubscribe
14
+ end # module Mass
@@ -42,6 +42,7 @@ module Mass
42
42
  h_filters = {}
43
43
  h_filters[field_2.to_s] = k[field_2]
44
44
  lead = Mass::Lead.page(
45
+ id_account: lead_descriptor['id_account'],
45
46
  page: 1,
46
47
  limit: 1,
47
48
  filters: h_filters
@@ -155,7 +156,7 @@ module Mass
155
156
  )
156
157
  err = []
157
158
  err << "The status must be :allow or :block." if ![:allow, :block].include?(status)
158
- err << "#{domain.to_s} is not a valid domain" if !domain.to_s.valid_domain?
159
+ err << "#{domain.to_s} is not a valid domain" if !domain.to_s.strip.downcase.valid_domain?
159
160
  raise err.join("\n") if err.size > 0
160
161
 
161
162
  site_url = secure ? "https://" : "http://"
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: mass-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.9
4
+ version: 1.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Leandro Daniel Sardi
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2024-08-02 00:00:00.000000000 Z
11
+ date: 2024-08-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: uri
@@ -179,6 +179,7 @@ files:
179
179
  - lib/base-line/source.rb
180
180
  - lib/base-line/source_type.rb
181
181
  - lib/base-line/tag.rb
182
+ - lib/base-line/unsubscribe.rb
182
183
  - lib/first-line/profile_api.rb
183
184
  - lib/first-line/profile_mta.rb
184
185
  - lib/first-line/profile_rpa.rb