ish_models 0.0.33.285 → 0.0.33.287

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: e325a01ece3aab8dacd0f932b072d971e54df0e27c0000d905b19f77d51d985b
4
- data.tar.gz: 61d00470b14d3cd5a2ab0007f1f2fc7161b1dc1ea162f17adac43f8e5377f58a
3
+ metadata.gz: 83d872b9868c1bc820cbdcbadfde298a034010095e4f19910f1851d35cca00fd
4
+ data.tar.gz: e1fc95e4a71e17c4486389a83ffcf6b1fada942f9e9a71a488f4842c157878b6
5
5
  SHA512:
6
- metadata.gz: 96807c7322acdb1068115b5ab73c95233b53cc1eea325da5fa4a854a018f86bc30d6dbba2c696d6c16805abddeae6024008d962161b65660f1ae9fcff20e0123
7
- data.tar.gz: b23cdb716dfe54f09e7798aad1a33e637783ef1952922867f698dcacb0033f76d0bfdd3d79c3d2525b426405706037157dcb04fb3fd031315ddbfc368c760e0c
6
+ metadata.gz: 2a44c1b86067b6b62b9d77c0a94f71d60f3264d7549c8e1b848f17e48bef01d0c415871c95886aa0de3b806eca787669c4a87608734f141875591da6d068dc1a
7
+ data.tar.gz: 960ee95e22f7e124d643d566a4b2052f547f02cefeb67e8c1b7f2a69c2d9f07bc75aaa52a722e276803e87e3a2548ba04868e40b7c9ab7f42ddc272d45e2043d
@@ -75,7 +75,10 @@ class ::Ish::EmailContext
75
75
  field :lead_id, type: :integer
76
76
  def lead; Lead.find( lead_id ); end
77
77
  def to_email; lead[:email]; end ## @TODO: remove, just use the lead. _vp_ 2023-03-27
78
-
78
+ # ## no `to` field b/c that's the lead
79
+ # field :tos, type: :array, default: []
80
+ field :cc, type: :string
81
+ field :ccs, type: :array, default: []
79
82
 
80
83
  ##
81
84
  ## For tracking / utm
@@ -29,6 +29,7 @@ class ::Ish::EmailTemplate
29
29
  field :config_exe, default: "" ## unused! _vp_ 2023-09-24
30
30
  field :config_json, type: Object, default: '{}'
31
31
 
