rscout 0.0.4 → 0.0.5

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
  SHA1:
3
- metadata.gz: 122f7a05a4c4d1a366866e830436fc02cbeae6cd
4
- data.tar.gz: 035395fa5ed400e3110135c40b9e79854ea02ee3
3
+ metadata.gz: 0622e655b8e0c28ccee8389460ba14a822f6e1ce
4
+ data.tar.gz: 0694c366f0ce7b05d5fcdb82f3116fc745e25ca2
5
5
  SHA512:
6
- metadata.gz: 527601c844ab30a370921a303214ac0df68d081b015d0c3dfd8339d2255b6664dc0c24f0d83cbac300c9a3e821c7f65d4483caa872614324795cc4b77cd29534
7
- data.tar.gz: 7b6948db98ae4334239c2539231851fd6a719b6c42f4253867f75cb636ae2c192ee645660fd21ed9fc811ce2b5bf5eb0f73d4b68fbdec564c97d251bd5904ef4
6
+ metadata.gz: b152a015415df39e8dbd70a3babb7778692ba6c30dc3f5939a0fd80ac136c26f8a43a96166b8051980214eb8354bef9d7e973aeda48c76085ab0f5d27e0819be
7
+ data.tar.gz: 05a8fd8a8b6a574800fe6f1e8d61b215c5a538642a86e0646b644dda9ff79431656ee7a9fb89816253e9b6860977a9ee736d306c23adea661b41ae92e6d61fa4
data/bin/rscout CHANGED
@@ -15,8 +15,6 @@ class RscoutCommand < Thor
15
15
  method_option :verbose, type: :boolean, aliases: [:v], default: false, lazy_default: true, desc: 'Show verbose messaging.'
16
16
  def test
17
17
  Mail.defaults do
18
- from ENV['RSCOUT_EMAIL']
19
-
20
18
  smtp = {}
21
19
 
22
20
  smtp[:user_name] = ENV['SMTP_USERNAME'] if ENV['SMTP_USERNAME']
@@ -33,6 +31,7 @@ class RscoutCommand < Thor
33
31
  RScout.options[:logger] = Logger.new(ENV['RSCOUT_LOG']) if ENV['RSCOUT_LOG']
34
32
  RScout.options[:env] = options.env
35
33
  RScout.options[:verbose] = options.verbose
34
+ RScout.options[:from_email] = ENV['RSCOUT_EMAIL'] if ENV['RSCOUT_EMAIL']
36
35
 
37
36
  RScout.run_suite Dir.pwd
38
37
  end
@@ -17,7 +17,8 @@ module RScout
17
17
  DEFAULT_OPTIONS = {
18
18
  logger: DEFAULT_LOGGER,
19
19
  verbose: false,
20
- env: 'development'
20
+ env: 'development',
21
+ from_email: 'rscout@localhost'
21
22
  }
22
23
 
23
24
  class << self
@@ -108,6 +109,7 @@ module RScout
108
109
  logger.info "Sending emails alert to #{config.email}"
109
110
  begin
110
111
  mail = Mail.new do
112
+ from options[:from_email]
111
113
  to config.email
112
114
  subject "RScout Alert: Tests failing on #{config.name.to_s.humanize.titleize} (#{env})"
113
115
  add_file filename: 'results.html', content: output.html.string
@@ -133,6 +135,7 @@ module RScout
133
135
  begin
134
136
  if config.pagerduty_service_key.match(/@(.*)pagerduty.com$/)
135
137
  mail = Mail.new do
138
+ from options[:from_email]
136
139
  to config.pagerduty_service_key
137
140
  subject "DOWN alert: RScout tests failing on #{config.name.to_s.humanize.titleize} (#{env})"
138
141
  body email_body
@@ -1,3 +1,3 @@
1
1
  module Rscout
2
- VERSION = "0.0.4"
2
+ VERSION = "0.0.5"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rscout
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.4
4
+ version: 0.0.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Hammond (@andrhamm)
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-15 00:00:00.000000000 Z
11
+ date: 2014-05-16 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: json