chieftain 0.1.5 → 0.1.7

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: '074395540ebc204adcd075304d3d5b0cbbc77a961f8c8b9db3187bd44b215b9c'
4
- data.tar.gz: 0e8e237323c6d5d78673598a7ec6cf32ee57167b4d7d01512cadef85a4691bce
3
+ metadata.gz: d36812d0255aa611cd5d6482d1b44c8ec63610a88c7f659c9c90af85c611a047
4
+ data.tar.gz: 2d43fe1572144e93b3049b7b775fd2c2668ad49d8e0ff747d0dc41301cca35d9
5
5
  SHA512:
6
- metadata.gz: 3281130f57efb0b2749f457f3868b10cc32f1e3d4b523d1a5d62d9a064a68d66812b5db1662b2a90230c5b9c4a8a81f31a22a508de73a5e011386567ef0fc9ae
7
- data.tar.gz: e2780f525037e94273e25ac26753b7f6ad22d4008f3e5e4bbf68c5fb07ae50ea4b01bd077213ad13e271672d7ec80eb67e1604e6c0b3125deb20e6c6084937b9
6
+ metadata.gz: 45dd99cbe89890d2cc3537baacfb602b1b0bf0245142534b6067b9f2ca9943d35b453d630e159d46b516536ccd7f06d0597a20c6cb0b861ba2a976f322da645d
7
+ data.tar.gz: dcecc3c4e517f38a808aab6ab08ea48cf5f5174254bf89a5e8964f7b28422d5f1cea760770262b0fb07a1cdf2634ed807cca30b20f9868d1bd0f520d4b9cfd61
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- chieftain (0.1.4)
4
+ chieftain (0.1.7)
5
5
 
6
6
  GEM
7
7
  remote: https://rubygems.org/
@@ -50,7 +50,7 @@ module Chieftain
50
50
  def initialize(parameters={})
51
51
  @convertors = Command.convertors_for(self.class)
52
52
  @errors = []
53
- @parameters = {}.merge(parameters)
53
+ @parameters = {}.merge(parameters).inject({}) {|t,v| t[v[0].to_s.to_sym] = v[1]; t}
54
54
  @settings = Command.parameters(self.class)
55
55
  @validators = Command.validators_for(self.class)
56
56
  end
@@ -312,7 +312,7 @@ module Chieftain
312
312
  def self.add_validator(name, &block)
313
313
  @@validators[self] = {} if !@@validators.include?(self)
314
314
  if @@validators[self].include?(name)
315
- raise CommandError.new("Duplicate validator '#{name}' specified for the #{self.name} class.")
315
+ puts "[WARNING] The #{name} command validator has been overwritten."
316
316
  end
317
317
 
318
318
  if !block
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Chieftain
4
- VERSION = "0.1.5"
4
+ VERSION = "0.1.7"
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.5
4
+ version: 0.1.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Peter Wood
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2023-01-21 00:00:00.000000000 Z
11
+ date: 2023-09-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