capybara-screenshot 0.3.17 → 0.3.19

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,15 @@
1
1
  ---
2
- SHA1:
3
- metadata.gz: 678f842e8fe6edb010eb0e94d90138e9bb90ef67
4
- data.tar.gz: bc639f571a2dbf76550d295585687141969ab5e4
2
+ !binary "U0hBMQ==":
3
+ metadata.gz: !binary |-
4
+ OTRkNjU5NmE5NGZkNDAyYjkxNjBkZjYyYTNjYjU2YzA4YTg4MTZlOQ==
5
+ data.tar.gz: !binary |-
6
+ YzgzZGY1YTVhMGE0MDUzNWM4ODIwZWQ3Mzc4ZDU4ZDhkMzhmYWNjMA==
5
7
  SHA512:
6
- metadata.gz: 33ad229a3130437ff4fd1846d3e9e25eaaad5b00d5875f5f6ff01f644e262624118558ce343f32d5c7fde3413e8edb7583f7d9665307f88c7917db60253e3669
7
- data.tar.gz: 68c243d32ae3bb3d36f91c2f9580baeedbd51f5349360d9f95347b0a4ae26551bf49acc1334bc44c7db8751e9238027cc2b92cad323d783174ef262fa292fe7b
8
+ metadata.gz: !binary |-
9
+ ODEyN2Q0YTEwZTI0YjVmOWM5ZDkxMmUyNTVhYjgwNjMwYzhkZGUzMDk0MmJh
10
+ MDk1OWI2ZTAwOTJkNjRlYjc2NTJlYzY2ZjEyNzllODkyNzc5MzJkNmEwZjg5
11
+ MTJkOTQ0M2E3NjhlNzgyNjNiMmU2MGY5Y2VkYjgzYTQyOGRkMDg=
12
+ data.tar.gz: !binary |-
13
+ NDFiMzc5MzAzYWEyMzQxMzkzYzQ1NTk2NGQ1ZDdkMmRkZTA4Nzg1OGMwODE5
14
+ ODg0NjFiYThjOTQ0MGZlN2Q3NzZkYzEyNTA0OWU0MjhiMTc0Yzg4Mjk4Njc0
15
+ ZjJkYTQ0MTFlY2ZmNTYwOGM5M2FkNzZjZmY5OTBhZWMwMjhjMzQ=
@@ -1,3 +1,8 @@
1
+ 2 April 2014 - 0.3.18 -> 0.3.19
2
+ -----------
3
+
4
+ * Added support Spinach, thanks to https://github.com/suchitpuri
5
+
1
6
  2 March 2014 - 0.3.16 -> 0.3.17
2
7
  -----------
3
8
 
@@ -3,7 +3,7 @@ RSpec.configure do |config|
3
3
  config.after do |example_from_block_arg|
4
4
 
5
5
  # RSpec 3 no longer defines `example`, but passes the example as block argument instead
6
- example = respond_to?(:example) ? self.example : example_from_block_arg
6
+ example = config.respond_to?(:expose_current_running_example_as) ? example_from_block_arg : self.example
7
7
 
8
8
  if Capybara.page.respond_to?(:save_page) # Capybara DSL method has been included for a feature we can snapshot
9
9
  if Capybara.page.current_url != '' && Capybara::Screenshot.autosave_on_failure && example.exception
@@ -0,0 +1,7 @@
1
+ Spinach.hooks.on_failed_step do |step_data, exception, location, step_definitions|
2
+ if Capybara::Screenshot.autosave_on_failure
3
+ filename_prefix = Capybara::Screenshot.filename_prefix_for(:spinach, step_data)
4
+ saver = Capybara::Screenshot::Saver.new(Capybara, Capybara.page, true, filename_prefix)
5
+ saver.save
6
+ end
7
+ end
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Screenshot
3
- VERSION = "0.3.17"
3
+ VERSION = "0.3.19"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,75 +1,75 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-screenshot
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.17
4
+ version: 0.3.19
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matthew O'Riordan
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-03-02 00:00:00.000000000 Z
11
+ date: 2014-04-02 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: capybara
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - ! '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.0'
20
- - - "<"
20
+ - - <
21
21
  - !ruby/object:Gem::Version