32
+ DEFAULT_FROM_EMAIL = 'Victor Pudeyev <victor@wasya.co>'
32
33
  FROM_EMAILS = [
33
34
  'Annesque Studio <hello@annesque.studio>',
34
35
  'Annesque Studio <no-reply@annesque.studio>',
@@ -45,30 +46,30 @@ class ::Ish::EmailTemplate
45
46
  'Oquaney Splicing <hello@oquaney-splicing.com>',
46
47
  'Oquaney Splicing <no-reply@oquaney-splicing.com>',
47
48
 
48
- 'Victor Piousbox <piousbox@gmail.com>',
49
- 'Victor Piousbox <victor@piousbox.com>',
50
- 'Victor Piousbox <no-reply@piousbox.com>',
49
+ 'Victor Pudeyev <piousbox@gmail.com>',
50
+ 'Victor Pudeyev <victor@piousbox.com>',
51
+ 'Victor Pudeyev <no-reply@piousbox.com>',
51
52
  'Victor Pudeyev <victor@pudeyev.com>',
52
53
 
53
- 'Sender Sbs <hello@sender.sbs>',
54
- 'Sender Sbs <no-reply@sender.sbs>',
54
+ 'Sender SBS <hello@sender.sbs>',
55
+ 'Sender SBS <no-reply@sender.sbs>',
55
56
 
56
57
  'WasyaCo Consulting <admin@wasya.co>',
57
- 'Alex <alex@wasya.co>',
58
- 'Bailey <bailey@wasya.co>',
59
- 'Cameron <cameron@wasya.co>',
58
+ 'Alex WCo <alex@wasya.co>',
59
+ 'Bailey WCo <bailey@wasya.co>',
60
+ 'Cameron WCo <cameron@wasya.co>',
60
61
  'WasyaCo Consulting <hello@wasya.co>',
61
- 'Jess <jess@wasya.co>',
62
+ 'Jess WCo <jess@wasya.co>',
62
63
  'WasyaCo Consulting <no-reply@wasya.co>',
63
- 'Victor Piousbox <victor@wasya.co>',
64
+ 'Victor Pudeyev <victor@wasya.co>',
64
65
 
65
66
  'WasyaCo Consulting <admin@wasyaco.com>',
66
- 'Alex <alex@wasyaco.com>',
67
- 'Bailey <bailey@wasyaco.com>',
68
- 'Cameron <cameron@wasyaco.com>',
67
+ 'Alex WCo <alex@wasyaco.com>',
68
+ 'Bailey WCo <bailey@wasyaco.com>',
69
+ 'Cameron WCo <cameron@wasyaco.com>',
69
70
  'WasyaCo Consulting <hello@wasyaco.com>',
70
71
  'WasyaCo Consulting <no-reply@wasyaco.com>',
71
- 'Victor <victor@wasyaco.com>',
72
+ 'Victor Pudeyev <victor@wasyaco.com>',
72
73
 
73
74
  'Wasya Co Mailer <no-reply@wco.com.de>',
74
75
  'Wasya Co Mailer <wasyacomailer@gmail.com>',
@@ -78,6 +79,15 @@ class ::Ish::EmailTemplate
78
79
  [ [nil, nil] ] + FROM_EMAILS.map { |i| [i, i] }
79
80
  end
80
81
 
82
+ SIGNATURE = <<~AOL
83
+ <div>
84
+ <div><br></div>
85
+ <div>Regards,</div>
86
+ <div>-=----- &gt;8 --</div>
87
+ <div>Victor Pudeyev<br>Director of Engineering<br><a href="mailto:victor@piousbox.com" target="_blank">victor@piousbox.com</a> | <a href="https://tidycal.com/wasya-co/30min" target="_blank">Book a chat</a><br></div>
88
+ </div><hr /><br /><br /><br />
89
+ AOL
90
+
81
91
  ## 2023-03-04 _vp_ This works!
82
92
  def get_binding
83
93
  @lead = Lead.where( email: 'stub@wasya.co' ).first
data/lib/ish/invoice.rb CHANGED
@@ -94,7 +94,7 @@ class Ish::Invoice
94
94
  total = 0
95
95
  leadset.subscriptions.each do |i|
96
96
  subtotal = (i.price.amount_cents * i.quantity).to_f/100
97
- lineitems_with_header.push([ i.price.product.name, i.price.to_s, i.quantity, subtotal ])
97
+ lineitems_with_header.push([ i.price.product.name, i.price.name_simple, i.quantity, subtotal ])
98
98
  total += subtotal
99
99
  end
100
100
 
@@ -53,6 +53,7 @@ class Office::EmailConversation
53
53
  wp_term_id: tag.id,
54
54
  }).first&.delete
55
55
  end
56
+ ## @deprecated, do not use. _vp_ 2023-10-29
56
57
  def rmtag which; remove_tag which; end
57
58
 
58
59
  def in_emailtag? which
data/lib/wco/price.rb CHANGED
@@ -21,6 +21,9 @@ class Wco::Price
21
21
  def name
22
22
  "$#{ amount_cents.to_f/100 } / #{interval}"
23
23
  end
24
+ def name_simple
25
+ "$#{ amount_cents.to_f/100 }"
26
+ end
24
27
 
25
28
  end
26
29
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ish_models
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.33.285
4
+ version: 0.0.33.287
5
5
  platform: ruby
6
6
  authors:
7
7
  - piousbox