response_mate 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/lib/response_mate/cli.rb +1 -0
- data/lib/response_mate/commands/export.rb +6 -3
- data/lib/response_mate/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTQwZDc0YjIyMDNlOTQ5YmQ1MWE1YTBlZDkxOTBmNTQyNjZkMDJkOA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ZGM5YjllMzA0MmQ0MGU2MzFlNGM5YTUyN2U2NzJmZWFhMjMwNTQyZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
Yzc2YWUxNDM5NzBiY2JmNzVkYThhYzU3NDM5MTRiNGQ1ODJjNDY0MWI4ZWQ0
|
10
|
+
NDcxY2ZlYzQ4ZGI5OWQwOGJkZjUzY2RiMTY3Mzc5NGUyNzU5Njc4YmYzMzgy
|
11
|
+
MmZkZjM5OTA1YTIzMGU4OWYxOGIxN2YwNDU1NjQ3Yjc2YTlkOWQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZWJhMDQyMTIwYzVmYzcyNzExMjE1ZGU0NGU4MTM1NjUxMTA5ODMyNDYxMTdm
|
14
|
+
MDM3MzE5ZDhjMjJhYmJkM2ZjZWVkYzVkZmIxMjQyMDRlZGE3MzczZDE1ZTdh
|
15
|
+
NGI3ZTRlM2JiZjRiMmM2Y2NlMDY3MDM3NDdjMjllOWQyNGIzYzI=
|
data/lib/response_mate/cli.rb
CHANGED
@@ -59,6 +59,7 @@ module ResponseMate
|
|
59
59
|
method_option :requests_manifest, aliases: '-r'
|
60
60
|
method_option :format, required: true, aliases: '-f'
|
61
61
|
method_option :pretty, aliases: '-p', default: false
|
62
|
+
method_option :upload, type: :boolean
|
62
63
|
def export
|
63
64
|
ResponseMate::Commands::Export.new(args, options).run
|
64
65
|
end
|
@@ -13,10 +13,13 @@ module ResponseMate
|
|
13
13
|
|
14
14
|
def run
|
15
15
|
output = ResponseMate::Exporter.new(options).export
|
16
|
-
if options[:
|
17
|
-
|
16
|
+
if options[:upload]
|
17
|
+
url = Faraday.post 'http://getpostman.com/collections' do |req|
|
18
|
+
req.body = output.to_json
|
19
|
+
end
|
20
|
+
puts JSON.parse(url.body)['link']
|
18
21
|
else
|
19
|
-
puts output
|
22
|
+
puts JSON.pretty_generate(output)
|
20
23
|
end
|
21
24
|
end
|
22
25
|
end
|