results_keeper_rspec 0.1.3 → 0.2.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/results_keeper_rspec.rb +6 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 36cdc1060d91d057f084dac5578d4bb3e06eaeef
|
4
|
+
data.tar.gz: f73f981f7c0724d7b6a45478fcf9733f98ad553b
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: c1cddd66c279b5ea1653c8e27cb058993722cfa291eefcbb43e83c3e51d1f06cdbbe4d79f5e7acfefffc5de883f788925a54525d9ae79636824bc00a95ff488e
|
7
|
+
data.tar.gz: 70a4d7a0951395339a48f2a8cfc33df4211d75537022c945686051ec3d2de424ee4ebe7d3607bab5bd93bdf40d701939d777cc83df5f259205618522ef3381c7
|
data/lib/results_keeper_rspec.rb
CHANGED
@@ -11,7 +11,7 @@ class ResultsKeeperRspec
|
|
11
11
|
attr_reader :revision_name, :revision_project
|
12
12
|
|
13
13
|
DEFAULT_PORT = 80
|
14
|
-
DEFAULT_HOST = 'results-keeper.herokuapp.com'
|
14
|
+
DEFAULT_HOST = 'results-keeper-api.herokuapp.com'
|
15
15
|
|
16
16
|
def initialize
|
17
17
|
@revision_name = ENV['REVISION_NAME'] || "Result for #{Time.now}"
|
@@ -26,6 +26,7 @@ class ResultsKeeperRspec
|
|
26
26
|
def send_revision_complete
|
27
27
|
data = { revision: @revision_name, project: project_name, completed: 1 }
|
28
28
|
send_json(data, 'revisions')
|
29
|
+
remove_screenshots
|
29
30
|
end
|
30
31
|
|
31
32
|
def send_test(scenario)
|
@@ -88,4 +89,8 @@ class ResultsKeeperRspec
|
|
88
89
|
def console_message(text)
|
89
90
|
puts " RK: #{text}".blue
|
90
91
|
end
|
92
|
+
|
93
|
+
def remove_screenshots
|
94
|
+
FileUtils.rm_rf(Dir.glob('tmp/screenshots/*'))
|
95
|
+
end
|
91
96
|
end
|