generic_test 0.2.1 → 0.2.2

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
  SHA256:
3
- metadata.gz: 9b1c9696f0ea835b89da12a7d1b95289955fc66097fa614009775acde222a5bd
4
- data.tar.gz: 0ed1be3abda02a988dbd7befb16f4a6e725566e1a911e0c842268e371acc85f3
3
+ metadata.gz: f6379c81a2dea26407fa5633791cb839909581636ae394a3f691e89a25a0d6c6
4
+ data.tar.gz: a2baae840463737782dc39a89a91b1cc34a4c865b4e1e542a9e67c647797e337
5
5
  SHA512:
6
- metadata.gz: f69e2f461c62fcd4be622afbc3754197c6731d8d650aeffd5727f80514237aa136d347a131f94c6ab889f1ae3a62d5e9aad010eeff917932eefc04bf2be7715e
7
- data.tar.gz: ae3bd8b8c02e3d269b55916482098a6dd3b86ef8e05ebb7a1aecb117f09d0e19a0b49d8233f8b393832d357f153fcc4ca3f846a589c3865eb5b9fe24927e1950
6
+ metadata.gz: 10440d8210e40574dba8ec815443bed05a640ec3bd303f5a78ee8d035767e1c8faa03711446664083b4a2b6196b5f06b9db1e28b4477614965e3e8774b94afd6
7
+ data.tar.gz: ad67a5d1996580967d7deda6970a15a99cb86d96bedbb6168e5c0420c6e117bb13f62751ed14661a4cbd45f9364388bbe4a1e337ffc05da154c80cf1a8e222de
data/ChangeLog CHANGED
@@ -1,3 +1,9 @@
1
+ Version 0.2.2
2
+ * Ignore telephone numbers in links
3
+
4
+ Version 0.2.1
5
+ * Get working with Ruby 3.3
6
+
1
7
  Version 0.1.13
2
8
  * Enhancement
3
9
  * Fail if cannot find url of page provided
data/Dockerfile CHANGED
@@ -22,5 +22,3 @@ RUN export LANGUAGE=C.UTF-8
22
22
  RUN export LC_ALL=C.UTF-8
23
23
  # By running test image is checked and webdriver will be cached
24
24
  RUN generic_test page samuel-garratt.gitlab.io/generic_test/about.html
25
-
26
- ENTRYPOINT ["generic_test", "page"]
data/exe/generic_test CHANGED
@@ -7,6 +7,10 @@ $LOAD_PATH.unshift File.join(File.dirname(__FILE__), '..', 'lib')
7
7
 
8
8
  # Executable for Generic Test
9
9
  class Exe < Thor
10
+ def self.exit_on_failure?
11
+ true
12
+ end
13
+
10
14
  desc 'page page_url', 'Test web page'
11
15
  def page(page_url)
12
16
  ENV['PAGE_URL'] = page_url
@@ -18,7 +18,7 @@ module GenericTest
18
18
  self.emails, self.links = browser.links.partition do |link|
19
19
  link.href.start_with?('mailto:')
20
20
  end
21
- links.reject! { |link| link.href.empty? || link.href.start_with?('javascript:') }
21
+ links.reject! { |link| link.href.empty? || link.href.start_with?('javascript:') || link.href.start_with?('tel:') }
22
22
  emails.collect! { |link| link.href.split(':').last }
23
23
  self.url = browser.url
24
24
  self.html = browser.html
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module GenericTest
4
- VERSION = '0.2.1'
4
+ VERSION = '0.2.2'
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: generic_test
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.1
4
+ version: 0.2.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Garratt