localhost 1.1.5 → 1.1.6

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: 8a1b3eb6d424eeebb97617e67e4024201dc4b212a2dc9127c7858b1f6637c0ed
4
- data.tar.gz: da7d5bcad68fd00a7291039b5d325d3268abf8068af6948f69b6267c0a0980fc
3
+ metadata.gz: 645f6d3160f878906fedd5129d3941b5d05a1072bc40da1aa4c95200bf5d7faa
4
+ data.tar.gz: 4266815c74d38f8b099f45e07dcc2bea6af3a056055fbfe6f7208422cd06ef1d
5
5
  SHA512:
6
- metadata.gz: 6d636c0a1ed83c769a1d3b58a8a4fc2392c064ddc6357f7ae6da4f71037a1912296af6107c6fbff021f9997e5c075b6445d6e24e4ca09692ec4f1b6bb0b845d5
7
- data.tar.gz: 133e22ea3545a383d2f111dd053bfb070b274ebe247be9956bfbce07e2be07ec4fea7779ca21fe26c1f90e2e1fbcacf891ef1ba41c8637d79199e16a3289930b
6
+ metadata.gz: 6bbe70b4011f0da73a79da43bb215af49cca9c00944acc9a2a3d858097212848080d7c39981aa247264fc49aa0637aa6e0d665c91d33600c8d92c0bf50f2daa1
7
+ data.tar.gz: 524195981b8dc2cbb545095adf152aa778a16c1e8792d2fe639b64e3dc05e70f072c8b3ed5223a16d9112bd50be2a5b4ffa15b63b78f2b55f25077762394bcc9
data/README.md CHANGED
@@ -1,7 +1,10 @@
1
- # Localhost [![Build Status](https://travis-ci.com/socketry/localhost.svg)](https://travis-ci.com/socketry/localhost)
1
+ # Localhost
2
2
 
3
3
  This gem provides a convenient API for generating per-user self-signed root certificates.
4
4
 
5
+ [![Build Status](https://travis-ci.com/socketry/localhost.svg)](https://travis-ci.com/socketry/localhost)
6
+ [![Coverage Status](https://coveralls.io/repos/socketry/localhost/badge.svg)](https://coveralls.io/r/socketry/localhost)
7
+
5
8
  ## Motivation
6
9
 
7
10
  HTTP/2 requires SSL in web browsers. If you want to use HTTP/2 for development (and you should), you need to start using URLs like `https://localhost:8080`. In most cases, this requires adding a self-signed certificate to your certificate store (e.g. Keychain on macOS), and storing the private key for the web-server to use.
@@ -91,6 +94,10 @@ If you use this with a web server, when you open the site in Chrome:
91
94
  - Click "ADVANCED" to see additional details, including...
92
95
  - Click "Proceed to localhost (unsafe)" which will allow you to use the site for the current browser session.
93
96
 
97
+ #### Self-Signed Localhost
98
+
99
+ The best way to use Chrome with self-signed localhost certificates is to allow it in your chrome settings: [chrome://flags/#allow-insecure-localhost](chrome://flags/#allow-insecure-localhost).
100
+
94
101
  ### Files
95
102
 
96
103
  The certificate and private key are stored in `~/.localhost/`. You can delete them and they will be regenerated. If you added the certificate to your keychain, you'll probably want to delete that too.
@@ -126,7 +126,7 @@ module Localhost
126
126
  end
127
127
 
128
128
  if context.respond_to? :ecdh_curves=
129
- context.ecdh_curves = 'P-256:P-384:P-224:P-521'
129
+ context.ecdh_curves = 'P-256:P-384:P-521'
130
130
  elsif context.respond_to? :tmp_ecdh_callback=
131
131
  context.tmp_ecdh_callback = proc {self.ecdh_key}
132
132
  end
@@ -19,5 +19,5 @@
19
19
  # THE SOFTWARE.
20
20
 
21
21
  module Localhost
22
- VERSION = "1.1.5"
22
+ VERSION = "1.1.6"
23
23
  end
@@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
17
17
  spec.require_paths = ["lib"]
18
18
 
19
19
  spec.add_development_dependency "covered"
20
- spec.add_development_dependency "bundler", "~> 1.16"
20
+ spec.add_development_dependency "bundler"
21
21
  spec.add_development_dependency "rake", "~> 10.0"
22
22
  spec.add_development_dependency "rspec", "~> 3.0"
23
23
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: localhost
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - Samuel Williams
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-07 00:00:00.000000000 Z
11
+ date: 2019-05-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: covered
@@ -28,16 +28,16 @@ dependencies:
28
28
  name: bundler
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '1.16'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '1.16'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: rake
43
43
  requirement: !ruby/object:Gem::Requirement