thin 1.8.1 → 1.8.2

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: f0681c9fc49913fca3b6478faa3ce96a449e3926e09d5986fca0b1ace57d6fc7
4
- data.tar.gz: 44f1f7fd3b3e176939178745df3116286b2b32cd5c01d0d6fe19bf4637e5aac7
3
+ metadata.gz: 32913c8b29b57b8f15fcd7cffb49db757989a225794e089ced01e53354c3cd90
4
+ data.tar.gz: f232efe452f20785ea8e71422a53147205ffd65ddbba90b8ba12e5b340c3b466
5
5
  SHA512:
6
- metadata.gz: 6e476bb431b484071fff7240da1d17265ad07571951697ca9d023e457268911b2d3c37451236aabf6ff57b59eb9d30c51479bd3ef3f39aadbf6ce830f5c212a8
7
- data.tar.gz: '094627fc3d7da6e51c64059987625c9d5c1bbeec5b4766343b41aa00a1ebb769ea89ed7cf14ba9c6805450ffc82b92d7abd1ae7b4138c37ff7054d26fe337e69'
6
+ metadata.gz: 2cf9f7764e73b4086d1a11156bcd1aa67e6e3cabc32076e404971f866e3d4f28b536375773d03bf54e8237d3755cb70399c421044cb7cb577801f2f1deefe4d8
7
+ data.tar.gz: ed2643e1bc850bea3bd868150cd5c6b198b440b585a99def2099c35122d7a663c928c508f7441c4d708df6c878296b0e5cafcf9ebcfe70ef6ac6a1ca645111fe
data/CHANGELOG CHANGED
@@ -1,3 +1,6 @@
1
+ == 1.8.2 Ruby Razor
2
+ * Ruby 3.2 support.
3
+
1
4
  == 1.8.1 Infinite Smoothie
2
5
  * Fix possible HTTP Response Splitting
3
6
 
@@ -50,7 +50,17 @@ module Thin
50
50
 
51
51
  # For some reason Swiftiply request the current host
52
52
  def host_ip
53
- Socket.gethostbyname(@backend.host)[3].unpack('CCCC') rescue [0, 0, 0, 0]
53
+ begin
54
+ if defined?(Addrinfo)
55
+ # ruby 2.0+
56
+ # TODO: ipv6 support here?
57
+ Addrinfo.getaddrinfo(@backend.host, @backend.port, :PF_INET, :STREAM).first.ip_address.split('.').map(&:to_i)
58
+ else
59
+ Socket.gethostbyname(@backend.host)[3].unpack('CCCC')
60
+ end
61
+ rescue
62
+ [0, 0, 0, 0]
63
+ end
54
64
  end
55
65
  end
56
66
  end
@@ -78,7 +78,7 @@ module Thin
78
78
 
79
79
  if uid != target_uid || gid != target_gid
80
80
  # Change PID file ownership
81
- File.chown(target_uid, target_gid, @pid_file) if File.exists?(@pid_file)
81
+ File.chown(target_uid, target_gid, @pid_file) if File.exist?(@pid_file)
82
82
 
83
83
  # Change process ownership
84
84
  Process.initgroups(user, target_gid)
@@ -174,7 +174,7 @@ module Thin
174
174
 
175
175
  protected
176
176
  def remove_pid_file
177
- File.delete(@pid_file) if @pid_file && File.exists?(@pid_file)
177
+ File.delete(@pid_file) if @pid_file && File.exist?(@pid_file)
178
178
  end
179
179
 
180
180
  def write_pid_file
data/lib/thin/version.rb CHANGED
@@ -6,11 +6,11 @@ module Thin
6
6
  module VERSION #:nodoc:
7
7
  MAJOR = 1
8
8
  MINOR = 8
9
- TINY = 1
9
+ TINY = 2
10
10
 
11
11
  STRING = [MAJOR, MINOR, TINY].join('.')
12
12
 
13
- CODENAME = "Infinite Smoothie".freeze
13
+ CODENAME = "Ruby Razor".freeze
14
14
 
15
15
  RACK = [1, 0].freeze # Rack protocol version
16
16
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: thin
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.8.1
4
+ version: 1.8.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Marc-Andre Cournoyer
8
- autorequire:
8
+ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2021-05-20 00:00:00.000000000 Z
11
+ date: 2023-03-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rack
@@ -70,7 +70,7 @@ dependencies:
70
70
  - - ">="
71
71
  - !ruby/object:Gem::Version
72
72
  version: 1.0.9
73
- description:
73
+ description:
74
74
  email: macournoyer@gmail.com
75
75
  executables:
76
76
  - thin
@@ -134,7 +134,7 @@ licenses:
134
134
  metadata:
135
135
  source_code_uri: https://github.com/macournoyer/thin
136
136
  changelog_uri: https://github.com/macournoyer/thin/blob/master/CHANGELOG
137
- post_install_message:
137
+ post_install_message:
138
138
  rdoc_options: []
139
139
  require_paths:
140
140
  - lib
@@ -149,8 +149,8 @@ required_rubygems_version: !ruby/object:Gem::Requirement
149
149
  - !ruby/object:Gem::Version
150
150
  version: '0'
151
151
  requirements: []
152
- rubygems_version: 3.0.3
153
- signing_key:
152
+ rubygems_version: 3.4.7
153
+ signing_key:
154
154
  specification_version: 4
155
155
  summary: A thin and fast web server
156
156
  test_files: []