localhost 1.6.0 → 1.8.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: f89b94a723b8a61b6643315b8e80d1c41e8bbba1e40b4ef717712a27f6b9c99e
4
- data.tar.gz: 17a0be5aa542d32276375451ed5f3a29a83f838a9a9905a3e451477c8aa45d8c
3
+ metadata.gz: d6314c7272415ad8a404a463fa40c6b22056dc60d0ba94fe0db46b8f5f821da7
4
+ data.tar.gz: 0c9a6e3679b6671293368658b0fe69aae572dee42a479e4f5b15641b4c4283bc
5
5
  SHA512:
6
- metadata.gz: fe38188f3a314ad69e4c7bcc03092cf9e2e1efa98570879aef8d52a94d851f310d8884b767aff64a6642b40d4ca04e0dec54ee2e1c75d1158ec6d514cc09e103
7
- data.tar.gz: ce8a85d130b0c828170105f177b189fb5417abd1b9b7c00079eb7951fd6c1a82767d74609ccd3fa2fa3b7b5b665eca98feab3aaffb922cc083f560777786357d
6
+ metadata.gz: 65cb5d8302259bfa36547e6f5adb6d92154fd238e08df994209db30df1bf26c93d2b2de26ebb2c9303df69abb6f1f110343e253ebf06028692538b7618efc386
7
+ data.tar.gz: dcf52ae1c900254ea9df2cf155ed2035248e0372eea43a6d1d0607058d80591a10605b5f19408b030ff5c5cf4a4736c7847562a4c3198b2cc5bf57eef3c24b8d
checksums.yaml.gz.sig CHANGED
Binary file
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2025, by Samuel Williams.
4
+ # Copyright, 2018-2026, by Samuel Williams.
5
5
  # Copyright, 2019, by Richard S. Leung.
6
6
  # Copyright, 2021, by Akshay Birajdar.
7
7
  # Copyright, 2021, by Ye Lin Aung.
@@ -173,7 +173,7 @@ module Localhost
173
173
  context.session_id_context = "localhost"
174
174
 
175
175
  if context.respond_to? :tmp_dh_callback=
176
- context.tmp_dh_callback = proc {self.dh_key}
176
+ context.tmp_dh_callback = proc{self.dh_key}
177
177
  end
178
178
 
179
179
  if context.respond_to? :ecdh_curves=
@@ -1,7 +1,7 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2025, by Samuel Williams.
4
+ # Copyright, 2025-2026, by Samuel Williams.
5
5
 
6
6
  module Localhost
7
7
  module System
@@ -11,6 +11,9 @@ module Localhost
11
11
  ANCHORS_PATH = "/etc/ca-certificates/trust-source/anchors/"
12
12
  UPDATE_CA_TRUST = "update-ca-trust"
13
13
 
14
+ # OpenSUSE/SLES use this path for certificate anchors.
15
+ OPENSUSE_ANCHORS_PATH = "/etc/pki/trust/anchors/"
16
+
14
17
  # This is an older method for systems that do not use `update-ca-trust`.
15
18
  LOCAL_CERTIFICATES_PATH = "/usr/local/share/ca-certificates/"
16
19
  UPDATE_CA_CERTIFICATES = "update-ca-certificates"
@@ -23,9 +26,13 @@ module Localhost
23
26
  command = nil
24
27
 
25
28
  if File.exist?(ANCHORS_PATH)
26
- # For systems using `update-ca-trust`.
29
+ # For systems using `update-ca-trust` (most Linux distributions).
27
30
  destination = File.join(ANCHORS_PATH, filename)
28
31
  command = UPDATE_CA_TRUST
32
+ elsif File.exist?(OPENSUSE_ANCHORS_PATH)
33
+ # For systems using `update-ca-certificates` (OpenSUSE/SLES).
34
+ destination = File.join(OPENSUSE_ANCHORS_PATH, filename)
35
+ command = UPDATE_CA_CERTIFICATES
29
36
  elsif File.exist?(LOCAL_CERTIFICATES_PATH)
30
37
  # For systems using `update-ca-certificates`.
