rscout 0.0.4 → 0.0.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/bin/rscout +1 -2
- data/lib/rscout.rb +4 -1
- data/lib/rscout/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0622e655b8e0c28ccee8389460ba14a822f6e1ce
|
4
|
+
data.tar.gz: 0694c366f0ce7b05d5fcdb82f3116fc745e25ca2
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
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
|
data/lib/rscout.rb
CHANGED
@@ -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
|
data/lib/rscout/version.rb
CHANGED
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
|
+
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-
|
11
|
+
date: 2014-05-16 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: json
|