rails_dev_ssl 0.1.0 → 0.1.3

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: 5eb40c157ca04088a45415622603010c48f8b41f0b2a4d9211f1b70c43b4a466
4
- data.tar.gz: 4551e5a7ebe4f1fe7131d66ef45eacb7cb8a0c85f352ceaf0b3e5d3555d1b748
3
+ metadata.gz: 930ee198ec702c95be461cdb105f6c857f976bdf0468b28dac56aaafc905bf26
4
+ data.tar.gz: 5c0809a2826159b8c8a41c12ceeb5283d268169a484d0f9af3dd64bdc6aab1d5
5
5
  SHA512:
6
- metadata.gz: 061e7139a0fd905fbbc2b99ab65960daec2f7878cc42ae39e128ef205eae1ad80b25c9ff3059ca0d868196dc7bee3c9376804d3f5f729854df56832d67cc381a
7
- data.tar.gz: 14228965a9b498f884816934dab64bc53c2e6a4b78c0c864b7b76499dd9f6ebddb26f1e3546425c10d264d6f529a115dacac6adacb3e50664d49928ec7ba2ed3
6
+ metadata.gz: 815b9ebc792a6435f4be2ac2b6a386d5725efa9a75740b43a4ca627c3a9bd2f31ccb84b252f7cc061b2edc0d5c9949a16898a03e3c002e84119002e8b1e88e49
7
+ data.tar.gz: f2dcffe6c6b12332d0becae6248f9b8fa82c736f391aed76295755a670862e39e2c3eca52fdbfab9c2fd7eb4d20d363961c1f2b35dbd71608b06841dce8611a1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,11 @@
1
+ # 0.1.2
2
+
3
+ - Fixed the display_certificates command and added a test
4
+
5
+ # 0.1.1
6
+
7
+ - Make generate_certificates a 1-step process
8
+
1
9
  # 0.1.0
2
10
 
3
11
  - Initial working version
data/Gemfile.lock CHANGED
@@ -1,8 +1,8 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- rails_dev_ssl (0.1.0)
5
- thor (~> 0.20.3)
4
+ rails_dev_ssl (0.1.3)
5
+ thor (~> 1.0)
6
6
 
7
7
  GEM
8
8
  remote: https://rubygems.org/
@@ -13,7 +13,7 @@ GEM
13
13
  pry (0.12.2)
14
14
  coderay (~> 1.1.0)
15
15
  method_source (~> 0.9.0)
16
- rake (10.5.0)
16
+ rake (13.0.6)
17
17
  rspec (3.8.0)
18
18
  rspec-core (~> 3.8.0)
19
19
  rspec-expectations (~> 3.8.0)
@@ -27,17 +27,17 @@ GEM
27
27
  diff-lcs (>= 1.2.0, < 2.0)
28
28
  rspec-support (~> 3.8.0)
29
29
  rspec-support (3.8.0)
30
- thor (0.20.3)
30
+ thor (1.2.1)
31
31
 
32
32
  PLATFORMS
33
33
  ruby
34
34
 
35
35
  DEPENDENCIES
36
- bundler (~> 1.17)
36
+ bundler (~> 2.0)
37
37
  pry (~> 0.12.2)
38
38
  rails_dev_ssl!
39
- rake (~> 10.0)
39
+ rake (~> 13.0)
40
40
  rspec (~> 3.0)
41
41
 
42
42
  BUNDLED WITH
43
- 1.17.1
43
+ 2.3.9
data/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # RailsDevSsl
2
2
 
3
- `rails-dev-ssl` is a command line utility that takes some of the work out of generating the SSL certificates for local development.
3
+ `rails_dev_ssl` is a command line utility that takes some of the work out of generating the SSL certificates for local development.
4
4
 
5
5
  This utility will help you set up your development machine to serve your Rails API over HTTPS.
6
6
 
@@ -49,6 +49,8 @@ You can change the certificate directory using `setup <directory>`, for example,
49
49
 
