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 +4 -4
- data/Gemfile.lock +1 -1
- data/lib/chieftain/command.rb +2 -2
- data/lib/chieftain/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: d36812d0255aa611cd5d6482d1b44c8ec63610a88c7f659c9c90af85c611a047
|
4
|
+
data.tar.gz: 2d43fe1572144e93b3049b7b775fd2c2668ad49d8e0ff747d0dc41301cca35d9
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 45dd99cbe89890d2cc3537baacfb602b1b0bf0245142534b6067b9f2ca9943d35b453d630e159d46b516536ccd7f06d0597a20c6cb0b861ba2a976f322da645d
|
7
|
+
data.tar.gz: dcecc3c4e517f38a808aab6ab08ea48cf5f5174254bf89a5e8964f7b28422d5f1cea760770262b0fb07a1cdf2634ed807cca30b20f9868d1bd0f520d4b9cfd61
|
data/Gemfile.lock
CHANGED
data/lib/chieftain/command.rb
CHANGED
@@ -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
|
-
|
315
|
+
puts "[WARNING] The #{name} command validator has been overwritten."
|
316
316
|
end
|
317
317
|
|
318
318
|
if !block
|
data/lib/chieftain/version.rb
CHANGED
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
|
+
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-
|
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
|