pingpongpairing 0.1.1 → 0.1.3
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 +4 -4
- data/exe/parallel +3 -3
- data/exe/pingpong +2 -1
- data/lib/pingpongpairing/version.rb +1 -1
- metadata +1 -2
- data/events.txt +0 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 75e03bf843f7de605db8ffb0c3c874a694a1d1a4
|
4
|
+
data.tar.gz: 0e475552f4c66bcb47491908850da670229b1be1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: ab7d3d86f99480203bd681b9b9d032356a70047338d12571a740f7aa8fdbe1fc0e0327a1d064460f73d67f4eda661b91c2bcee4e01a59acdf62bb52edc534994
|
7
|
+
data.tar.gz: 1aa616d5ddce8a5bb56a2096fc2453092dad66cf4e0148ada2b019ab412de67752e75aaa68aa72f1b60851320be07bbcacaca0c38bafc3c08c76140d823e6e71
|
data/exe/parallel
CHANGED
@@ -1,6 +1,6 @@
|
|
1
|
-
#!/bin/
|
1
|
+
#!/usr/bin/env ruby
|
2
2
|
|
3
|
-
for cmd in "$@"; do {
|
3
|
+
`for cmd in "$@"; do {
|
4
4
|
echo "Process \"$cmd\" started";
|
5
5
|
$cmd & pid=$!
|
6
6
|
PID_LIST+=" $pid";
|
@@ -13,4 +13,4 @@ echo "Parallel processes have started";
|
|
13
13
|
wait $PID_LIST
|
14
14
|
|
15
15
|
echo
|
16
|
-
echo "All processes have completed"
|
16
|
+
echo "All processes have completed";`
|
data/exe/pingpong
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pingpongpairing
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Sampson Crowley
|
@@ -219,7 +219,6 @@ files:
|
|
219
219
|
- bin/thor
|
220
220
|
- bin/tilt
|
221
221
|
- bin/webhook
|
222
|
-
- events.txt
|
223
222
|
- exe/parallel
|
224
223
|
- exe/pingpong
|
225
224
|
- exe/sendevent
|
data/events.txt
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
{"file"=>"test.txt", "data"=>"require 'sinatra'\nrequire 'json'\nset :port, 5000\n\npost '/event' do\n status 204 #successful request with no body content\n\n request.body.rewind\n p request_payload = JSON.parse(request.body.read)\n\n #append the payload to a file\n File.open(\"events.txt\", \"a\") do |f|\n f.puts(request_payload)\n end\nend\n\n"}
|