letsencrypt_standalone 0.1.14 → 0.1.15
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 +4 -4
- data/lib/letsencrypt_standalone/config.rb +2 -2
- data/lib/letsencrypt_standalone/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 6e212e6dcb0dd091a39be9790eb704423c24a753
|
4
|
+
data.tar.gz: b9cd2739bba1933c19b7ce05a2a95e6f5690b3f9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d59a8d76ed28b65a137b254ab304a6d3c0d0509cbfad50f413376eb33869c49f6ad2470bf3e0506f7ef2670bd9e3b3ae7193782baa816f38eab7ad7cfd613922
|
7
|
+
data.tar.gz: 1097cddd5cbfa9b0a6ff97fcee06b48591a183ad958f8f6dec6b872b54c6b4856cb6edbe655cb87168d561cc94e6cc7ea68a173bd5bfb1828261de1134c08848
|
@@ -6,7 +6,7 @@ module LetsencryptStandalone
|
|
6
6
|
attr_accessor :config, :location, :port
|
7
7
|
def initialize(config_file: nil)
|
8
8
|
@location ||= config_file
|
9
|
-
@@config ||= JSON.parse(File.read(@location)
|
9
|
+
@@config ||= JSON.parse(File.read(@location))
|
10
10
|
end
|
11
11
|
|
12
12
|
def output_dir
|
@@ -37,7 +37,7 @@ module LetsencryptStandalone
|
|
37
37
|
|
38
38
|
def add(domains:)
|
39
39
|
domains.each do |domain|
|
40
|
-
@@config[:domains] << {host: domain}
|
40
|
+
@@config[:domains] << {host: domain} unless @@config[:domains].any? {|h| h[:host] == domain}
|
41
41
|
end
|
42
42
|
end
|
43
43
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: letsencrypt_standalone
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.15
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Grigory Aksentyev
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-09-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|