csv-curl 0.2.0 → 0.2.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +7 -1
- data/bin/csv-curl +4 -1
- data/csv-curl.gemspec +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c399bda48fa042fc38f55d52a388f7e26a64a142c8ca5661d653ade18d7edbba
|
4
|
+
data.tar.gz: 9247c6d7348f60306731b26f6f03650e93706a9438fc601515cdc566d2d32a8a
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1505581f4146fc7e9500f0ec8493343ff50b233ca7546edea97542ffcc49a4a72d75d3d5c699b119a5a257a28011ce348a77a877a2b2fd21751cdf6cfd02f10d
|
7
|
+
data.tar.gz: fd5ea50ecc3ab378a86c7178ac479120b4762d6996a78f959f73eb064b37042386418eff0e54113f89aa20d7524ece6147ff5f49d9d45d2d3d8279ee4e757939
|
data/README.md
CHANGED
@@ -2,9 +2,15 @@
|
|
2
2
|
|
3
3
|
Utility for making multiple curl requests using a CSV file.
|
4
4
|
|
5
|
+
### Install
|
6
|
+
|
7
|
+
```
|
8
|
+
gem install csv-curl
|
9
|
+
```
|
10
|
+
|
5
11
|
### Usage
|
6
12
|
```
|
7
|
-
Usage: csv-curl[OPTIONS] [CURL OPTIONS]
|
13
|
+
Usage: csv-curl [OPTIONS] [CURL OPTIONS]
|
8
14
|
--template FILE Path to the template file
|
9
15
|
--csv CSV_FILE Path to the CSV file
|
10
16
|
--exec UTILITY Utility to run on each response
|
data/bin/csv-curl
CHANGED
@@ -16,7 +16,7 @@ options = {
|
|
16
16
|
}
|
17
17
|
|
18
18
|
OPTPARSE = OptionParser.new do |opts|
|
19
|
-
opts.banner = "Usage: " + File.basename(__FILE__) + "[OPTIONS] [CURL OPTIONS]"
|
19
|
+
opts.banner = "Usage: " + File.basename(__FILE__) + " [OPTIONS] [CURL OPTIONS]"
|
20
20
|
|
21
21
|
opts.on('--template FILE', 'Path to the template file') do |v|
|
22
22
|
options[:template_file] = v
|
@@ -39,6 +39,9 @@ ARGV.size.times.to_a.reverse.each do |idx|
|
|
39
39
|
'--exec'
|
40
40
|
CSV_CURL_ARGV << ARGV.delete_at(idx)
|
41
41
|
CSV_CURL_ARGV << ARGV.delete_at(idx)
|
42
|
+
when '-h',
|
43
|
+
'--help'
|
44
|
+
CSV_CURL_ARGV << ARGV.delete_at(idx)
|
42
45
|
end
|
43
46
|
end
|
44
47
|
OPTPARSE.parse(CSV_CURL_ARGV)
|
data/csv-curl.gemspec
CHANGED