50
50
  You can generate the `server.crt.cnf` file using the `generate_config` command.
51
51
 
52
+ You may want to add this directory to your project's `.gitignore` file.
53
+
52
54
  #### Browser warnings
53
55
 
54
56
  When you use your first self-signed certificate, your browser will warn you about an untrusted certificate authority. You'll need to trust the rootCA you created for your project.
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module RailsDevSsl
4
- VERSION = '0.1.0'
4
+ VERSION = '0.1.3'
5
5
  end
data/lib/rails_dev_ssl.rb CHANGED
@@ -24,7 +24,7 @@ module RailsDevSsl
24
24
  def display_certificate
25
25
  raise 'Certificate missing. Have you generated the certificate already?' unless File.exist?(File.join(dir, 'server.crt'))
26
26
 
27
- `openssl x509 -text -in #{File.join(dir, 'server.crt')} -noout`
27
+ puts `openssl x509 -text -in #{File.join(dir, 'server.crt')} -noout`
28
28
  end
29
29
 
30
30
  desc 'generate_certificates', 'generate SSL certificates'
@@ -32,6 +32,7 @@ module RailsDevSsl
32
32
  def generate_certificates
33
33
  raise "Directory (#{dir}) doesn't exist" unless Dir.exist?(dir)
34
34
 
35
+ generate_config unless File.exist?(File.join(dir, 'server.csr.cnf'))
35
36
  begin
36
37
  temp_file = password_file
37
38
  safe_path = Shellwords.escape(temp_file.path)
@@ -35,10 +35,10 @@ Gem::Specification.new do |spec|
35
35
  spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
36
36
  spec.require_paths = ['lib']
37
37
 
38
- spec.add_dependency 'thor', '~> 0.20.3'
38
+ spec.add_dependency 'thor', '~> 1.0'
39
39
 
40
- spec.add_development_dependency 'bundler', '~> 1.17'
40
+ spec.add_development_dependency 'bundler', '~> 2.0'
41
41
  spec.add_development_dependency 'pry', '~> 0.12.2'
42
- spec.add_development_dependency 'rake', '~> 10.0'
42
+ spec.add_development_dependency 'rake', '~> 13.0'
43
43
  spec.add_development_dependency 'rspec', '~> 3.0'
44
44
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails_dev_ssl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Bart Agapinan
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2018-12-13 00:00:00.000000000 Z
11
+ date: 2022-03-12 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: thor
@@ -16,28 +16,28 @@ dependencies:
16
16
  requirements:
17
17
  - - "~>"
18
18
  - !ruby/object:Gem::Version
19
- version: 0.20.3
19
+ version: '1.0'
20
20
  type: :runtime
21
21
  prerelease: false
22
22
  version_requirements: !ruby/object:Gem::Requirement
23
23
  requirements:
24
24
  - - "~>"
25
25
  - !ruby/object:Gem::Version
26
- version: 0.20.3
26
+ version: '1.0'
27
27
  - !ruby/object:Gem::Dependency
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.17'
33
+ version: '2.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.17'
40
+ version: '2.0'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: pry
43
43
  requirement: !ruby/object:Gem::Requirement
@@ -58,14 +58,14 @@ dependencies:
58
58
  requirements:
59
59
  - - "~>"
60
60
  - !ruby/object:Gem::Version
61
- version: '10.0'
61
+ version: '13.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
66
  - - "~>"
67
67
  - !ruby/object:Gem::Version
68
- version: '10.0'
68
+ version: '13.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
@@ -125,8 +125,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
125
125
  - !ruby/object:Gem::Version
126
126
  version: '0'
127
127
  requirements: []
128
- rubyforge_project:
129
- rubygems_version: 2.7.6
128
+ rubygems_version: 3.1.6
130
129
  signing_key:
131
130
  specification_version: 4
132
131
  summary: Use SSL for rails development