little-dutch 0.0.10 → 0.0.11

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d369024bb3b3c53cfbc05fef141ae6120f373fe5
4
- data.tar.gz: d9bd89fe27a975228d83ea77b2e293866278b90d
3
+ metadata.gz: f38c1fbad6eece05731ce41b91890c1495df942f
4
+ data.tar.gz: 065b27f61804b8b7889cd85deaf7762774d44997
5
5
  SHA512:
6
- metadata.gz: 8bb6b56e36329c5afafd1cdafb46dd5ad6da7b359d2059e9cd7d154d5a37b0837b980bd2f212327caa0a2fa78c2d44e55d26678a5b521d84662359e745e6a159
7
- data.tar.gz: c2bd0fd6d1abd8404d7fae0ba5df518e893ea0c4ef23e41928859ce62c51a18ac4ab9b2ebe9639e85e44e44e0253d09dc5331f80739ae9b4bbcf15cbef64ab34
6
+ metadata.gz: 28507530f0316e008743a6389e9c37f28fce0a15dc1f159eb129d001ac4fb2692feb8a884bf70b16c60f81ca1a3c8ffa4f049a83fc936edd19b1b415e37df11e
7
+ data.tar.gz: 92804645e98810ef9927c455cb83bc6a04c35f96839612fdeb952d05b6900ff1411ec98c4c490efa46152a13a4e065f3a929bef690c5d95e9ab363276e7d229b
@@ -1,5 +1,5 @@
1
1
  module Little
2
2
  module Dutch
3
- VERSION = "0.0.10"
3
+ VERSION = "0.0.11"
4
4
  end
5
5
  end
data/lib/little-dutch.rb CHANGED
@@ -50,10 +50,11 @@ module LittleDutch
50
50
  url.path = "/r/#{config.app_name}/#{config.instance_id}/#{@runcount}"
51
51
  url.query = { token: config.token }.to_param
52
52
  path = file.tap(&:close).path
53
- curl_cmd = <<-SHELL
54
- curl -X POST -H "Transfer-Encoding: chunked" -H "Content-Type: application/text" --data-binary @#{path} #{url.to_s}
53
+ curl_cmd = <<-SHELL.lines.map(&:strip).join(' ; ')
54
+ curl -X POST --retry 10 -H "Transfer-Encoding: chunked" -H "Content-Type: application/text" --data-binary @#{path} #{url.to_s}
55
+ rm -f #{file}
55
56
  SHELL
56
- Process.spawn curl_cmd, out: config.logfile, err: config.logfile
57
+ Process.spawn curl_cmd, out: config.logfile, err: config.logfile, in: '/dev/null'
57
58
  end
58
59
 
59
60
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: little-dutch
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.10
4
+ version: 0.0.11
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jason Waldrip