odania 0.0.9 → 0.0.11
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/Gemfile.lock +1 -1
- data/lib/odania/plugin.rb +7 -10
- data/lib/odania/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: 0f77f7b9380b996462f418c88b3f4328e01b2be3
|
|
4
|
+
data.tar.gz: 24b76ced30b4c8465c8ad5cfe3021b257f79b868
|
|
5
5
|
SHA512:
|
|
6
|
-
metadata.gz:
|
|
7
|
-
data.tar.gz:
|
|
6
|
+
metadata.gz: 2329149bacab7fb06b72a7a7419e05d3fbd92084b66ef0aeef34fa8323345a265441d143735cea79c7d3faaef22cb490a92c44eac39055471a5dae17f663b8f1
|
|
7
|
+
data.tar.gz: 274c9968451186e9cff46e99cba85b7169aea8519636ae45bd7163e735f95f2716c77130dc1cb3e7be70929947d2bc0ede3c7ddf2f6a72c06ceebeb94a984d23
|
data/Gemfile.lock
CHANGED
data/lib/odania/plugin.rb
CHANGED
|
@@ -2,19 +2,16 @@ module Odania
|
|
|
2
2
|
class Plugin < Odania::Consul
|
|
3
3
|
def plugins_config
|
|
4
4
|
configs = retrieve_value 'plugins'
|
|
5
|
-
puts
|
|
6
|
-
puts 'Configs'
|
|
7
|
-
puts configs.inspect
|
|
8
|
-
puts
|
|
9
|
-
puts
|
|
10
5
|
|
|
11
|
-
result =
|
|
6
|
+
result = []
|
|
12
7
|
configs.each do |json_data|
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
8
|
+
begin
|
|
9
|
+
result << JSON.parse(json_data[:value])
|
|
10
|
+
rescue => e
|
|
11
|
+
puts "Can not parse config: #{e} \n\n #{json_data.inspect}"
|
|
12
|
+
end
|
|
17
13
|
end
|
|
14
|
+
|
|
18
15
|
result
|
|
19
16
|
end
|
|
20
17
|
|
data/lib/odania/version.rb
CHANGED
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.
|
|
4
|
+
version: 0.0.11
|
|
5
5
|
platform: ruby
|
|
6
6
|
authors:
|
|
7
7
|
- Mike Petersen
|
|
8
8
|
autorequire:
|
|
9
9
|
bindir: bin
|
|
10
10
|
cert_chain: []
|
|
11
|
-
date: 2015-10-
|
|
11
|
+
date: 2015-10-24 00:00:00.000000000 Z
|
|
12
12
|
dependencies:
|
|
13
13
|
- !ruby/object:Gem::Dependency
|
|
14
14
|
name: bundler
|