sitediff 1.2.5b → 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: 1245c44bbcbee7caa07119fc5ddf15d499d12a138cfd654204c6f913b587e7c5
4
- data.tar.gz: 9301e704cb108a0cfd650fca886826bb3218929ad7d5dcabf9863282fef64858
3
+ metadata.gz: f12bf02008bba308761092ba93972855014bd4f34e420010a5902605b66b9de3
4
+ data.tar.gz: 777c61cc9a382f2fcbc6a2cec98ed7d1d31cff4ba848a145c89353a4ca5ae8fd
5
5
  SHA512:
6
- metadata.gz: da8fe682d3af5dd18fedbda3b82d7f7d62f0fa36443b0b1698c55d79a9a6f290d955203da0e0782533614a5567ffbcec651713e86a6bbbfaa0809bb6496ba40b
7
- data.tar.gz: c60296ea162901fda4cb63ca2fa2252b0c65f19cc349133625e70cffdb55c9c3c8b3326f4e612f28ae85d033f2f26138c2b42aa3bf5630d613e2a1799e2b8e81
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.5b)
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.5b'
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.5b
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
@@ -225,9 +225,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
225
225
  version: 3.1.2
226
226
  required_rubygems_version: !ruby/object:Gem::Requirement
227
227
  requirements:
228
- - - ">"
228
+ - - ">="
229
229
  - !ruby/object:Gem::Version
230
- version: 1.3.1
230
+ version: '0'
231
231
  requirements: []
232
232
  rubygems_version: 3.4.13
233
233
  signing_key: