poltergeist-screenshot_overview 0.1.6 → 0.1.7

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: 1bc1dec4fb394ff4666d297a286f3a3522987d55
4
- data.tar.gz: 988cefb2a88d1439ebde46633041dbd84e15f118
3
+ metadata.gz: 7d5b3a5ccb6e3a9b0b11c759a5ff3ba6e3db249c
4
+ data.tar.gz: 286195f97bcd995c36cb3b66da62a6f663c92375
5
5
  SHA512:
6
- metadata.gz: a446bc2330f602141077aa2e56fa6326f8f119021fc7c8c42628e98e0332387d1c9726516d46a535a34bb42f01c41c484b850246c3775f8e2e97fa651b428a38
7
- data.tar.gz: 27835e7ceffcf44f0ad3a27298844e186220b9ad7ef3f12d90a5fadb6346ab396d55f36c1e3ab3b2bda9474f537c57e0e5636ea43980eb3524f6d1ae3905506d
6
+ metadata.gz: 3bf960c1ebf876dbb373d7c388851b982c8dc7e1b79be6b1ef2af37e52a90b9b5fc8f64247a889e5f9fa368862108733ade8c691c2a92ec96d58978432654de4
7
+ data.tar.gz: d42b843a2396e548585b47c4c30be7683998332cb6787d9ad060b307d4a2e3d88c0f331e40b58193ca155c5421346549e3f989f9b7a9f4db5d8041e3a9192214
@@ -46,8 +46,9 @@ module Poltergeist
46
46
  private
47
47
 
48
48
  def make_screenshot(argument)
49
- if self.example.metadata[:js] || self.example.metadata[:screenshot]
50
- filename = Manager.instance.add_image_from_rspec(argument, self.example, current_path)
49
+ ex = RSpec.current_example
50
+ if ex && (ex.metadata[:js] || ex.metadata[:screenshot])
51
+ filename = Manager.instance.add_image_from_rspec(argument, ex, current_path)
51
52
  page.driver.render(Rails.root.join(filename).to_s,full: true)
52
53
  end
53
54
  end
@@ -1,5 +1,5 @@
1
1
  module Poltergeist
2
2
  module ScreenshotOverview
3
- VERSION = "0.0.1"
3
+ VERSION = "0.1.7"
4
4
  end
5
5
  end
@@ -5,7 +5,7 @@ require 'poltergeist/screenshot_overview/version'
5
5
 
6
6
  Gem::Specification.new do |spec|
7
7
  spec.name = "poltergeist-screenshot_overview"
8
- spec.version = "0.1.6"
8
+ spec.version = Poltergeist::ScreenshotOverview::VERSION
9
9
  spec.authors = ["Stefan Wienert"]
10
10
  spec.email = ["stefan.wienert@pludoni.de"]
11
11
  spec.description = %q{hooks into Capybara poltergeist to automatically make screenshots after each click}
metadata CHANGED
@@ -1,55 +1,55 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poltergeist-screenshot_overview
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Stefan Wienert
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2013-09-02 00:00:00.000000000 Z
11
+ date: 2015-06-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: poltergeist
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - '>='
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
19
  version: '0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
- - - '>='
24
+ - - ">="
25
25
  - !ruby/object:Gem::Version
26
26
  version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - ~>
31
+ - - "~>"
32
32
  - !ruby/object:Gem::Version
33
33
  version: '1.3'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - ~>
38
+ - - "~>"
39
39
  - !ruby/object:Gem::Version
40
40
  version: '1.3'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - '>='
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
47
  version: '0'
48
48
  type: :development
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - '>='
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
54
  version: '0'
55
55
  description: hooks into Capybara poltergeist to automatically make screenshots after
@@ -60,7 +60,7 @@ executables: []
60
60
  extensions: []
61
61
  extra_rdoc_files: []
62
62
  files:
63
- - .gitignore
63
+ - ".gitignore"
64
64
  - Gemfile
65
65
  - LICENSE.txt
66
66
  - README.md
@@ -82,17 +82,17 @@ require_paths:
82
82
  - lib
83
83
  required_ruby_version: !ruby/object:Gem::Requirement
84
84
  requirements:
85
- - - '>='
85
+ - - ">="
86
86
  - !ruby/object:Gem::Version
87
87
  version: '0'
88
88
  required_rubygems_version: !ruby/object:Gem::Requirement
89
89
  requirements:
90
- - - '>='
90
+ - - ">="
91
91
  - !ruby/object:Gem::Version
92
92
  version: '0'
93
93
  requirements: []
94
94
  rubyforge_project:
95
- rubygems_version: 2.0.3
95
+ rubygems_version: 2.2.2
96
96
  signing_key:
97
97
  specification_version: 4
98
98
  summary: Useful for running in Continuos integration server, so the designer can look