odania 0.0.39 → 0.1.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
  SHA1:
3
- metadata.gz: 297bf20f4f169f155d27e4434161aafe760ec3d1
4
- data.tar.gz: 20beebb1c3633f46d3e78163aa11ff441776ff80
3
+ metadata.gz: 5e113e02937e81c3829a4245afb2e6d32c10f5bb
4
+ data.tar.gz: 8dca79b1e12af84b30bd8e359800c1e6a6ce811a
5
5
  SHA512:
6
- metadata.gz: efa429113b655dd917d13b8a25ab9440325c7ebd5f8a98aef39582997e051fbffc60428fa9a76b72e3891f7da66047a6615828f608d8c3ddef43dc98ac52ca19
7
- data.tar.gz: 48abebce3c222a889d2b5625e880ce352c9c3a0de191af1d1745513314dc9c43496b03473e103fb332c0f70d56c73a40bd0729b88999b744f6af27bc218ff04e
6
+ metadata.gz: fffcf9f3614f72705b75763961ec364c64b4db2707952a8820d3445061b8d94aecfa2d98948faf26c9e229be3799b7a360b99172813a3c371b574456f10264e1
7
+ data.tar.gz: f4e80f30bd34f37cc23590c709b746707f47e36a320e279145c220a46e0053dc2ef56eb0b2c7e92773ac4525a76d04d1635f9e1e25a897a0ef2bc0c723d27745
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- odania (0.0.39)
4
+ odania (0.1.0)
5
5
  deep_merge
6
6
  diplomat
7
7
  erubis
@@ -70,7 +70,7 @@ GEM
70
70
  coderay (~> 1.1.0)
71
71
  method_source (~> 0.8.1)
72
72
  slop (~> 3.4)
73
- public_suffix (2.0.1)
73
+ public_suffix (2.0.2)
74
74
  rake (10.5.0)
75
75
  rb-fsevent (0.9.7)
76
76
  rb-inotify (0.9.7)
@@ -82,8 +82,14 @@ module Odania
82
82
  @valid_domains.each do |domain, subdomains|
83
83
  subdomains.each do |subdomain|
84
84
  $logger.info "Generating Subdomain Config for Domain: #{domain} Subdomain: #{subdomain}"
85
- subdomain_config = SubdomainConfig.new(config, domain, subdomain).generate
86
- Odania.plugin.set_subdomain_config "#{subdomain}.#{domain}", subdomain_config
85
+
86
+ begin
87
+ subdomain_config = SubdomainConfig.new(config, domain, subdomain).generate
88
+ Odania.plugin.set_subdomain_config "#{subdomain}.#{domain}", subdomain_config
89
+ rescue => e
90
+ $logger.error "Error generating subdomain config: #{e}"
91
+ $logger.error e.backtrace.join("\n")
92
+ end
87
93
  end
88
94
  end
89
95
  end
@@ -115,7 +115,7 @@ module Odania
115
115
  key = path.shift
116
116
 
117
117
  return nil until hash.has_key? key
118
- return hash[key] if path.empty?
118
+ return hash[key].clone if path.empty?
119
119
  retrieve_hash_path hash[key], path
120
120
  end
121
121
 
@@ -1,3 +1,3 @@
1
1
  module Odania
2
- VERSION = '0.0.39'
2
+ VERSION = '0.1.0'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: odania
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.39
4
+ version: 0.1.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Mike Petersen
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-10 00:00:00.000000000 Z
11
+ date: 2016-06-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler