get-voodoo 0.0.6 → 0.0.9

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: 9e6d8dcf6e32c27aee6d6fecb023b06c714b0b1f68be0e28ece06763428270a8
4
- data.tar.gz: 78d560e2fd4ed92c71a5d2e62e188348ce33df6c796d1cefd0838d75092fe9f2
3
+ metadata.gz: 99defe02c0508d802bc59b7e6e794457d3aba4510055a70fc2324ec6303b84d8
4
+ data.tar.gz: f2c9e7c31bf6565b4b34a0441954a85b39cd94a277a12c5f552b0c274d242e3f
5
5
  SHA512:
6
- metadata.gz: 7de81bfa24329e95124905520eaf1a0ee11dd4d14bd4232347028e96e71a0597b484b5689d9562496cad1c16829b9c25382d640e4f41f64adff6902373dcd46b
7
- data.tar.gz: abc001bbff3629260b9707944132c9bac476012c52c0f0e38ebffd54dce0cc309c4274de32c67a89bf0a4c5218cffce47568253f2dbd37c3ad365ac34b12dd64
6
+ metadata.gz: 6221573992f6446fe7d4bafbdfe41676b3d95e1b6e04b9fcf1d0898bfb1b07f0c245df005ccbe7e4324e3f5530abcee6d8d52dce23989c560b94587d565fc6a9
7
+ data.tar.gz: 36bc49e969f2be12079a3aaf5b8ed2b815c1a00fe6389123ec0d84cd3cf3e2c05e3466b0e7255843512c47886b30ec5c1dff0dbd552dea1322f04653e09a7401
data/bin/voodoo CHANGED
@@ -7,4 +7,7 @@ $LOAD_PATH << lib_dir unless $LOAD_PATH.include?(lib_dir)
7
7
 
8
8
  require 'voodoo/cli'
9
9
 
10
- VOODOO::CLI.start(ARGV)
10
+ begin
11
+ VOODOO::CLI.start(ARGV)
12
+ rescue Interrupt => e
13
+ end
data/lib/voodoo/cli.rb CHANGED
@@ -6,7 +6,7 @@ require 'voodoo/browser'
6
6
 
7
7
  module VOODOO
8
8
 
9
- VERSION = 'v0.0.6'
9
+ VERSION = 'v0.0.9'
10
10
 
11
11
  class CLI < Thor
12
12
 
@@ -16,7 +16,7 @@ module VOODOO
16
16
  end
17
17
 
18
18
  option :url_include, :type => :string, :aliases => :u, :default => nil
19
- option :body_include, :type => :string, :aliases => :b, :default => nil
19
+ option :body_include, :type => :string, :aliases => :i, :default => nil
20
20
  option :header_exists, :type => :string, :aliases => :h, :default => nil
21
21
  option :format, :type => :string, :aliases => :f, :default => 'pretty', :desc => 'pretty, json, payload'
22
22
  option :output, :type => :string, :aliases => :o, :desc => 'File path', :default => nil
@@ -20,6 +20,10 @@
20
20
  }
21
21
 
22
22
  function parseBody(body) {
23
+ if (body.formData) {
24
+ return JSON.stringify(body.formData);
25
+ }
26
+
23
27
  try {
24
28
  return body.raw.map(data => String.fromCharCode.apply(null, new Uint8Array(data.bytes))).join('')
25
29
  } catch {
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: get-voodoo
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.9
5
5
  platform: ruby
6
6
  authors:
7
7
  - Ron Masas