ruby_process 0.0.8 → 0.0.9
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile +0 -1
- data/VERSION +1 -1
- data/include/args_handeling.rb +2 -0
- data/lib/ruby_process.rb +7 -0
- data/ruby_process.gemspec +8 -11
- metadata +50 -33
data/Gemfile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.0.
|
1
|
+
0.0.9
|
data/include/args_handeling.rb
CHANGED
@@ -16,8 +16,10 @@ class Ruby_process
|
|
16
16
|
|
17
17
|
return newh
|
18
18
|
elsif @args_allowed.index(args.class) != nil
|
19
|
+
debug "Allowing type '#{args.class}' as an argument: '#{args}'.\n" if @debug
|
19
20
|
return args
|
20
21
|
else
|
22
|
+
debug "Not allowing type '#{args.class}' as an argument - proxy object will be used.\n" if @debug
|
21
23
|
return handle_return_object(args)
|
22
24
|
end
|
23
25
|
end
|
data/lib/ruby_process.rb
CHANGED
@@ -178,9 +178,16 @@ class Ruby_process
|
|
178
178
|
#Process is already dead - ignore.
|
179
179
|
ensure
|
180
180
|
@pid = nil
|
181
|
+
|
182
|
+
@io_out.close if @io_out && !@io_out.closed?
|
181
183
|
@io_out = nil
|
184
|
+
|
185
|
+
@io_in.close if @io_in && !@io_in.closed?
|
182
186
|
@io_in = nil
|
187
|
+
|
188
|
+
@io_err if @io_err && !@io_err.closed?
|
183
189
|
@io_err = nil
|
190
|
+
|
184
191
|
@main = nil
|
185
192
|
end
|
186
193
|
|
data/ruby_process.gemspec
CHANGED
@@ -4,14 +4,14 @@
|
|
4
4
|
# -*- encoding: utf-8 -*-
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
|
-
s.name =
|
8
|
-
s.version = "0.0.
|
7
|
+
s.name = "ruby_process"
|
8
|
+
s.version = "0.0.9"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Kasper Johansen"]
|
12
|
-
s.date =
|
13
|
-
s.description =
|
14
|
-
s.email =
|
12
|
+
s.date = "2013-12-10"
|
13
|
+
s.description = "A framework for spawning and communicating with other Ruby-processes"
|
14
|
+
s.email = "k@spernj.org"
|
15
15
|
s.extra_rdoc_files = [
|
16
16
|
"LICENSE.txt",
|
17
17
|
"README.rdoc"
|
@@ -46,11 +46,11 @@ Gem::Specification.new do |s|
|
|
46
46
|
"spec/ruby_process_spec.rb",
|
47
47
|
"spec/spec_helper.rb"
|
48
48
|
]
|
49
|
-
s.homepage =
|
49
|
+
s.homepage = "http://github.com/kaspernj/ruby_process"
|
50
50
|
s.licenses = ["MIT"]
|
51
51
|
s.require_paths = ["lib"]
|
52
|
-
s.rubygems_version =
|
53
|
-
s.summary =
|
52
|
+
s.rubygems_version = "1.8.23"
|
53
|
+
s.summary = "A framework for spawning and communicating with other Ruby-processes"
|
54
54
|
|
55
55
|
if s.respond_to? :specification_version then
|
56
56
|
s.specification_version = 3
|
@@ -62,7 +62,6 @@ Gem::Specification.new do |s|
|
|
62
62
|
s.add_development_dependency(%q<rdoc>, ["~> 3.12"])
|
63
63
|
s.add_development_dependency(%q<bundler>, [">= 1.0.0"])
|
64
64
|
s.add_development_dependency(%q<jeweler>, ["~> 1.8.3"])
|
65
|
-
s.add_development_dependency(%q<rcov>, [">= 0"])
|
66
65
|
else
|
67
66
|
s.add_dependency(%q<wref>, [">= 0"])
|
68
67
|
s.add_dependency(%q<tsafe>, [">= 0"])
|
@@ -70,7 +69,6 @@ Gem::Specification.new do |s|
|
|
70
69
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
71
70
|
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
72
71
|
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
73
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
74
72
|
end
|
75
73
|
else
|
76
74
|
s.add_dependency(%q<wref>, [">= 0"])
|
@@ -79,7 +77,6 @@ Gem::Specification.new do |s|
|
|
79
77
|
s.add_dependency(%q<rdoc>, ["~> 3.12"])
|
80
78
|
s.add_dependency(%q<bundler>, [">= 1.0.0"])
|
81
79
|
s.add_dependency(%q<jeweler>, ["~> 1.8.3"])
|
82
|
-
s.add_dependency(%q<rcov>, [">= 0"])
|
83
80
|
end
|
84
81
|
end
|
85
82
|
|
metadata
CHANGED
@@ -1,94 +1,112 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: ruby_process
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.8
|
5
4
|
prerelease:
|
5
|
+
version: 0.0.9
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Kasper Johansen
|
9
9
|
autorequire:
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
|
-
date:
|
13
|
-
default_executable:
|
12
|
+
date: 2013-12-10 00:00:00.000000000 Z
|
14
13
|
dependencies:
|
15
14
|
- !ruby/object:Gem::Dependency
|
16
|
-
|
17
|
-
requirement: &12893660 !ruby/object:Gem::Requirement
|
15
|
+
version_requirements: !ruby/object:Gem::Requirement
|
18
16
|
none: false
|
19
17
|
requirements:
|
20
18
|
- - ! '>='
|
21
19
|
- !ruby/object:Gem::Version
|
22
20
|
version: '0'
|
21
|
+
name: wref
|
23
22
|
type: :runtime
|
24
23
|
prerelease: false
|
25
|
-
|
24
|
+
requirement: !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ! '>='
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
version: '0'
|
26
30
|
- !ruby/object:Gem::Dependency
|
27
|
-
|
28
|
-
requirement: &12892340 !ruby/object:Gem::Requirement
|
31
|
+
version_requirements: !ruby/object:Gem::Requirement
|
29
32
|
none: false
|
30
33
|
requirements:
|
31
34
|
- - ! '>='
|
32
35
|
- !ruby/object:Gem::Version
|
33
36
|
version: '0'
|
37
|
+
name: tsafe
|
34
38
|
type: :runtime
|
35
39
|
prerelease: false
|
36
|
-
|
40
|
+
requirement: !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ! '>='
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: '0'
|
37
46
|
- !ruby/object:Gem::Dependency
|
38
|
-
|
39
|
-
requirement: &12890800 !ruby/object:Gem::Requirement
|
47
|
+
version_requirements: !ruby/object:Gem::Requirement
|
40
48
|
none: false
|
41
49
|
requirements:
|
42
50
|
- - ~>
|
43
51
|
- !ruby/object:Gem::Version
|
44
52
|
version: 2.8.0
|
53
|
+
name: rspec
|
45
54
|
type: :development
|
46
55
|
prerelease: false
|
47
|
-
|
56
|
+
requirement: !ruby/object:Gem::Requirement
|
57
|
+
none: false
|
58
|
+
requirements:
|
59
|
+
- - ~>
|
60
|
+
- !ruby/object:Gem::Version
|
61
|
+
version: 2.8.0
|
48
62
|
- !ruby/object:Gem::Dependency
|
49
|
-
|
50
|
-
requirement: &12889640 !ruby/object:Gem::Requirement
|
63
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
64
|
none: false
|
52
65
|
requirements:
|
53
66
|
- - ~>
|
54
67
|
- !ruby/object:Gem::Version
|
55
68
|
version: '3.12'
|
69
|
+
name: rdoc
|
56
70
|
type: :development
|
57
71
|
prerelease: false
|
58
|
-
|
72
|
+
requirement: !ruby/object:Gem::Requirement
|
73
|
+
none: false
|
74
|
+
requirements:
|
75
|
+
- - ~>
|
76
|
+
- !ruby/object:Gem::Version
|
77
|
+
version: '3.12'
|
59
78
|
- !ruby/object:Gem::Dependency
|
60
|
-
|
61
|
-
requirement: &12888460 !ruby/object:Gem::Requirement
|
79
|
+
version_requirements: !ruby/object:Gem::Requirement
|
62
80
|
none: false
|
63
81
|
requirements:
|
64
82
|
- - ! '>='
|
65
83
|
- !ruby/object:Gem::Version
|
66
84
|
version: 1.0.0
|
85
|
+
name: bundler
|
67
86
|
type: :development
|
68
87
|
prerelease: false
|
69
|
-
|
88
|
+
requirement: !ruby/object:Gem::Requirement
|
89
|
+
none: false
|
90
|
+
requirements:
|
91
|
+
- - ! '>='
|
92
|
+
- !ruby/object:Gem::Version
|
93
|
+
version: 1.0.0
|
70
94
|
- !ruby/object:Gem::Dependency
|
71
|
-
|
72
|
-
requirement: &12887260 !ruby/object:Gem::Requirement
|
95
|
+
version_requirements: !ruby/object:Gem::Requirement
|
73
96
|
none: false
|
74
97
|
requirements:
|
75
98
|
- - ~>
|
76
99
|
- !ruby/object:Gem::Version
|
77
100
|
version: 1.8.3
|
101
|
+
name: jeweler
|
78
102
|
type: :development
|
79
103
|
prerelease: false
|
80
|
-
|
81
|
-
- !ruby/object:Gem::Dependency
|
82
|
-
name: rcov
|
83
|
-
requirement: &12886420 !ruby/object:Gem::Requirement
|
104
|
+
requirement: !ruby/object:Gem::Requirement
|
84
105
|
none: false
|
85
106
|
requirements:
|
86
|
-
- -
|
107
|
+
- - ~>
|
87
108
|
- !ruby/object:Gem::Version
|
88
|
-
version:
|
89
|
-
type: :development
|
90
|
-
prerelease: false
|
91
|
-
version_requirements: *12886420
|
109
|
+
version: 1.8.3
|
92
110
|
description: A framework for spawning and communicating with other Ruby-processes
|
93
111
|
email: k@spernj.org
|
94
112
|
executables: []
|
@@ -125,7 +143,6 @@ files:
|
|
125
143
|
- spec/leaks_spec.rb
|
126
144
|
- spec/ruby_process_spec.rb
|
127
145
|
- spec/spec_helper.rb
|
128
|
-
has_rdoc: true
|
129
146
|
homepage: http://github.com/kaspernj/ruby_process
|
130
147
|
licenses:
|
131
148
|
- MIT
|
@@ -138,10 +155,10 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
138
155
|
requirements:
|
139
156
|
- - ! '>='
|
140
157
|
- !ruby/object:Gem::Version
|
141
|
-
version: '0'
|
142
158
|
segments:
|
143
159
|
- 0
|
144
|
-
hash: -
|
160
|
+
hash: -790821121563732357
|
161
|
+
version: '0'
|
145
162
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
146
163
|
none: false
|
147
164
|
requirements:
|
@@ -150,7 +167,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
150
167
|
version: '0'
|
151
168
|
requirements: []
|
152
169
|
rubyforge_project:
|
153
|
-
rubygems_version: 1.
|
170
|
+
rubygems_version: 1.8.23
|
154
171
|
signing_key:
|
155
172
|
specification_version: 3
|
156
173
|
summary: A framework for spawning and communicating with other Ruby-processes
|