kaui 1.2.0 → 1.3.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:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 94aaf4133d5cfa9e2663a9062bc32f19ce52ce04
|
4
|
+
data.tar.gz: 13e3b70e78c58ae04b5ab35a802f6ea91305ddc3
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 6c5067d3e078ac77718213af8085ef89d8707ac8dbf062b71f481816de5efb059dad264d109f3e3b4dec7bdc5b00eaeab2ca8e9e5848d0fa64c8b57ca4196405
|
7
|
+
data.tar.gz: fbc13854e23b80c7f9553f197911ac16fc642c20072574ff3c02de05fdcb927645adee97a4dca9c74dfd31e9c86ed2d889438c244b06f01d18db3fe10f132d57
|
@@ -479,7 +479,8 @@ class Kaui::AdminTenantsController < Kaui::EngineController
|
|
479
479
|
end
|
480
480
|
|
481
481
|
def split_camel_dash_underscore_space(data)
|
482
|
-
|
482
|
+
# to_s to handle nil
|
483
|
+
data.to_s.split(/(?=[A-Z])|(?=[_])|(?=[-])|(?=[ ])/).select {|member| !member.gsub(/[_-]/,'').strip.empty?}.map { |member| member.gsub(/[_-]/,'').strip.downcase }
|
483
484
|
end
|
484
485
|
|
485
486
|
def fuzzy_match(entered_plugin_name, plugin_repository)
|
@@ -58,7 +58,8 @@ module Kaui
|
|
58
58
|
}
|
59
59
|
end
|
60
60
|
|
61
|
-
|
61
|
+
# to_s to handle nil
|
62
|
+
installed_plugins.sort! { |a,b| a[:plugin_key].to_s <=> b[:plugin_key].to_s }
|
62
63
|
end
|
63
64
|
|
64
65
|
def find_plugin_type(plugins, plugin_key_to_search)
|
data/lib/kaui/version.rb
CHANGED
@@ -359,7 +359,7 @@ class Kaui::AdminTenantsControllerTest < Kaui::FunctionalTestHelper
|
|
359
359
|
nodes_info = KillBillClient::Model::NodesInfo.nodes_info(build_options(@tenant, USERNAME, PASSWORD)) || []
|
360
360
|
plugins_info = nodes_info.first.plugins_info || []
|
361
361
|
plugins_info.each do |plugin|
|
362
|
-
next if plugin.version.nil?
|
362
|
+
next if plugin.plugin_key.nil? || plugin.version.nil?
|
363
363
|
next if installed_plugins.any? { |p| p[:plugin_name].eql?(plugin.plugin_name) }
|
364
364
|
installed_plugins << {
|
365
365
|
plugin_key: Kaui::AdminTenant.rewrite_plugin_key(plugin.plugin_key),
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kaui
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.
|
4
|
+
version: 1.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Killbill core team
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2018-
|
11
|
+
date: 2018-07-09 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: rails
|