screenpress 0.1.0 → 0.1.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/screenpress/dsl.rb +1 -3
- data/lib/screenpress/version.rb +1 -1
- data/screenpress.gemspec +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 0e788d87ac38505a9a4a0a18c763ed7b90090510
|
4
|
+
data.tar.gz: 700ac9fd342eb0a9f471813840eaf65b6b5c87a0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: cafa83682004a4c115dbaa6417d5628cb7c69396a154f68bb6af49e4e584cba612d54560393bbec33e00f301e4bc769da1c978ab7a1a398a1618e4f9b74bda33
|
7
|
+
data.tar.gz: 1bfeca9e8bcdc5b4b72f3144fc3c98bc59ae6edad94874795ffbca383643783ff8dd4df240255b949cfa0233db33808baf518b337ddaf19151246d53dff67bb3
|
data/lib/screenpress/dsl.rb
CHANGED
@@ -3,11 +3,9 @@ module Screenpress
|
|
3
3
|
def screenpress(relative_filename)
|
4
4
|
return true unless Screenpress.config.enabled?
|
5
5
|
|
6
|
+
relative_filename << ".png"
|
6
7
|
filename = Screenpress.config.full_path.join(relative_filename)
|
7
8
|
|
8
|
-
# TODO: see if have extension
|
9
|
-
filename << ".png"
|
10
|
-
|
11
9
|
saver = Screenpress::Saver.new(filename.to_s, Capybara, Capybara.page)
|
12
10
|
saver.save
|
13
11
|
end
|
data/lib/screenpress/version.rb
CHANGED
data/screenpress.gemspec
CHANGED
@@ -10,7 +10,7 @@ Gem::Specification.new do |spec|
|
|
10
10
|
spec.email = ["brian@bleonard.com"]
|
11
11
|
spec.description = %q{Workflow and Capybara extension that takes screenshots of your tests to prevent visual regressions}
|
12
12
|
spec.summary = %q{Prevent visual regressions}
|
13
|
-
spec.homepage = ""
|
13
|
+
spec.homepage = "https://github.com/taskrabbit/screenpress"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
16
16
|
spec.files = `git ls-files`.split($/)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: screenpress
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Brian Leonard
|
@@ -104,7 +104,7 @@ files:
|
|
104
104
|
- spec/dsl_spec.rb
|
105
105
|
- spec/saver_spec.rb
|
106
106
|
- spec/spec_helper.rb
|
107
|
-
homepage:
|
107
|
+
homepage: https://github.com/taskrabbit/screenpress
|
108
108
|
licenses:
|
109
109
|
- MIT
|
110
110
|
metadata: {}
|