publify_core 9.2.3 → 9.2.4

Sign up to get free protection for your applications and to get access to all the features.

Potentially problematic release.


This version of publify_core might be problematic. Click here for more details.

checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cf4c08d56e646e230ca89f1193914bfdd723d3b9f80c1ee1cd61df1550883ef6
4
- data.tar.gz: bd888524f5dd0c424fefb3fe3bc0f036b94d19fd9a366c4047689aa3485438a1
3
+ metadata.gz: 1a656e67eabdbc775b90db037ea087c2bc27b179f7d2078ce24eee88d24db874
4
+ data.tar.gz: b241a29fbb8b5a942acac80e5a774271f31298d0d5add64b77134988902daf3b
5
5
  SHA512:
6
- metadata.gz: cef2656b72139f524df2414e8c51e092e9945b63b34b082a0bae0be0f020b1e87a7540be03c4b08ad71cc27d79e171ba82f119eacdbb5003d2d074a40eaeaa4b
7
- data.tar.gz: dbb72c92717764f391bf7f4ef80cfdcc7c5616af759c528feebcb78f6e007a7a2c1e54376b1aca5dac74d571b5edd7626521bc700498309ada95c12701a8cc2c
6
+ metadata.gz: f201fcc55b9caa48cee99651b6820aeecbf8d5fc655ce475da6d4b42d9e1741222d2611428bf98f5952e8a0df21d47ecba1733dd864eea9851fda3f996d7ec85
7
+ data.tar.gz: 749dea0ae5d68830f3de9a49ae216465be1d9542656fb9980896e029e74089aa9335559214ce05eb8f8646e17bc609fe2f626e0b599ae081278649b16bc915b3
data/CHANGELOG.md CHANGED
@@ -1,5 +1,10 @@
1
1
  # Changelog
2
2
 
3
+ ## 9.2.4 / 2021-10-02
4
+
5
+ * Explicitly require at least version 1.12.5 of nokogiri to avoid a security issue
6
+ * Drop support for Ruby 2.4 since it is incompatible with nokogiri 1.12.5
7
+
3
8
  ## 9.2.3 / 2021-05-22
4
9
 
5
10
  * Bump Rails dependency to 5.2.6
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module PublifyCore
4
- VERSION = "9.2.3"
4
+ VERSION = "9.2.4"
5
5
  end
@@ -82,16 +82,14 @@ class SpamProtection
82
82
  def query_rbls(rbls, *subdomains)
83
83
  rbls.each do |rbl|
84
84
  subdomains.uniq.each do |d|
85
- begin
86
- response = IPSocket.getaddress([d, rbl].join("."))
87
- if response.start_with?("127.0.0.")
88
- throw :hit,
89
- "#{rbl} positively resolved subdomain #{d} => #{response}"
90
- end
91
- rescue SocketError
92
- # NXDOMAIN response => negative: d is not in RBL
93
- next
85
+ response = IPSocket.getaddress([d, rbl].join("."))
86
+ if response.start_with?("127.0.0.")
87
+ throw :hit,
88
+ "#{rbl} positively resolved subdomain #{d} => #{response}"
94
89
  end
90
+ rescue SocketError
91
+ # NXDOMAIN response => negative: d is not in RBL
92
+ next
95
93
  end
96
94
  end
97
95
  false
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: publify_core
3
3
  version: !ruby/object:Gem::Version
4
- version: 9.2.3
4
+ version: 9.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Matijs van Zuijlen
@@ -11,7 +11,7 @@ authors:
11
11
  autorequire:
12
12
  bindir: bin
13
13
  cert_chain: []
14
- date: 2021-05-22 00:00:00.000000000 Z
14
+ date: 2021-10-02 00:00:00.000000000 Z
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency
17
17
  name: aasm
@@ -221,6 +221,20 @@ dependencies:
221
221
  - - ">="
222
222
  - !ruby/object:Gem::Version
223
223
  version: 4.9.4
224
+ - !ruby/object:Gem::Dependency
225
+ name: nokogiri
226
+ requirement: !ruby/object:Gem::Requirement
227
+ requirements:
228
+ - - ">="
229
+ - !ruby/object:Gem::Version
230
+ version: 1.12.5
231
+ type: :runtime
232
+ prerelease: false
233
+ version_requirements: !ruby/object:Gem::Requirement
234
+ requirements:
235
+ - - ">="
236
+ - !ruby/object:Gem::Version
237
+ version: 1.12.5
224
238
  - !ruby/object:Gem::Dependency
225
239
  name: rack
226
240
  requirement: !ruby/object:Gem::Requirement
@@ -992,7 +1006,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
992
1006
  requirements:
993
1007
  - - ">="
994
1008
  - !ruby/object:Gem::Version
995
- version: 2.4.0
1009
+ version: 2.5.0
996
1010
  required_rubygems_version: !ruby/object:Gem::Requirement
997
1011
  requirements:
998
1012
  - - ">="