snakeeyes 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/snakeeyes.rb +4 -15
  2. metadata +4 -18
@@ -1,7 +1,6 @@
1
1
  require 'rubygems'
2
2
  require "json"
3
3
  require "uri"
4
- require 'popen4'
5
4
  require "net/http"
6
5
  require 'pp'
7
6
 
@@ -66,15 +65,9 @@ class SnakeEyes
66
65
  debug "run tests"
67
66
  command = git("config cijoe.runner")
68
67
  debug "running '#{command}'...", 1
69
- output = ''
70
- status = POpen4::popen4(command) do |stdout, stderr, stdin, pid|
71
- stdin.close
72
- out = stdout.read
73
- err = stderr.read
74
- output = out + err
75
- end
76
- debug "test exitstatus : #{ status.exitstatus }", 2
77
- [(status.exitstatus == 0), output]
68
+ output = `#{command} 2>&1`
69
+ debug "test exitstatus : #{ $?.exitstatus }", 2
70
+ [($?.exitstatus == 0), output]
78
71
  end
79
72
 
80
73
  # report the output to general hawk
@@ -130,11 +123,7 @@ class SnakeEyes
130
123
  end
131
124
 
132
125
  def git(command)
133
- out = ''
134
- status = POpen4::popen4("git #{command}") do |stdout, stderr, stdin, pid|
135
- out = stdout.read
136
- end
137
- out.chomp
126
+ `git #{command}`.chomp
138
127
  end
139
128
 
140
129
  def debug(message = "", level = 0)
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snakeeyes
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Scott Chacon
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-12-20 00:00:00 -08:00
18
+ date: 2010-12-22 00:00:00 -08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -32,20 +32,6 @@ dependencies:
32
32
  version: "0"
33
33
  type: :runtime
34
34
  version_requirements: *id001
35
- - !ruby/object:Gem::Dependency
36
- name: popen4
37
- prerelease: false
38
- requirement: &id002 !ruby/object:Gem::Requirement
39
- none: false
40
- requirements:
41
- - - ">="
42
- - !ruby/object:Gem::Version
43
- hash: 3
44
- segments:
45
- - 0
46
- version: "0"
47
- type: :runtime
48
- version_requirements: *id002
49
35
  description: " snakeeyes is a polling, command line based cijoe replacement that will\n report to generalhawk.\n"
50
36
  email: schacon@gmail.com
51
37
  executables: