letsencrypt_standalone 0.1.14 → 0.1.15

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
  SHA1:
3
- metadata.gz: 673be878b528de534e31e8b5edf522871ae2ca40
4
- data.tar.gz: 4273e41ba69f59949ecafe8163727649b272c78b
3
+ metadata.gz: 6e212e6dcb0dd091a39be9790eb704423c24a753
4
+ data.tar.gz: b9cd2739bba1933c19b7ce05a2a95e6f5690b3f9
5
5
  SHA512:
6
- metadata.gz: 59618a01abe73ed9915b82aa7bee8a0dad9696488a77a8bea943aeb421676e07e02bebd4e4bdf3bd0b7d513850c872eba544b55fe5b3ac88b8eb814eb36cccbd
7
- data.tar.gz: 47cdd43055faa8d6652591e47207f7667c9f28cf72823c6150db2b0c0c4b86e624dbd31c75c4027eb624c15c394d35c707f22e379ecdcb9e38766e3af4dd09f3
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), :symbolize_names => true)
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
 
@@ -1,3 +1,3 @@
1
1
  module LetsencryptStandalone
2
- VERSION = "0.1.14"
2
+ VERSION = "0.1.15"
3
3
  end
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.14
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-05-30 00:00:00.000000000 Z
11
+ date: 2016-09-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler