wraith 3.2.0 → 3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 6f5e541c0899e31a774d045713d49001093e7db8
4
- data.tar.gz: 5ce84a237f26ed5463d44ee04ba009c29a472e80
3
+ metadata.gz: 4d35ba6d87d0aaf4e56cf8bb931a824c43a78fcb
4
+ data.tar.gz: 34948a1fb48136bd61fa51bf8c103e38e193dcb5
5
5
  SHA512:
6
- metadata.gz: 18f33496288a557ea5b0ed9d9dce53b8026aaa94fa543f69558cc9f76723a77a567b1320288032d6eb60bb4019a29a71f2bfa068e7b672e87dce292a0f9b71d1
7
- data.tar.gz: 91c44ac7173c17e7894a76222a85bfd5a5a525691dd0eaf5eee3c36418cf9feea045dc433854469bbe6a01758be8a21e07d4bc5389c39be30d7364373b23b13c
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
 
@@ -27,6 +27,8 @@ class Wraith::Spidering
27
27
  end
28
28
 
29
29
  class Wraith::Spider
30
+ attr_reader :wraith
31
+
30
32
  def initialize(wraith)
31
33
  @wraith = wraith
32
34
  @paths = {}
@@ -1,3 +1,3 @@
1
1
  module Wraith
2
- VERSION = "3.2.0"
2
+ VERSION = "3.2.1"
3
3
  end
@@ -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 beforeCapture (CasperJS)" do
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 beforeCapture (PhantomJS)" do
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/beforeCapture--casper_example.js' # (optional) JavaScript file to execute before taking the screenshot of this path.
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.0
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-05-16 00:00:00.000000000 Z
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.7
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.