22
22
  version: '3'
23
23
  type: :runtime
24
24
  prerelease: false
25
25
  version_requirements: !ruby/object:Gem::Requirement
26
26
  requirements:
27
- - - ">="
27
+ - - ! '>='
28
28
  - !ruby/object:Gem::Version
29
29
  version: '1.0'
30
- - - "<"
30
+ - - <
31
31
  - !ruby/object:Gem::Version
32
32
  version: '3'
33
33
  - !ruby/object:Gem::Dependency
34
34
  name: launchy
35
35
  requirement: !ruby/object:Gem::Requirement
36
36
  requirements:
37
- - - ">="
37
+ - - ! '>='
38
38
  - !ruby/object:Gem::Version
39
39
  version: '0'
40
40
  type: :runtime
41
41
  prerelease: false
42
42
  version_requirements: !ruby/object:Gem::Requirement
43
43
  requirements:
44
- - - ">="
44
+ - - ! '>='
45
45
  - !ruby/object:Gem::Version
46
46
  version: '0'
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: rspec
49
49
  requirement: !ruby/object:Gem::Requirement
50
50
  requirements:
51
- - - "~>"
51
+ - - ~>
52
52
  - !ruby/object:Gem::Version
53
53
  version: '2.7'
54
54
  type: :development
55
55
  prerelease: false
56
56
  version_requirements: !ruby/object:Gem::Requirement
57
57
  requirements:
58
- - - "~>"
58
+ - - ~>
59
59
  - !ruby/object:Gem::Version
60
60
  version: '2.7'
61
61
  - !ruby/object:Gem::Dependency
62
62
  name: timecop
63
63
  requirement: !ruby/object:Gem::Requirement
64
64
  requirements:
65
- - - ">="
65
+ - - ! '>='
66
66
  - !ruby/object:Gem::Version
67
67
  version: '0'
68
68
  type: :development
69
69
  prerelease: false
70
70
  version_requirements: !ruby/object:Gem::Requirement
71
71
  requirements:
72
- - - ">="
72
+ - - ! '>='
73
73
  - !ruby/object:Gem::Version
74
74
  version: '0'
75
75
  description: When a Cucumber step fails, it is useful to create a screenshot image
@@ -80,9 +80,9 @@ executables: []
80
80
  extensions: []
81
81
  extra_rdoc_files: []
82
82
  files:
83
- - ".gitignore"
84
- - ".rspec"
85
- - ".travis.yml"
83
+ - .gitignore
84
+ - .rspec
85
+ - .travis.yml
86
86
  - CHANGELOG.md
87
87
  - Gemfile
88
88
  - LICENSE
@@ -95,6 +95,7 @@ files:
95
95
  - lib/capybara-screenshot/minitest.rb
96
96
  - lib/capybara-screenshot/rspec.rb
97
97
  - lib/capybara-screenshot/saver.rb
98
+ - lib/capybara-screenshot/spinach.rb
98
99
  - lib/capybara-screenshot/testunit.rb
99
100
  - lib/capybara-screenshot/version.rb
100
101
  - spec/capybara-screenshot/capybara_spec.rb
@@ -111,17 +112,17 @@ require_paths:
111
112
  - lib
112
113
  required_ruby_version: !ruby/object:Gem::Requirement
113
114
  requirements:
114
- - - ">="
115
+ - - ! '>='
115
116
  - !ruby/object:Gem::Version
116
117
  version: '0'
117
118
  required_rubygems_version: !ruby/object:Gem::Requirement
118
119
  requirements:
119
- - - ">="
120
+ - - ! '>='
120
121
  - !ruby/object:Gem::Version
121
122
  version: '0'
122
123
  requirements: []
123
124
  rubyforge_project: capybara-screenshot
124
- rubygems_version: 2.2.2
125
+ rubygems_version: 2.1.11
125
126
  signing_key:
126
127
  specification_version: 4
127
128
  summary: Automatically create snapshots when Cucumber steps fail with Capybara and