menu_commander 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 +4 -4
- data/lib/menu_commander/menu.rb +2 -3
- data/lib/menu_commander/version.rb +1 -1
- metadata +5 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 02f69095faf2bbcf9f7e7962bf78e62e54c1391d41c28b62f518bf8186e0aa5f
|
4
|
+
data.tar.gz: 51d9e3eec8b06026e986390c17c3a2303e6df7f7dbb3b4c70d7b4f319c83354e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 348d9719250a64246292b4bd820d963ae867a1aa2df8c28037b059db746e310d978b323d33bdc2310c231bc26f52c9be02f9121411d6cfd8adc36543ecb217f3
|
7
|
+
data.tar.gz: 90eb7688a136911d24352894added1c69d66a0034f12ead997ac1d33e136bfa9417c9a7de75fff8125d90f9f5172de437cdc0f3b2df22ccd990dd1e08e5380b5
|
data/lib/menu_commander/menu.rb
CHANGED
@@ -1,13 +1,12 @@
|
|
1
|
-
require 'yaml'
|
2
|
-
require 'yaml_extend'
|
3
1
|
require 'tty/prompt'
|
2
|
+
require 'extended_yaml'
|
4
3
|
|
5
4
|
module MenuCommander
|
6
5
|
class Menu
|
7
6
|
attr_reader :config
|
8
7
|
|
9
8
|
def initialize(config)
|
10
|
-
config =
|
9
|
+
config = ExtendedYAML.load config if config.is_a? String
|
11
10
|
@config = config
|
12
11
|
end
|
13
12
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: menu_commander
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.4
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Danny Ben Shitrit
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2020-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: mister_bin
|
@@ -53,19 +53,19 @@ dependencies:
|
|
53
53
|
- !ruby/object:Gem::Version
|
54
54
|
version: '0.19'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
|
-
name:
|
56
|
+
name: extended_yaml
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
58
58
|
requirements:
|
59
59
|
- - "~>"
|
60
60
|
- !ruby/object:Gem::Version
|
61
|
-
version: '0.
|
61
|
+
version: '0.1'
|
62
62
|
type: :runtime
|
63
63
|
prerelease: false
|
64
64
|
version_requirements: !ruby/object:Gem::Requirement
|
65
65
|
requirements:
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
|
-
version: '0.
|
68
|
+
version: '0.1'
|
69
69
|
description: Easily create menus for any command line tool using simple YAML configuration
|
70
70
|
email: db@dannyben.com
|
71
71
|
executables:
|