poke-your-api 0.2.3 → 0.2.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: ca92137a00063a26c6f3a762768653bc5e0681b404ae8453a3c5595fc8a44075
4
- data.tar.gz: 762b370cd9f20cf0f8fbc73f9c01e77168daeaf55162060d0509020e9da7e71f
3
+ metadata.gz: 3cd2899179586fbaacf682ae4a9cd4813d014543e3ec281ed778cff26601a43a
4
+ data.tar.gz: 0450cce6ee6fafca571d0ba53973fd25416531d13d108b4ece8ff4acf40208d9
5
5
  SHA512:
6
- metadata.gz: 04c21eb78b1cd3d1f4b3f62e028ed02d24f7a8ea05a3fac7f88c2d108c7a45e8629ab466af52e025e58738580ae863b0733daba322cf8e601d8ce0154c6dce4e
7
- data.tar.gz: 8da8bafa688a78a389a5399334cef7dbddce7705476617ab639b99982bf8dd4659869877f849ddc590bcb4ac5bc995b2b31ec14e198cca65b456e51a7e892c03
6
+ metadata.gz: 63b160388bbc777cc5f248db29bc35bc2853302ac3b0a19a5a2b39abd5f6a0bc962ab4160787e94c848bb403fe9f3fb1e42c7537ef6dbe3f4fd853f34716cdc3
7
+ data.tar.gz: 9d17a1e3c0d4c2e7c99579de8ed5e7ac969b5963eb8b1ae558027b0c0a6e5789ecc58f7d89059d9919880f427e0d87b84fe4da926942bdb5135cf702beb262b2
data/lib/poke/cli.rb CHANGED
@@ -52,6 +52,7 @@ module Poke
52
52
  method_option :help, aliases: '-h', type: :boolean, desc: 'Display usage information'
53
53
  method_option :env, aliases: '-e', type: :string, desc: 'Set target environment'
54
54
  method_option :name, aliases: '-n', type: :string, desc: 'Find request by name'
55
+ method_option :count, aliases: '-c', type: :numeric, desc: 'Set number of requests'
55
56
  def speed(*)
56
57
  if options[:help]
57
58
  invoke :help, ['curl']
@@ -61,7 +61,13 @@ module Poke
61
61
  [['CMD', curl_command]] +
62
62
  [['COMMENTS', comments]]
63
63
  )
64
- errors << table.render(:unicode, multiline: true, padding: [0, 1, 0, 1])
64
+ errors << table.render(
65
+ :unicode,
66
+ multiline: true,
67
+ resize: true,
68
+ column_widths: [20,80],
69
+ alignments: [:right, :left]
70
+ )
65
71
  errors << "\n\n"
66
72
 
67
73
  command = TTY::Command.new(printer: :null).run!(
data/lib/poke/version.rb CHANGED
@@ -1,5 +1,5 @@
1
1
  # frozen_string_literal: true
2
2
 
3
3
  module Poke
4
- VERSION = '0.2.3'
4
+ VERSION = '0.2.5'
5
5
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: poke-your-api
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.3
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jan Bator
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2024-10-21 00:00:00.000000000 Z
11
+ date: 2024-12-24 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: pastel