prof 0.31.4 → 0.31.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 70164328ba15226c08ed0b6c16c0e8f9ca0fa993
4
- data.tar.gz: b97dd91fc6614fa881b4aed7a9a35f5161dc3eef
3
+ metadata.gz: 0d298f74c80065a52f5df6b80077a8a02fbc834f
4
+ data.tar.gz: c6cb8736ee927625b3ab5d35e709140fa40b3430
5
5
  SHA512:
6
- metadata.gz: fd9c0fd16033e1c60822bd5456e3c9712b98a3ca06645b5c5baf72ad73b586e2a14647b79457f2e3b9c91259da64b2abafde52c04249b6f47d2fb1b25d2835ad
7
- data.tar.gz: 96d5947352299c616f61c4b2bc579bd0c7d09b42f0bc412983cc36c4ed0728d1b8826ed4c605e4b591b73a52d2d8e8b7cf1aec8bc336e57c42ae7c1820320d8a
6
+ metadata.gz: 2f0dde8f4fc13d0ac8a19ca630ed41155f0e629ce41abfc28e089aae7bc434170b175454e6f963800863affe850e74f0437903abd6ca0ff4f3c9c9ddc8eb88f4
7
+ data.tar.gz: 05f16d61f55cc0b335f153fbb64a859047ebc559d3e129b5299eec511a6deef9913fd0b45faaf402fc66eb91b3c6f132368a326a1212d6b51b9a465b4905a91f
@@ -43,15 +43,19 @@ RSpec.configure do |config|
43
43
  end
44
44
 
45
45
  config.after(:each) do |example|
46
- if example.exception
47
- page = save_page
48
- screenshot = save_screenshot(nil)
49
-
50
- exception = example.exception
51
- exception.define_singleton_method :message do
52
- super() +
53
- "\nHTML page: #{page}\nScreenshot: #{screenshot}"
46
+ if Capybara.current_session.instance_variable_get(:@touched)
47
+ if example.exception
48
+ page = save_page
49
+ screenshot = save_screenshot(nil)
50
+
51
+ exception = example.exception
52
+ exception.define_singleton_method :message do
53
+ super() +
54
+ "\nHTML page: #{page}\nScreenshot: #{screenshot}"
55
+ end
54
56
  end
57
+
58
+ Capybara.current_session.reset!
55
59
  end
56
60
  end
57
61
  end
data/lib/prof/version.rb CHANGED
@@ -9,5 +9,5 @@
9
9
  #
10
10
 
11
11
  module Prof
12
- VERSION = '0.31.4'
12
+ VERSION = '0.31.5'
13
13
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prof
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.31.4
4
+ version: 0.31.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - CF London
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-04-28 00:00:00.000000000 Z
11
+ date: 2016-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: gem-release
@@ -222,38 +222,18 @@ dependencies:
222
222
  version: 0.8.3
223
223
  - !ruby/object:Gem::Dependency
224
224
  name: net-ssh-gateway
225
- requirement: !ruby/object:Gem::Requirement
226
- requirements:
227
- - - "~>"
228
- - !ruby/object:Gem::Version
229
- version: 1.2.0
230
- type: :runtime
231
- prerelease: false
232
- version_requirements: !ruby/object:Gem::Requirement
233
- requirements:
234
- - - "~>"
235
- - !ruby/object:Gem::Version
236
- version: 1.2.0
237
- - !ruby/object:Gem::Dependency
238
- name: net-ssh
239
225
  requirement: !ruby/object:Gem::Requirement
240
226
  requirements:
241
227
  - - ">="
242
228
  - !ruby/object:Gem::Version
243
- version: 2.9.2
244
- - - "<="
245
- - !ruby/object:Gem::Version
246
- version: 3.1.1
229
+ version: '0'
247
230
  type: :runtime
248
231
  prerelease: false
249
232
  version_requirements: !ruby/object:Gem::Requirement
250
233
  requirements:
251
234
  - - ">="
252
235
  - !ruby/object:Gem::Version
253
- version: 2.9.2
254
- - - "<="
255
- - !ruby/object:Gem::Version
256
- version: 3.1.1
236
+ version: '0'
257
237
  - !ruby/object:Gem::Dependency
258
238
  name: nokogiri
259
239
  requirement: !ruby/object:Gem::Requirement