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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: e40196d83c1db754add3b8e4fbf4f10a26c4f66f1aff199261261bdfda66edc7
4
- data.tar.gz: 0de3f8b0fe48d3c2496970380ea5f9ec3d5e73b15258bd3be5dcf7315516edc1
3
+ metadata.gz: 14bea90e61e0acaf588c50485fc37947c376b5778d9a7e8752b948a540d94f44
4
+ data.tar.gz: cdd0b63de45746a2b5df33e72245b20037adcf89665bb98c2c5200f58de2c3c1
5
5
  SHA512:
6
- metadata.gz: 034731a236c65aa88e3bd04dae4f41cf6324c128ea2847b5753ab86300f4c31a250ba3224afd8e14f33e746fabc319c7f046e3d3f380294ee7f1154d66fba2fc
7
- data.tar.gz: a1b8f76371629f2fd7844cea59fc3e5e753f819a4f567562b0cfb7bcd7da3983149e2906b76efb19c4ebade3adf5188865b52568efb3052f0edb207269e7259f
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!
@@ -8,7 +8,7 @@ module CLI
8
8
  module VERSION
9
9
  RELEASE = 0
10
10
  MAJOR = 5
11
- MINOR = 0
11
+ MINOR = 1
12
12
  PATCH = nil
13
13
 
14
14
  STRING = [RELEASE, MAJOR, MINOR, PATCH].compact.join('.').freeze
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.0
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-05 00:00:00.000000000 Z
11
+ date: 2019-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cli-ui