From 0f1edca5a0e706204c776f4dee292276c14326b3 Mon Sep 17 00:00:00 2001 From: Jonathan Jefferies Date: Wed, 30 Nov 2016 15:42:00 +0000 Subject: [PATCH 01/11] Fix undefined `page` variable --- templates/javascript/cookies_and_headers--phantom.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/javascript/cookies_and_headers--phantom.js b/templates/javascript/cookies_and_headers--phantom.js index 47b6e525..4262435b 100644 --- a/templates/javascript/cookies_and_headers--phantom.js +++ b/templates/javascript/cookies_and_headers--phantom.js @@ -4,7 +4,7 @@ // ###################################################### module.exports = function (phantom, ready) { - page.customHeaders = { + phantom.customHeaders = { 'SOME-HEADER': 'fish' }; From f061e5591faea4ba1c7b50056b190e5b3cf2a0bb Mon Sep 17 00:00:00 2001 From: Chris Ashton Date: Sat, 10 Dec 2016 11:54:46 +0000 Subject: [PATCH 02/11] added `wraith info` instruction to new issues --- .github/ISSUE_TEMPLATE.md | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/.github/ISSUE_TEMPLATE.md b/.github/ISSUE_TEMPLATE.md index 4945c1d8..d4619dae 100644 --- a/.github/ISSUE_TEMPLATE.md +++ b/.github/ISSUE_TEMPLATE.md @@ -8,6 +8,12 @@ Reporting a problem? Please describe the issue above, and complete the following - [ ] I have validated my config file against [YAML Validator](http://codebeautify.org/yaml-validator) to make sure it is valid YAML. +- [ ] I have run the `wraith info` command and pasted the output below: + +``` +paste results here +``` + - [ ] I have run the command in verbose mode (by adding `verbose: true` to my config) and pasted the output below: ``` From 3f26618f3ce8df9dc20fdd658e158e0bfbb6a5be Mon Sep 17 00:00:00 2001 From: Thomas Wunderlich Date: Mon, 23 Jan 2017 23:02:48 -0500 Subject: [PATCH 03/11] Spider option should autogenerate the spider.yml file if the imported file does not exist --- lib/wraith/spider.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wraith/spider.rb b/lib/wraith/spider.rb index a0fb16db..b0ee2a79 100644 --- a/lib/wraith/spider.rb +++ b/lib/wraith/spider.rb @@ -16,7 +16,7 @@ class Wraith::Spider attr_reader :wraith def initialize(config) - @wraith = Wraith::Wraith.new(config) + @wraith = Wraith::Wraith.new(config, { imports_must_resolve: false }) @paths = {} end From 3463eebc87ce9879b6f79d04c7199c8feef94a88 Mon Sep 17 00:00:00 2001 From: ChrisBAshton Date: Tue, 24 Jan 2017 10:53:23 +0000 Subject: [PATCH 04/11] update ruby version, attempt to fix travis build --- .ruby-version | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.ruby-version b/.ruby-version index 133fcc5f..0bee604d 100644 --- a/.ruby-version +++ b/.ruby-version @@ -1 +1 @@ -2.0.0-p247 \ No newline at end of file +2.3.3 From 7b39b6577fe2284bdddcd192adcb732d5d9692db Mon Sep 17 00:00:00 2001 From: ChrisBAshton Date: Tue, 24 Jan 2017 10:58:11 +0000 Subject: [PATCH 05/11] bring travis config up to date --- .travis.yml | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/.travis.yml b/.travis.yml index 67b1eb1c..bce3a93f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,9 +1,8 @@ language: ruby rvm: -- 1.9.3 -- 2.0.0 +- 2.3.3 before_install: - - gem update --system 2.4.5 # last known successful Travis build + - gem update - gem --version script: bundle exec rspec notifications: From db2a94a6c06e3ef88b632e05dbb5b6c6778f6541 Mon Sep 17 00:00:00 2001 From: ChrisBAshton Date: Tue, 24 Jan 2017 13:15:12 +0000 Subject: [PATCH 06/11] bumped to 4.0.1 --- lib/wraith/version.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wraith/version.rb b/lib/wraith/version.rb index a48d5ae0..76568221 100644 --- a/lib/wraith/version.rb +++ b/lib/wraith/version.rb @@ -1,3 +1,3 @@ module Wraith - VERSION = "4.0.0" + VERSION = "4.0.1" end From e994d7352ff94b12370ae1cb8a2af4e8688f084d Mon Sep 17 00:00:00 2001 From: Joseph Wynn Date: Thu, 2 Mar 2017 18:14:45 +0000 Subject: [PATCH 07/11] Add support for using arrow keys in the gallery slideshow --- lib/wraith/gallery_template/slideshow_template.erb | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/lib/wraith/gallery_template/slideshow_template.erb b/lib/wraith/gallery_template/slideshow_template.erb index 5f40c79c..1840a790 100644 --- a/lib/wraith/gallery_template/slideshow_template.erb +++ b/lib/wraith/gallery_template/slideshow_template.erb @@ -108,7 +108,9 @@ From 220c36e95b1d4e9cb95829530c026a252fcee7f4 Mon Sep 17 00:00:00 2001 From: Joseph Wynn Date: Fri, 3 Mar 2017 18:33:43 +0000 Subject: [PATCH 08/11] Port keyboard accessibility updates to lightbox modal --- .../gallery_template/slideshow_template.erb | 35 +++++++++++-------- 1 file changed, 21 insertions(+), 14 deletions(-) diff --git a/lib/wraith/gallery_template/slideshow_template.erb b/lib/wraith/gallery_template/slideshow_template.erb index 1840a790..e80ab201 100644 --- a/lib/wraith/gallery_template/slideshow_template.erb +++ b/lib/wraith/gallery_template/slideshow_template.erb @@ -109,6 +109,7 @@ +
From f43681ebd94203f0ca28159eaf7d275fa13950a8 Mon Sep 17 00:00:00 2001 From: Joseph Wynn Date: Fri, 3 Mar 2017 19:35:31 +0000 Subject: [PATCH 09/11] Fix typo - don't remove the modal when clicking to exit --- lib/wraith/gallery_template/slideshow_template.erb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/wraith/gallery_template/slideshow_template.erb b/lib/wraith/gallery_template/slideshow_template.erb index e80ab201..1f4bd797 100644 --- a/lib/wraith/gallery_template/slideshow_template.erb +++ b/lib/wraith/gallery_template/slideshow_template.erb @@ -152,7 +152,7 @@ }) compareModal.on('click', function(){ - $(this).remove(); + $(this).hide(); }); $(document).on('keyup', function(e) { From f4371157875f3ca912c13f1788b13f5afea61c51 Mon Sep 17 00:00:00 2001 From: Kent Richards Date: Tue, 27 Nov 2018 13:44:36 -0800 Subject: [PATCH 10/11] Change UserAgent for casperjs Changes the casperjs UserAgent to the same value used by phantomjs. Fixes #601 --- lib/wraith/javascript/casper.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/lib/wraith/javascript/casper.js b/lib/wraith/javascript/casper.js index 5236de0b..ee11918a 100644 --- a/lib/wraith/javascript/casper.js +++ b/lib/wraith/javascript/casper.js @@ -1,7 +1,7 @@ // modules var system = require('system'), casper = require('casper').create(), - helper = requireRelative('_helper.js')(casper.cli.get(1)); + helper = requireRelative('_helper.js')(casper.cli.get(1)); // command line arguments var url = casper.cli.get(0), @@ -53,9 +53,11 @@ else { } // Casper can now do its magic +casper.userAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537.17 (KHTML, like Gecko) Chrome/28.0.1500.95 Safari/537.17'); casper.start(); casper.open(url); casper.viewport(currentDimensions.viewportWidth, currentDimensions.viewportHeight); + casper.then(function() { var self = this; if (globalBeforeCaptureJS && pathBeforeCaptureJS) { From cb925d332c2beaa02d733a21c9ff86f99c599224 Mon Sep 17 00:00:00 2001 From: Kent Richards Date: Tue, 27 Nov 2018 14:17:16 -0800 Subject: [PATCH 11/11] Undo whitespace changes --- lib/wraith/javascript/casper.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lib/wraith/javascript/casper.js b/lib/wraith/javascript/casper.js index ee11918a..99d6124d 100644 --- a/lib/wraith/javascript/casper.js +++ b/lib/wraith/javascript/casper.js @@ -1,7 +1,7 @@ // modules var system = require('system'), casper = require('casper').create(), - helper = requireRelative('_helper.js')(casper.cli.get(1)); + helper = requireRelative('_helper.js')(casper.cli.get(1)); // command line arguments var url = casper.cli.get(0), @@ -57,7 +57,6 @@ casper.userAgent('Mozilla/5.0 (Macintosh; Intel Mac OS X 10_8_2) AppleWebKit/537 casper.start(); casper.open(url); casper.viewport(currentDimensions.viewportWidth, currentDimensions.viewportHeight); - casper.then(function() { var self = this; if (globalBeforeCaptureJS && pathBeforeCaptureJS) {