spitball 0.4.1 → 0.4.2

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.
data/bin/spitball CHANGED
@@ -5,8 +5,9 @@ require 'optparse'
5
5
  require 'net/http'
6
6
  require 'fileutils'
7
7
 
8
- args = {}
8
+ STDOUT.sync = true
9
9
 
10
+ args = {}
10
11
  opts = OptionParser.new do |opts|
11
12
  opts.banner = "Usage: spitball [options] GEMFILE ARCHIVE"
12
13
  opts.separator ""
data/bin/spitball-server CHANGED
@@ -64,12 +64,14 @@ post '/create' do
64
64
  status 202
65
65
 
66
66
  i,o = IO.pipe
67
+ o.sync = true
67
68
 
68
69
  # fork twice. once so we can have a pid to detach from in order to clean up,
69
70
  # twice in order to properly redirect stdout for underlying shell commands.
70
71
  pid = fork do
71
72
  baller = open("|-")
72
73
  if baller == nil # child
74
+ $stdout.sync = true
73
75
  begin
74
76
  ball.cache!
75
77
  rescue Object => e
@@ -1,3 +1,3 @@
1
1
  class Spitball
2
- VERSION = '0.4.1'
2
+ VERSION = '0.4.2'
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spitball
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 4
9
- - 1
10
- version: 0.4.1
9
+ - 2
10
+ version: 0.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Matt Freels
@@ -17,7 +17,7 @@ autorequire:
17
17
  bindir: bin
18
18
  cert_chain: []
19
19
 
20
- date: 2010-11-13 00:00:00 -08:00
20
+ date: 2010-11-15 00:00:00 -08:00
21
21
  default_executable:
22
22
  dependencies:
23
23
  - !ruby/object:Gem::Dependency