cli-mastermind 0.5.0 → 0.5.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cli/mastermind/configuration.rb +3 -0
- data/lib/cli/mastermind/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 14bea90e61e0acaf588c50485fc37947c376b5778d9a7e8752b948a540d94f44
|
4
|
+
data.tar.gz: cdd0b63de45746a2b5df33e72245b20037adcf89665bb98c2c5200f58de2c3c1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 29adefa5c6f7a489071af7c726671788b8a3d38b37c4d7af5d53cd24346bc9a2a319fb5fd526734902182d9c06dfa0fae3550d7514cc9e51b534d20b775be03d
|
7
|
+
data.tar.gz: cafc5940e66d5a756251aa09ec43cc1cb141111eb59be05d145f909db6f3c6a50b391aaf3315abce85ac757ae713ab298e51f47e002bf8c66f3341a4f65460bb
|
@@ -180,9 +180,12 @@ module CLI
|
|
180
180
|
# Add arbitrary configuration attributes to the configuration object.
|
181
181
|
# Use this to add plan specific configuration options.
|
182
182
|
def configure(attribute, value=nil, &block)
|
183
|
+
attribute, value = attribute.first if attribute.is_a? Hash
|
184
|
+
|
183
185
|
Configuration.add_attribute(attribute)
|
184
186
|
@config.public_send "#{attribute}=", value, &block
|
185
187
|
end
|
188
|
+
alias_method :set, :configure
|
186
189
|
|
187
190
|
# Define a user alias. User aliases are expanded as part of plan selection.
|
188
191
|
# @see ArgParse#do_command_expansion!
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: cli-mastermind
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.5.
|
4
|
+
version: 0.5.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Chris Hall
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2019-03-
|
11
|
+
date: 2019-03-06 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cli-ui
|