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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/results_keeper_rspec.rb +6 -1
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52df7baa412d79d02d3866a147a6f9ddeab7e547
4
- data.tar.gz: 12a67751c5d78a64e55831641ad2dd0d7aef3620
3
+ metadata.gz: 36cdc1060d91d057f084dac5578d4bb3e06eaeef
4
+ data.tar.gz: f73f981f7c0724d7b6a45478fcf9733f98ad553b
5
5
  SHA512:
6
- metadata.gz: b097344fa8b5e98de0be672f6e949488646b76b04999e8b9c42fd9c120472fbbebb1a3b0255418719d99465bb92867096039ad686ee50a2072a5f085b452519c
7
- data.tar.gz: 36af413fd43c42af1ec6801169f11579d4440bc9dac4a255f007d1e4d678378d442bccc2e1f26a48d314840cd2769eb7a3ee256e71368f82e2aa7b2ac16cbf7d
6
+ metadata.gz: c1cddd66c279b5ea1653c8e27cb058993722cfa291eefcbb43e83c3e51d1f06cdbbe4d79f5e7acfefffc5de883f788925a54525d9ae79636824bc00a95ff488e
7
+ data.tar.gz: 70a4d7a0951395339a48f2a8cfc33df4211d75537022c945686051ec3d2de424ee4ebe7d3607bab5bd93bdf40d701939d777cc83df5f259205618522ef3381c7
@@ -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
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: results_keeper_rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ivan Kozakov