iprocess 2.1.1 → 3.0.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.md CHANGED
@@ -10,10 +10,7 @@ __OVERVIEW__
10
10
 
11
11
  __DESCRIPTION__
12
12
 
13
- IProcess, short for _Inter Process Communication(IPC) Process_, is a collection
14
- of classes you can use to transport Ruby objects between processes running on
15
- UNIX-like operating systems.
16
-
13
+ Transport Ruby objects between processes on UNIX-like operating systems.
17
14
 
18
15
  __EXAMPLES__
19
16
 
@@ -51,11 +48,11 @@ When the subprocess completes, ':hi' is sent to `obj#recv` from another thread.
51
48
 
52
49
  obj = Object.new
53
50
  def obj.recv(msg)
54
- msg.to_s.captialize!
51
+ msg.to_s.capitalize!
55
52
  end
56
53
 
57
54
  jobs = IProcess.spawn! { :hi }
58
- jobs.map { |job| job.defer(listener) }
55
+ jobs.map { |job| job.report_to(obj) }
59
56
 
60
57
 
61
58
  __PLATFORM SUPPORT__
data/iprocess.gemspec CHANGED
@@ -7,8 +7,7 @@ Gem::Specification.new do |s|
7
7
  s.authors = ["Rob Gleeson"]
8
8
  s.email = 'rob@flowof.info'
9
9
  s.homepage = 'https://github.com/robgleeson/iprocess'
10
- s.summary = 'A set of classes you can use to transport ruby objects ' \
11
- 'between processes on UNIX-like operating systems.'
10
+ s.summary = 'Transport Ruby objects between processes on UNIX-like operating systems'
12
11
  s.description = s.summary
13
12
 
14
13
  s.files = `git ls-files`.each_line.map(&:chomp)
@@ -1,3 +1,3 @@
1
1
  class IProcess
2
- VERSION = '2.1.1'
2
+ VERSION = '3.0.0'
3
3
  end
data/lib/iprocess.rb CHANGED
@@ -68,15 +68,15 @@ class IProcess
68
68
  end
69
69
 
70
70
  #
71
- # @param [#recv] listener
72
- # The listener.
71
+ # @param [#recv] obj
72
+ # An object that will receive a msg.
73
73
  #
74
74
  # @return [void]
75
75
  #
76
- def defer(listener)
76
+ def report_to(obj)
77
77
  Thread.new do
78
78
  Process.wait @pid
79
- listener.recv @channel.recv
79
+ obj.recv @channel.recv
80
80
  end
81
81
  end
82
82
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: iprocess
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.1.1
4
+ version: 3.0.0
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-06-03 00:00:00.000000000 Z
12
+ date: 2012-09-05 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: yard
@@ -75,8 +75,7 @@ dependencies:
75
75
  - - ~>
76
76
  - !ruby/object:Gem::Version
77
77
  version: 0.9.2
78
- description: A set of classes you can use to transport ruby objects between processes
79
- on UNIX-like operating systems.
78
+ description: Transport Ruby objects between processes on UNIX-like operating systems
80
79
  email: rob@flowof.info
81
80
  executables: []
82
81
  extensions: []
@@ -119,8 +118,7 @@ rubyforge_project: ! '[none]'
119
118
  rubygems_version: 1.8.23
120
119
  signing_key:
121
120
  specification_version: 3
122
- summary: A set of classes you can use to transport ruby objects between processes
123
- on UNIX-like operating systems.
121
+ summary: Transport Ruby objects between processes on UNIX-like operating systems
124
122
  test_files:
125
123
  - test/setup.rb
126
124
  - test/test_IProcess_class.rb