sitediff 1.2.6 → 1.2.8

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: 233b252b32a914f3d88133ae1d8784edb7057a252ac813685369ac052e46fa91
4
- data.tar.gz: c1907fd80f5e3b6e66759592dd88dd2d280420f90fb1bf6f25b411bd31952c6b
3
+ metadata.gz: d8ada20fc6a7f1adad1a21601dd0ffb9d8391f6a939296339cec3eb1b0104aba
4
+ data.tar.gz: 899e79721748ec176b0ce6bd602c521cd94689ce0d28806f77d495effa92f57e
5
5
  SHA512:
6
- metadata.gz: b13c3aa28be320461b256da3f47c80d3f2cc78a00360e6d4da0a997534c72a8b19dc3a5ee0a79ecf77bbd96c0f12e59e75190386013790569d91af72f28ffca5
7
- data.tar.gz: fea5b0c03cd7597cea7d3e81951af82c5f47722ef32344e9ead6446db9c4363699ba896d445cd79552c13c51d38876778a2c91956f307a239e04595b768a1093
6
+ metadata.gz: 70cff17823e4244a3ce2d148b8ebbc707ae7b38d1a9ea7c90ea622520d730d13fd0b4efd2733784e0fd806f39afee835c4536b0c6fc2bf749aa9a3ab77c6afa0
7
+ data.tar.gz: da2a6294e02c1a1badb93c04af8d5bf7f21f05c976e902463f2d8ffe3bad53ef6aae79e5ee9373ae949f35cce883098b7081b5d482dc78dab1b929665c4968f6
data/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # SiteDiff Change Log
2
2
 
3
3
  Contains noteworthy changes made to SiteDiff.
4
+ ## Version 1.2.8
5
+ - Dependency updates.
6
+
7
+ ## Version 1.2.7
8
+ - Diff performance improvement. Preset rules were being repeatedly re-added to the list of rules.
9
+
4
10
  ## Version 1.2.5
5
11
  - Fix issue with whitespace in URLs.
6
12
  - Updates for Drupal preset for Drupal 8, 9, 10.
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- sitediff (1.2.6)
4
+ sitediff (1.2.7)
5
5
  addressable (>= 2.5.2, < 2.9.0)
6
6
  diffy (~> 3.4.0)
7
7
  minitar (~> 0.9)
@@ -26,7 +26,9 @@ GEM
26
26
  fileutils (1.1.0)
27
27
  json (2.6.2)
28
28
  minitar (0.9)
29
- nokogiri (1.14.2-arm64-darwin)
29
+ nokogiri (1.15.2-aarch64-linux)
30
+ racc (~> 1.4)
31
+ nokogiri (1.15.2-x86_64-linux)
30
32
  racc (~> 1.4)
31
33
  parallel (1.22.1)
32
34
  parser (3.1.2.0)
@@ -64,13 +66,12 @@ GEM
64
66
  parser (>= 3.1.1.0)
65
67
  ruby-progressbar (1.11.0)
66
68
  thor (1.2.1)
67
- typhoeus (1.4.1)
68
- ethon (= 0.16.0)
69
+ typhoeus (1.4.0)
70
+ ethon (>= 0.9.0)
69
71
  unicode-display_width (2.2.0)
70
72
  webrick (1.8.1)
71
73
 
72
74
  PLATFORMS
73
- ruby
74
75
  x86_64-linux
75
76
 
76
77
  DEPENDENCIES
@@ -81,4 +82,4 @@ DEPENDENCIES
81
82
  thor
82
83
 
83
84
  BUNDLED WITH
84
- 2.1.4
85
+ 2.3.26
@@ -255,6 +255,7 @@ class SiteDiff
255
255
  @file = file
256
256
  @directory = directory
257
257
 
258
+ @preset_applied = { 'before' => false, 'after' => false }
258
259
  # Validate configurations.
259
260
  validate
260
261
  end
@@ -512,10 +513,14 @@ class SiteDiff
512
513
  # Merge plugins with array values.
513
514
  # TODO: This won't be required after plugin declarations are improved.
514
515
  # See https://rm.ewdev.ca/issues/18301
515
- Sanitizer::TOOLS[:array].each do |key|
516
- if preset_config[key]
517
- result[key] = (result[key] || []) + preset_config[key]
516
+ unless @preset_applied[name]
517
+ Sanitizer::TOOLS[:array].each do |key|
518
+ if preset_config[key]
519
+ result[key] = (result[key] || []) + preset_config[key]
520
+ end
518
521
  end
522
+
523
+ @preset_applied[name] = true
519
524
  end
520
525
  end
521
526
 
@@ -20,10 +20,10 @@ sanitization:
20
20
  selector: script
21
21
  pattern: '(src="[^"]*/files/js/js_)[-\w]{40,43}\.js"'
22
22
  substitute: '\1DRUPAL_AGGREGATED_JS.js"'
23
- - title: Strip CSS/JS cache IDs
24
- selector: style, script
25
- pattern: '("[^"]*\.(js|css))\?[a-z0-9]{6}"'
26
- substitute: '\1'
23
+ # - title: Strip CSS/JS cache IDs
24
+ # selector: style, script
25
+ # pattern: '("[^"]*\.(js|css))\?[a-z0-9]{6}"'
26
+ # substitute: '\1'
27
27
  - title: Strip Drupal JS version tags
28
28
  selector: script
29
29
  pattern: '(src="[^"]*/misc/\w+\.js)?v=\d+\.\d+"'
data/package-lock.json CHANGED
@@ -854,9 +854,9 @@
854
854
  }
855
855
  },
856
856
  "word-wrap": {
857
- "version": "1.2.3",
858
- "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.3.tgz",
859
- "integrity": "sha512-Hz/mrNwitNRh/HUAtM/VT/5VH+ygD6DV7mYKZAtHOrbs8U7lvPS6xf7EJKMF0uW1KJCl0H701g3ZGus+muE5vQ==",
857
+ "version": "1.2.4",
858
+ "resolved": "https://registry.npmjs.org/word-wrap/-/word-wrap-1.2.4.tgz",
859
+ "integrity": "sha512-2V81OA4ugVo5pRo46hAoD2ivUJx8jXmWXfUkY4KFNw0hEptvN0QfH3K4nHiwzGeKl5rFKedV48QVoqYavy4YpA==",
860
860
  "dev": true
861
861
  },
862
862
  "wrappy": {
data/sitediff.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'sitediff'
5
- s.version = '1.2.6'
5
+ s.version = '1.2.8'
6
6
  s.required_ruby_version = '>= 3.1.2'
7
7
  s.summary = 'Compare two versions of a site with ease!'
8
8
  s.description = <<DESC
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sitediff
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.2.6
4
+ version: 1.2.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alex Dergachev
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2023-05-14 00:00:00.000000000 Z
13
+ date: 2023-09-07 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pkg-config
@@ -229,7 +229,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
229
229
  - !ruby/object:Gem::Version
230
230
  version: '0'
231
231
  requirements: []
232
- rubygems_version: 3.4.13
232
+ rubygems_version: 3.4.14
233
233
  signing_key:
234
234
  specification_version: 4
235
235
  summary: Compare two versions of a site with ease!