31
38
  destination = File.join(LOCAL_CERTIFICATES_PATH, filename)
@@ -1,8 +1,8 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  # Released under the MIT License.
4
- # Copyright, 2018-2025, by Samuel Williams.
4
+ # Copyright, 2018-2026, by Samuel Williams.
5
5
 
6
6
  module Localhost
7
- VERSION = "1.6.0"
7
+ VERSION = "1.8.0"
8
8
  end
data/license.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # MIT License
2
2
 
3
- Copyright, 2018-2025, by Samuel Williams.
3
+ Copyright, 2018-2026, by Samuel Williams.
4
4
  Copyright, 2018, by Gabriel Sobrinho.
5
5
  Copyright, 2019, by Richard S. Leung.
6
6
  Copyright, 2020-2021, by Olle Jonsson.
data/readme.md CHANGED
@@ -22,6 +22,10 @@ Please see the [project documentation](https://socketry.github.io/localhost/) fo
22
22
 
23
23
  Please see the [project releases](https://socketry.github.io/localhost/releases/index) for all releases.
24
24
 
25
+ ### v1.8.0
26
+
27
+ - Add `bake` as direct dependency.
28
+
25
29
  ### v1.6.0
26
30
 
27
31
  - Add support for `update-ca-trust` on Linux sytems.
@@ -47,6 +51,22 @@ We welcome contributions to this project.
47
51
  4. Push to the branch (`git push origin my-new-feature`).
48
52
  5. Create new Pull Request.
49
53
 
54
+ ### Running Tests
55
+
56
+ To run the test suite:
57
+
58
+ ``` shell
59
+ bundle exec sus
60
+ ```
61
+
62
+ ### Making Releases
63
+
64
+ To make a new release:
65
+
66
+ ``` shell
67
+ bundle exec bake gem:release:patch # or minor or major
68
+ ```
69
+
50
70
  ### Developer Certificate of Origin
51
71
 
52
72
  In order to protect users of this project, we require all contributors to comply with the [Developer Certificate of Origin](https://developercertificate.org/). This ensures that all contributions are properly licensed and attributed.
data/releases.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # Releases
2
2
 
3
+ ## v1.8.0
4
+
5
+ - Add `bake` as direct dependency.
6
+
3
7
  ## v1.6.0
4
8
 
5
9
  - Add support for `update-ca-trust` on Linux sytems.
data.tar.gz.sig CHANGED
Binary file
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localhost
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.6.0
4
+ version: 1.8.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
@@ -47,7 +47,21 @@ cert_chain:
47
47
  voD0MPg1DssDLKwXyt1eKD/+Fq0bFWhwVM/1XiAXL7lyYUyOq24KHgQ2Csg=
48
48
  -----END CERTIFICATE-----
49
49
  date: 1980-01-02 00:00:00.000000000 Z
50
- dependencies: []
50
+ dependencies:
51
+ - !ruby/object:Gem::Dependency
52
+ name: bake
53
+ requirement: !ruby/object:Gem::Requirement
54
+ requirements:
55
+ - - ">="
56
+ - !ruby/object:Gem::Version
57
+ version: '0'
58
+ type: :runtime
59
+ prerelease: false
60
+ version_requirements: !ruby/object:Gem::Requirement
61
+ requirements:
62
+ - - ">="
63
+ - !ruby/object:Gem::Version
64
+ version: '0'
51
65
  executables: []
52
66
  extensions: []
53
67
  extra_rdoc_files: []
@@ -77,14 +91,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
77
91
  requirements:
78
92
  - - ">="
79
93
  - !ruby/object:Gem::Version
80
- version: '3.2'
94
+ version: '3.3'
81
95
  required_rubygems_version: !ruby/object:Gem::Requirement
82
96
  requirements:
83
97
  - - ">="
84
98
  - !ruby/object:Gem::Version
85
99
  version: '0'
86
100
  requirements: []
87
- rubygems_version: 3.6.7
101
+ rubygems_version: 4.0.6
88
102
  specification_version: 4
89
103
  summary: Manage a local certificate authority for self-signed localhost development
90
104
  servers.
metadata.gz.sig CHANGED
Binary file