poltergeist-screenshot_overview 0.1.3 → 0.1.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 642d58752314135c93094aaccc936f056c8b397e
|
4
|
+
data.tar.gz: 2957ec546c339c3703f42e863f1f74832be36635
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 24d341ba5d43f44513d9aa5646f792aea1561bae7c6320566d5af0f55d9fecab39518b177c401e2d703d113e9edfdd5e04e8e3bcac68f0bc2576d0179bef27ab
|
7
|
+
data.tar.gz: f63b39bbe00ae2a1203f972c0a7c43fac05a378ad89e317e228196938936a37285553d0e843694692b18b4d04e884e871aa836fc67479d0805aed7ea74d660e4
|
@@ -64,11 +64,10 @@ module Poltergeist::ScreenshotOverview
|
|
64
64
|
# adds image_path and metadata to our list, returns a full path where the
|
65
65
|
# Engine should put the screenshot in
|
66
66
|
def add_image_from_rspec(argument, example, url_path)
|
67
|
-
filename = [example.description, argument, Digest::MD5.hexdigest("foo")[0..6] ].join(" ").gsub(/\W+/,"_") + ".jpg"
|
68
|
-
|
69
67
|
blob = caller.find{|i| i[ example.file_path.gsub(/:\d*|^\./,"") ]}
|
70
68
|
file_with_line = blob.split(":")[0,2].join(":")
|
71
69
|
|
70
|
+
filename = [example.description, argument, file_with_line, SecureRandom.hex(6) ].join(" ").gsub(/\W+/,"_") + ".jpg"
|
72
71
|
full_name = File.join(Poltergeist::ScreenshotOverview.target_directory, filename )
|
73
72
|
FileUtils.mkdir_p Poltergeist::ScreenshotOverview.target_directory
|
74
73
|
describe = example.metadata[:example_group][:description_args]
|
@@ -96,7 +95,7 @@ module Poltergeist::ScreenshotOverview
|
|
96
95
|
def groups
|
97
96
|
@files.
|
98
97
|
group_by{ |screenshot| screenshot.test_file}.
|
99
|
-
map{|file,screenshots| ScreenshotGroup.new(file,screenshots) }
|
98
|
+
map{|file,screenshots| ScreenshotGroup.new(file,screenshots.sort_by{|s| s.file_with_line }) }
|
100
99
|
end
|
101
100
|
|
102
101
|
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.
|
8
|
+
spec.version = "0.1.5"
|
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}
|
data/templates/layout.erb
CHANGED
@@ -35,13 +35,12 @@
|
|
35
35
|
</style>
|
36
36
|
|
37
37
|
<script type='text/javascript'>
|
38
|
-
url = window.location.toString();
|
39
|
-
console.log(url)
|
40
|
-
if (!/\/$/.test(url)) {
|
41
|
-
|
42
|
-
|
43
|
-
|
44
|
-
}
|
38
|
+
//url = window.location.toString();
|
39
|
+
//console.log(url)
|
40
|
+
//if (!/\/$/.test(url)) {
|
41
|
+
// url = url + '/';
|
42
|
+
// window.location = url
|
43
|
+
//}
|
45
44
|
</script>
|
46
45
|
|
47
46
|
</head>
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: poltergeist-screenshot_overview
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
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-
|
11
|
+
date: 2013-06-03 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: poltergeist
|
@@ -99,4 +99,3 @@ summary: Useful for running in Continuos integration server, so the designer can
|
|
99
99
|
up, after recent design changes, if anything broke. One get's a brief overview over
|
100
100
|
the application wide style renderings (on Chrome).
|
101
101
|
test_files: []
|
102
|
-
has_rdoc:
|