zygote 0.2.3 → 0.2.4

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: aecf3759ea43e62b5f3b8469e334c93b8111d745
4
- data.tar.gz: eaf21b3dd077ff2accc8a745a642ac6999330024
3
+ metadata.gz: cb685c710d11948c01a676b3a5e2fe7df5e78e98
4
+ data.tar.gz: 54915838f5aa83edb7088efa978d2aca242a4c7f
5
5
  SHA512:
6
- metadata.gz: c6928dc884009d81163ad64637bd38e0c7b1a8d5512ef808e35ac115e82e45b081a35a6e6f0d9cda62c6f74aaf80ce2831ee957b9369e1381462e5722725c7e0
7
- data.tar.gz: 474ae0d802a7ac1fe543e7f0070f695a816d9c659c7e5044147fd8d23b223d55e9e0def7b27ebae03c9df791bbd683933392453e6dd5b6d568510aeee9c63b37
6
+ metadata.gz: 2976cb02ebe35a13e52b144c17873de7329be5e71ed1ec17ccde57dd52a9e7284250e7af07a72542ee1265ab4de3b3bf94377ec2540c8c3e67a174fe95052af9
7
+ data.tar.gz: 9f254761b01073a42268dbe7d84646fe9dffe1d17a3152569f441e56e7c509b1363d03af7e03ee2e1a919ddc34d985596176bbe6cee611b32eec6f497c3560a5
@@ -1,4 +1,4 @@
1
1
  # Namespace for our gem
2
2
  module Zygote
3
- VERSION = '0.2.3'.freeze
3
+ VERSION = '0.2.4'.freeze
4
4
  end
@@ -75,7 +75,7 @@ goto ${selected}
75
75
  # Generate chains for each submenu entry
76
76
  <% data['menu']['submenu'].each do |entry, data| %>
77
77
  <% local_params = (data['params'] || {}).merge(params) %>
78
- <% parmstr = {entry: entry}.merge(local_params).map{ |k,v| "#{k}=#{v}"}.join('&').gsub('?','').gsub(' ','') %>
78
+ <% parmstr = {entry: entry}.merge(local_params).map{ |k,v| "#{k}=#{v.is_a?(String) ? v : Base64.encode64(JSON.dump(v)).gsub(/\n|=/, '')}"}.join('&').gsub('?','').gsub(' ','') %>
79
79
  :<%= cell %>-<%= entry %>
80
80
  chain --replace --autofree http://${dhcp-server}/cell/<%= cell %>/<%= data['action'] || 'boot' %><%= parmstr.empty? ? "" : "?#{parmstr}" %>
81
81
  <% end %>
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: zygote
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Dale Hamel