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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 2ad1c39b92a0d9a3dcc4a85f6fb126876730ab73
4
- data.tar.gz: 882f23955cf9ce70eb44ed4e3e2f4f87135fab03
3
+ metadata.gz: 04d95eb51cfbf4608faa4834eb532b56a1b35ffa
4
+ data.tar.gz: d6eb47f0fe8281a81d4aa6dfcc797eba6a83af05
5
5
  SHA512:
6
- metadata.gz: 1945fc80bf9508d9b9806e13eb3f99bbbba85819feaa140bf6b189a69d5ccab9d4f32adb7f56ce0b74978e721eeafcaa05b2885c9a8479cc3f98af438f2e027a
7
- data.tar.gz: e4aba255979a4afa0cb4354e6e2475f0f097badc9924a69d1239dea4c9828025248c93b4d06bfe01a0b87aba01c94467a52b28a7edfa1a861337593cb47da21a
6
+ metadata.gz: b458e7fa660542602f8e3a4a5dc5ba5686be81c96d3fd8777e372024725cc800b65a2b48c35712f66fa76c78dc60cc969a8387b5737f699dfa1710745a92f372
7
+ data.tar.gz: 7a4c7cc95f6e56396a05de2555c569e319dc0de5badc5412e25d4455293ae4aad83394a1f409afe76a0254e6641672ef5b0ebde0177e12c3667997588bce0f62
@@ -30,8 +30,8 @@ module Cp8Cli
30
30
  highline.say(message.green.bold)
31
31
  end
32
32
 
33
- def ask(message, type = nil)
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
@@ -13,7 +13,7 @@ module Cp8Cli
13
13
  def pick(caption)
14
14
  return if records.none?
15
15
  render_table
16
- index = Command.ask(caption, Integer)
16
+ index = Command.ask(caption, type: Integer)
17
17
  records[index - 1]
18
18
  end
19
19
 
@@ -1,5 +1,5 @@
1
1
  module Cp8Cli
2
- VERSION = "4.1.2"
2
+ VERSION = "4.1.3"
3
3
 
4
4
  class Version
5
5
  def self.latest?
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cp8_cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 4.1.2
4
+ version: 4.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jens Balvig