capybara-screenshot 0.1.7 → 0.1.8

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG.md CHANGED
@@ -1,3 +1,9 @@
1
+ 3 Jan 2012
2
+ ----------
3
+
4
+ Removed Cucumber dependency https://github.com/mattheworiordan/capybara-screenshot/issues/7
5
+ Allowed PNG save path to be configured using capybara.save_and_open_page_path
6
+
1
7
  3 December 2011
2
8
  ---------------
3
9
 
@@ -14,7 +14,6 @@ Gem::Specification.new do |s|
14
14
 
15
15
  s.rubyforge_project = "capybara-screenshot"
16
16
 
17
- s.add_dependency 'cucumber', '>= 1.0'
18
17
  s.add_dependency 'capybara', '>= 1.0'
19
18
  s.add_development_dependency 'rspec', '~> 2.6'
20
19
 
@@ -22,8 +22,7 @@ module Capybara
22
22
  # Sinatra support, untested
23
23
  screenshot_path = File.join(settings.root, "#{capybara.save_and_open_page_path}/#{file_base_name}.png")
24
24
  else
25
- #screenshot_path = File.join(capybara.save_and_open_page_path.to_s, "#{file_base_name}.png")
26
- screenshot_path = "#{file_base_name}.png"
25
+ screenshot_path = File.join(capybara.save_and_open_page_path.to_s, "#{file_base_name}.png")
27
26
  end
28
27
 
29
28
  #We try to figure out how to call the screenshot method on the current driver
@@ -1,5 +1,5 @@
1
1
  module Capybara
2
2
  module Screenshot
3
- VERSION = "0.1.7"
3
+ VERSION = "0.1.8"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: capybara-screenshot
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matthew O'Riordan
@@ -15,11 +15,11 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-12-03 00:00:00 +00:00
18
+ date: 2012-01-03 00:00:00 +00:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
- name: cucumber
22
+ name: capybara
23
23
  prerelease: false
24
24
  requirement: &id001 !ruby/object:Gem::Requirement
25
25
  none: false
@@ -33,25 +33,10 @@ dependencies:
33
33
  version: "1.0"
34
34
  type: :runtime
35
35
  version_requirements: *id001
36
- - !ruby/object:Gem::Dependency
37
- name: capybara
38
- prerelease: false
39
- requirement: &id002 !ruby/object:Gem::Requirement
40
- none: false
41
- requirements:
42
- - - ">="
43
- - !ruby/object:Gem::Version
44
- hash: 15
45
- segments:
46
- - 1
47
- - 0
48
- version: "1.0"
49
- type: :runtime
50
- version_requirements: *id002
51
36
  - !ruby/object:Gem::Dependency
52
37
  name: rspec
53
38
  prerelease: false
54
- requirement: &id003 !ruby/object:Gem::Requirement
39
+ requirement: &id002 !ruby/object:Gem::Requirement
55
40
  none: false
56
41
  requirements:
57
42
  - - ~>
@@ -62,7 +47,7 @@ dependencies:
62
47
  - 6
63
48
  version: "2.6"
64
49
  type: :development
65
- version_requirements: *id003
50
+ version_requirements: *id002
66
51
  description: When a Cucumber step fails, it is useful to create a screenshot image and HTML file of the current page
67
52
  email:
68
53
  - matthew.oriordan@gmail.com