morpheus-cli 3.6.17 → 3.6.18

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
  SHA256:
3
- metadata.gz: 1ab0c8fe5a857968851e03071645663f2c0ca449577b3c2e62106ed9ef57c9fe
4
- data.tar.gz: 85e741a356d27d1729eb9e51cd9be7aebe7b3f9d11f17132f342992131b6c7d7
3
+ metadata.gz: 2e083e72d1e2b2d6bae51eb812f094c410fae2ffc923d752eb9614b052b54509
4
+ data.tar.gz: a3874e187ca876219b9221daf9ac323cddb804b2545e37519ccea82d8fd38915
5
5
  SHA512:
6
- metadata.gz: 9780024822d8ff3eda9cb7ce718f3bd0fe18975e97ba6a883e88d22d4c311b72d8e2eba0de07ec265fb4789391ba3ea004737072a8b13bebb85f2a198c9d5631
7
- data.tar.gz: 3dbdd462ee7e562561ba0d3ec94cb7fd96a2af842b610f04e3524301136ac80dd9c7d33b79cc87b0e2fdb99a3ebc33c3c0cd85986ae4da4bcbe090c1f3945e6c
6
+ metadata.gz: bc0b1d85fcd28aced159ce23ff2c28082021f6910793d9e4167cf92428ed351372256fe670813316140038bd0bcbae97aed72f011f9a7c61ad254887061115eb
7
+ data.tar.gz: bae9b53d66149440c09ad594365922504879194cd975c346989e484ac0c29af369ef442d410bc8567e17633ab5b363d603026d33deec7512e168f1d3733f8278
@@ -740,12 +740,12 @@ class Morpheus::Cli::Shell
740
740
  # sort is a bit different for this command, the default sort is by number
741
741
  # it sorts oldest -> newest, but shows the very last page by default.
742
742
  if options[:sort] && ![:number, :command].include?(options[:sort])
743
- options[:sort] = nil
743
+ sort_key = :number # nil
744
744
  end
745
-
746
745
 
747
746
  if options[:phrase] || sort_key || options[:direction] || options[:offset]
748
747
  # this could be a large object...need to index our shell_history file lol
748
+ sort_key ||= :number
749
749
  history_records = @history.keys.collect { |k| {number: k, command: @history[k]} }
750
750
  if options[:direction] == 'desc'
751
751
  history_records = history_records.sort {|x,y| y[sort_key] <=> x[sort_key] }
@@ -1,6 +1,6 @@
1
1
 
2
2
  module Morpheus
3
3
  module Cli
4
- VERSION = "3.6.17"
4
+ VERSION = "3.6.18"
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: morpheus-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.6.17
4
+ version: 3.6.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - David Estes