alexmchale-commerce-bank-client 0.5.0 → 0.6.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. data/VERSION.yml +1 -1
  2. data/lib/commercebank.rb +9 -2
  3. metadata +1 -1
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
- :minor: 5
2
+ :minor: 6
3
3
  :major: 0
4
4
  :patch: 0
data/lib/commercebank.rb CHANGED
@@ -174,14 +174,21 @@ class CommerceBank
174
174
  print(summarize(daily_summary))
175
175
  end
176
176
 
177
+ def text_daily_summary
178
+ summarize daily_summary
179
+ end
180
+
181
+ def html_daily_summary
182
+ summarize_html daily_summary
183
+ end
184
+
177
185
  def gmail_daily_summary
178
186
  subject = "Daily Summary"
179
- summary = summarize_html(daily_summary)
180
187
 
181
188
  username = @config['GMail Username']
182
189
  password = @config['GMail Password']
183
190
 
184
- GMail.new(username, password).send(username, subject, summary, 'text/html')
191
+ GMail.new(username, password).send(username, subject, html_daily_summary, 'text/html')
185
192
  end
186
193
 
187
194
  def gmail_monthly_summary
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: alexmchale-commerce-bank-client
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex McHale