sitediff 1.2.6 → 1.2.7

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: f12bf02008bba308761092ba93972855014bd4f34e420010a5902605b66b9de3
4
+ data.tar.gz: 777c61cc9a382f2fcbc6a2cec98ed7d1d31cff4ba848a145c89353a4ca5ae8fd
5
5
  SHA512:
6
- metadata.gz: b13c3aa28be320461b256da3f47c80d3f2cc78a00360e6d4da0a997534c72a8b19dc3a5ee0a79ecf77bbd96c0f12e59e75190386013790569d91af72f28ffca5
7
- data.tar.gz: fea5b0c03cd7597cea7d3e81951af82c5f47722ef32344e9ead6446db9c4363699ba896d445cd79552c13c51d38876778a2c91956f307a239e04595b768a1093
6
+ metadata.gz: d56704caf1c203a55a749992c2d2d63ee6004f072d088cef63f58ecf4bbd157edd51a4601b43e93f980e0308c6c3e288d41d03ea4fa2ab292df0bdff10ab95a1
7
+ data.tar.gz: 2f678741730cd1f369004fad98d675b7636470cf0e58c328494f13fb5d97d4d4a1d3d788f62654b9fcca78e25880c8850df0246f641444d897ed757974025ac4
data/CHANGELOG.md CHANGED
@@ -1,6 +1,9 @@
1
1
  # SiteDiff Change Log
2
2
 
3
3
  Contains noteworthy changes made to SiteDiff.
4
+ ## Version 1.2.7
5
+ - Diff performance improvement. Preset rules were being repeatedly re-added to the list of rules.
6
+
4
7
  ## Version 1.2.5
5
8
  - Fix issue with whitespace in URLs.
6
9
  - 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,7 @@ 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-x86_64-linux)
30
30
  racc (~> 1.4)
31
31
  parallel (1.22.1)
32
32
  parser (3.1.2.0)
@@ -70,7 +70,6 @@ GEM
70
70
  webrick (1.8.1)
71
71
 
72
72
  PLATFORMS
73
- ruby
74
73
  x86_64-linux
75
74
 
76
75
  DEPENDENCIES
@@ -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
 
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.7'
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.7
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-05-31 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: pkg-config