udup 0.1.2 → 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/udup/main.rb +2 -2
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: bcfb036e5503e400a084d0be36c188563ab03aff902ff57772d24c69ee7a614e
4
- data.tar.gz: b7129006a5108e82dd338ef02f32614c6e8789a13f9203145e9e3f1aa94e3d0d
3
+ metadata.gz: e0547bade9bfbb824417c7e7cd2ef94a24765ab1e6bd5e187969f67d4c5fec6b
4
+ data.tar.gz: 621b668409f97f40156941bcaa9b8eff799ffb36c1dba316bb236da1dd31eb83
5
5
  SHA512:
6
- metadata.gz: e500c3fd7e72e910937a8268342d0ddcac1e30511dfd7ccdc9c8f29696ca8a2338fad4e5857c2aed9bd7d86591d93faad7b3354c17d1a6023aef6d3b41b14de6
7
- data.tar.gz: 04e3ea7fdab96d27d622ead800756986672686fe6af31b8e882cc7ab3c365d9fb7edc58997bedc037faa9bc154654e3cdb63d86d9a4f99078eae8208217f3421
6
+ metadata.gz: d31c66dd8053ab084a8033320435206cb1fc61b0812ffe090eefce4454fcad140f839d9f000504d0901c42d2b8c8619ecc48caa9ae99a49ad8f6e873ece1c473
7
+ data.tar.gz: 2c807c6005dbea210f9454c5bf0f8b3adc843835d17c3968aea059bbdca3f74cf766d1eee059cbc79bd2c0e1d6838c1a996faeb482be4242408be45aa1db8f65
data/lib/udup/main.rb CHANGED
@@ -8,7 +8,7 @@ class Udup
8
8
  @valid_urls = {}
9
9
  @skip_exts = options[:skip_exts] || %w[.css .png .jpg .jpeg .svg .ico .webp .ttf .otf .woff .woff2 .gif .pdf .bmp
10
10
  .eot .mp3 .mp4 .avi]
11
- @content_to_skip = options[:content_to_skip] || %w[blog docs post support]
11
+ @content_to_skip = %r{blog|docs|post|support|pages?/\d+|articles?/\d+|\d{2,}}i
12
12
  @bad_char_path = options[:bad_char_path] || %w[+ ' " ( ) \\ <]
13
13
  end
14
14
 
@@ -73,6 +73,6 @@ class Udup
73
73
  end
74
74
 
75
75
  def content_to_skip?(path)
76
- @content_to_skip.any? { |content| path.include?(content) }
76
+ path.match?(@content_to_skip)
77
77
  end
78
78
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: udup
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joshua MARTINELLE
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2023-01-17 00:00:00.000000000 Z
11
+ date: 2023-01-18 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description:
14
14
  email: