closer 0.3.7 → 0.3.8

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: 44863be3cf429974172bc9f2b811b869e05a5d6b
4
- data.tar.gz: 0bf1794521931645d0f3253021dbeefa254ec9cd
3
+ metadata.gz: d7accc4cc646453f96c4c7607dfa7362b7dd9598
4
+ data.tar.gz: cee621be8422f4521e0c31dfc3ef5c1ccd6e1260
5
5
  SHA512:
6
- metadata.gz: 4416583ff3dc4cf8ac4b562121e44a7b9d252991229143953b694a215856a259fc0636cc9ab6262291498795ed2f5c69fbff9c3662b1cf4a3afdf4defb2feb04
7
- data.tar.gz: 38eb9ba288c9fc4bc91c15a2e39c74757fd9c6e144b932093a82ebdcc86df9c3f5f3e5f266c60e4cc090e2ad8159e569b73be0d0d6cf8c8ac26256b99f6206e0
6
+ metadata.gz: ffe12a64e7c5fddefbb0c29a6503dd4359eec36714d033774978404c45f51d4030a24dc468f354a8ba80a60ffa77372105e9adb064ea327b1a0d7104fcc7c9bf
7
+ data.tar.gz: b9ad6c219fa44aa56a383fb648eb1a0e2ba902dbfd6229f6cba27f35b09d9284294e79ec679fa956f3672637cd9dbe29813b5add3bb538beccc1a0765d8eba13
@@ -41,6 +41,14 @@ module Closer
41
41
  end
42
42
  end
43
43
 
44
+ def with_capture(options = {})
45
+ begin
46
+ yield
47
+ ensure
48
+ capture(options)
49
+ end
50
+ end
51
+
44
52
  def resize_window(width, height)
45
53
  case Capybara.current_driver
46
54
  when :poltergeist
@@ -1,3 +1,3 @@
1
1
  module Closer
2
- VERSION = '0.3.7'
2
+ VERSION = '0.3.8'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: closer
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.7
4
+ version: 0.3.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - ichy
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-05-10 00:00:00.000000000 Z
11
+ date: 2016-08-20 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cucumber