chieftain 0.1.4 → 0.1.5

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: e563101a2b20c22542bb36a78d6f8fbb0bf87cd17bb1472f6c21e122b2eb2819
4
- data.tar.gz: 9c2508b000f0325a1cea0bc695e283434bac5c85b6890e8ffda47f26a6aac602
3
+ metadata.gz: '074395540ebc204adcd075304d3d5b0cbbc77a961f8c8b9db3187bd44b215b9c'
4
+ data.tar.gz: 0e8e237323c6d5d78673598a7ec6cf32ee57167b4d7d01512cadef85a4691bce
5
5
  SHA512:
6
- metadata.gz: 762bf3b4458c6ab07ea64c158133bf626981002dc241e49648de3ceef20ee2f25b439cdaae674b3118de5d910d17f72d2fcfb0cee3bf058a0c7ad9eafa2b87c4
7
- data.tar.gz: 6720d6fce5e53fd978321fdcc2041adf32aeca2a84619e3be20eab79a273ed4a0cf2824651ab5438c1b4f2a706c3143fec6ba801efd0daebe2ec6bf8be63303c
6
+ metadata.gz: 3281130f57efb0b2749f457f3868b10cc32f1e3d4b523d1a5d62d9a064a68d66812b5db1662b2a90230c5b9c4a8a81f31a22a508de73a5e011386567ef0fc9ae
7
+ data.tar.gz: e2780f525037e94273e25ac26753b7f6ad22d4008f3e5e4bbf68c5fb07ae50ea4b01bd077213ad13e271672d7ec80eb67e1604e6c0b3125deb20e6c6084937b9
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chieftain (0.1.3)
4
+ chieftain (0.1.4)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -72,8 +72,8 @@ module Chieftain
72
72
  end
73
73
 
74
74
  # Register an error with the execution of the current Command.
75
- def error(message)
76
- @errors << Error.new(message)
75
+ def error(message, code=nil)
76
+ @errors << Error.new(message, code)
77
77
  end
78
78
 
79
79
  # Invokes the #perform() method if and only if the Command instance tests as
@@ -363,7 +363,7 @@ module Chieftain
363
363
  # Fetches the parameter list registered for a specific Command class
364
364
  # instance.
365
365
  def self.parameters(command_class)
366
- @@parameters[command_class]
366
+ @@parameters[command_class] || {}
367
367
  end
368
368
 
369
369
  # Registers an optional parameter for the command. See the #parameter() method
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Chieftain
4
- VERSION = "0.1.4"
4
+ VERSION = "0.1.5"
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: chieftain
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Wood
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2022-11-25 00:00:00.000000000 Z
11
+ date: 2023-01-21 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: An implementation of the command design pattern that attempts to simplify
14
14
  usage by enchancing the offering making use of the facilities offered by the Ruby