wraith 3.2.0 → 3.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Dockerfile +4 -4
- data/lib/wraith/spider.rb +2 -0
- data/lib/wraith/version.rb +1 -1
- data/spec/before_capture_spec.rb +2 -2
- data/templates/configs/history.yaml +1 -1
- metadata +3 -3
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4d35ba6d87d0aaf4e56cf8bb931a824c43a78fcb
|
4
|
+
data.tar.gz: 34948a1fb48136bd61fa51bf8c103e38e193dcb5
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 73dd3a1ce26facfc828b16451c1a2f5276154b9363fee241acf01bf3941c7a362eb53a26ed3ffc8da9e5ec72a919754844f85ab12730952e51abf2b45ff3a54e
|
7
|
+
data.tar.gz: 1b31f83b11171307744d43e3ff7934a59253acc33eb883b4dd250206c3b2bb3de137e0f0d0d144c09d1e7391ef8152b29ee3a9a8991678a5f88d446b32877a2c
|
data/Dockerfile
CHANGED
@@ -3,11 +3,11 @@ FROM ruby:2.1.2
|
|
3
3
|
# some of ruby's build scripts are written in ruby
|
4
4
|
# we purge this later to make sure our final image uses what we just built
|
5
5
|
RUN apt-get update
|
6
|
-
RUN curl -o phantomjs.tar.gz -L https://bitbucket.org/ariya/phantomjs/downloads/phantomjs-1.9.8-linux-x86_64.tar.bz2
|
7
|
-
RUN tar -xvf phantomjs.tar.gz
|
8
|
-
RUN mv phantomjs-1.9.8-linux-x86_64/bin/phantomjs /usr/bin
|
9
6
|
RUN echo "export phantomjs=/usr/bin/phantomjs" > .bashrc
|
10
|
-
RUN apt-get install -y libfreetype6 libfontconfig1
|
7
|
+
RUN apt-get install -y libfreetype6 libfontconfig1 nodejs npm
|
8
|
+
RUN ln -s /usr/bin/nodejs /usr/bin/node
|
9
|
+
RUN npm install npm
|
10
|
+
RUN npm install -g phantomjs@2.1.7 casperjs@1.1.1
|
11
11
|
RUN gem install wraith --no-rdoc --no-ri
|
12
12
|
RUN gem install aws-sdk --no-rdoc --no-ri
|
13
13
|
|
data/lib/wraith/spider.rb
CHANGED
data/lib/wraith/version.rb
CHANGED
data/spec/before_capture_spec.rb
CHANGED
@@ -45,7 +45,7 @@ describe Wraith do
|
|
45
45
|
|
46
46
|
# @TODO - we need tests determining the path to "path-level before_capture hooks"
|
47
47
|
|
48
|
-
describe "When hooking into
|
48
|
+
describe "When hooking into before_capture (CasperJS)" do
|
49
49
|
it "Executes the global JS before capturing" do
|
50
50
|
run_js_then_capture(
|
51
51
|
:global_js => before_suite_js,
|
@@ -75,7 +75,7 @@ describe Wraith do
|
|
75
75
|
end
|
76
76
|
|
77
77
|
# @TODO - uncomment and figure out why broken
|
78
|
-
# describe "When hooking into
|
78
|
+
# describe "When hooking into before_capture (PhantomJS)" do
|
79
79
|
# let(:config_name) { get_path_relative_to __FILE__, "./configs/test_config--phantom.yaml" }
|
80
80
|
# let(:saving) { Wraith::SaveImages.new(config_name) }
|
81
81
|
# let(:wraith) { Wraith::Wraith.new(config_name) }
|
@@ -29,7 +29,7 @@ paths:
|
|
29
29
|
clickable_guide__after_click:
|
30
30
|
path: /news/entertainment-arts-27221191
|
31
31
|
selector: '.idt__news'
|
32
|
-
before_capture: 'javascript/
|
32
|
+
before_capture: 'javascript/interact--casper.js' # (optional) JavaScript file to execute before taking the screenshot of this path.
|
33
33
|
|
34
34
|
# (optional) JavaScript file to execute before taking screenshot of every path. Default: nil
|
35
35
|
before_capture: 'javascript/wait--casper.js'
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: wraith
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 3.2.
|
4
|
+
version: 3.2.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Dave Blooman
|
@@ -10,7 +10,7 @@ authors:
|
|
10
10
|
autorequire:
|
11
11
|
bindir: bin
|
12
12
|
cert_chain: []
|
13
|
-
date: 2016-
|
13
|
+
date: 2016-08-04 00:00:00.000000000 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: pry
|
@@ -266,7 +266,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
266
266
|
version: '0'
|
267
267
|
requirements: []
|
268
268
|
rubyforge_project:
|
269
|
-
rubygems_version: 2.4.
|
269
|
+
rubygems_version: 2.4.8
|
270
270
|
signing_key:
|
271
271
|
specification_version: 4
|
272
272
|
summary: Wraith is a screenshot comparison tool, created by developers at BBC News.
|