cp8_cli 4.1.2 → 4.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/cp8_cli/command.rb +2 -2
- data/lib/cp8_cli/global_config.rb +1 -1
- data/lib/cp8_cli/table.rb +1 -1
- data/lib/cp8_cli/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 04d95eb51cfbf4608faa4834eb532b56a1b35ffa
|
4
|
+
data.tar.gz: d6eb47f0fe8281a81d4aa6dfcc797eba6a83af05
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b458e7fa660542602f8e3a4a5dc5ba5686be81c96d3fd8777e372024725cc800b65a2b48c35712f66fa76c78dc60cc969a8387b5737f699dfa1710745a92f372
|
7
|
+
data.tar.gz: 7a4c7cc95f6e56396a05de2555c569e319dc0de5badc5412e25d4455293ae4aad83394a1f409afe76a0254e6641672ef5b0ebde0177e12c3667997588bce0f62
|
data/lib/cp8_cli/command.rb
CHANGED
@@ -30,8 +30,8 @@ module Cp8Cli
|
|
30
30
|
highline.say(message.green.bold)
|
31
31
|
end
|
32
32
|
|
33
|
-
def ask(message, type
|
34
|
-
highline.ask(message, type)
|
33
|
+
def ask(message, type: nil, validate: /.+/)
|
34
|
+
highline.ask(message, type) { |q| q.validate = validate }
|
35
35
|
end
|
36
36
|
|
37
37
|
def title(message)
|
@@ -26,7 +26,7 @@ module Cp8Cli
|
|
26
26
|
attr_reader :store
|
27
27
|
|
28
28
|
def configure_trello_key
|
29
|
-
Command.ask "Press enter to setup Trello for this project (will open public key url)"
|
29
|
+
Command.ask "Press enter to setup Trello for this project (will open public key url)", validate: //
|
30
30
|
Command.open_url "https://trello.com/app-key"
|
31
31
|
store.save :key, Command.ask("Input Developer API key")
|
32
32
|
end
|
data/lib/cp8_cli/table.rb
CHANGED
data/lib/cp8_cli/version.rb
CHANGED