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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +7 -1
  3. data/bin/csv-curl +4 -1
  4. data/csv-curl.gemspec +1 -1
  5. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: 381850913b0f63297ab7a5186c9108880d09774930604bd965f7958b573bdeca
4
- data.tar.gz: df854cee03e5e4f2c1bc68da0d1c37a845ab8ad9fcb9b19aa0c8f024064999c1
3
+ metadata.gz: c399bda48fa042fc38f55d52a388f7e26a64a142c8ca5661d653ade18d7edbba
4
+ data.tar.gz: 9247c6d7348f60306731b26f6f03650e93706a9438fc601515cdc566d2d32a8a
5
5
  SHA512:
6
- metadata.gz: 9582c3888f042d002b1d229d5433c2bfa7c9d4e8cf7845d3caed560219614f393eca5fa659c8f2f286c7222ebcee4b53bbdccbe576356998a2d79df89cd6a755
7
- data.tar.gz: c45dd8f7fc333b38b493b2b4904956b678c498c7fa281f41b90a6d7960e3037ab5bdd3732c2a366087e949d3673de0f69aed6ce21e0be18e3bacba443c6109f1
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
@@ -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)
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = 'csv-curl'
5
- s.version = '0.2.0'
5
+ s.version = '0.2.1'
6
6
  s.licenses = ['MIT']
7
7
  s.summary = 'CSV Curl'
8
8
  s.description = 'Tools making mulitple calls using curl'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csv-curl
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Doug Youch