process_starter 1.0.9 → 1.0.10

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.
Files changed (3) hide show
  1. data/LICENSE +20 -0
  2. data/README +52 -0
  3. metadata +7 -5
data/LICENSE ADDED
@@ -0,0 +1,20 @@
1
+ Copyright (c) 2012 Pavel Vasev
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining
4
+ a copy of this software and associated documentation files (the
5
+ "Software"), to deal in the Software without restriction, including
6
+ without limitation the rights to use, copy, modify, merge, publish,
7
+ distribute, sublicense, and/or sell copies of the Software, and to
8
+ permit persons to whom the Software is furnished to do so, subject to
9
+ the following conditions:
10
+
11
+ The above copyright notice and this permission notice shall be
12
+ included in all copies or substantial portions of the Software.
13
+
14
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
15
+ EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
16
+ MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
17
+ NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
18
+ LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
19
+ OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
20
+ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README ADDED
@@ -0,0 +1,52 @@
1
+ == Process Starter
2
+
3
+ A gem for Ruby 1.8 to start process in parallel, 1) don't wait for it
4
+ finish 2) dont inherit io file handles 3) both in windows/linux. Ruby 1.9
5
+ dont need it because it has spawn method.
6
+
7
+ == Usage
8
+
9
+ ProcessStarter.start("somecmd arg1 arg2")
10
+
11
+ will invoke 'somecmd' with command line arg1 arg2.
12
+
13
+ ProcessStarter.allowed_methods = [:psexec,:start,:spawn,:fork]
14
+
15
+ specify which methods are allowed to start the process. So we have psexec
16
+ (if found on the target machine) and 'cmd /c start ...' for windows,
17
+ and spawn (if in ruby 1.9) or fork in linux. This is the default,
18
+ but you can redefine it, for example
19
+ ProcessStarter.allowed_methods = [:start,:fork]
20
+
21
+ Also you can set allowed methods in command call:
22
+
23
+ ProcessStarter.start("somecmd arg1 arg2",[:start,:fork])
24
+
25
+ This overrides ProcessStarter.allowed_methods values.
26
+
27
+ == How to install
28
+
29
+ gem install process_starter
30
+
31
+ == Ruby versions
32
+ Useful for Ruby 1.8, not so useful for Ruby 1.9
33
+
34
+ == Todo
35
+
36
+ * Add 'win32/process' start method.
37
+ * Fix posix-spawn method (turned off at the moment).
38
+
39
+ == Changelog
40
+
41
+
42
+ == Legal
43
+
44
+ Found a bug? Fix it and email pull request to me: pavel.vasev@gmail.com
45
+
46
+ Want to add a feature? Implement it and email the patch!
47
+
48
+ Pavel Vasev [ pavel.vasev@gmail.com ]
49
+
50
+
51
+ Released under the MIT license (included)
52
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: process_starter
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 0
9
- - 9
10
- version: 1.0.9
9
+ - 10
10
+ version: 1.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Pavel Vasev
@@ -28,12 +28,14 @@ extra_rdoc_files: []
28
28
 
29
29
  files:
30
30
  - lib/process_starter.rb
31
+ - README
32
+ - LICENSE
31
33
  - Rakefile
32
34
  - test/test_process_starter.rb
33
35
  - test/test2child.arb
34
36
  homepage: http://rubygems.org/gems/process_starter
35
- licenses: []
36
-
37
+ licenses:
38
+ - MIT
37
39
  post_install_message:
38
40
  rdoc_options: []
39
41