aw 0.1.5 → 0.1.6
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/.travis.yml +1 -0
- data/LICENSE.md +1 -1
- data/README.md +2 -2
- data/VERSION.semver +1 -1
- data/aw.gemspec +2 -2
- data/checksum/aw-0.1.5.gem.sha512 +1 -0
- data/lib/aw/fork.rb +3 -0
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 396995473ce2e9b2705efebc0e732579c2016976f5ee29d64c3ae374a8388b3c
|
4
|
+
data.tar.gz: f1216ba5cb65ba697c64a0cc186ae6a1dc2a9df5fb34d6efa2b2f321da01f29e
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 331e42d1177b7550d73fdb665fa94fcda432513cc8fbf9484aa9909d1e21cbb3f874f4fc6135024760bb26b486d03d602dc4b02297b806c8e3ac8d3fa4275195
|
7
|
+
data.tar.gz: 6e13bd1aaf2893b8807c1f5f2426e9a5ce0130f152cc90267b17a47e08d792c390fec6542eca214e09cf981294ba6ff9e63866981d08f1539c462d9e9bc1d5e7
|
data/.travis.yml
CHANGED
data/LICENSE.md
CHANGED
data/README.md
CHANGED
@@ -39,13 +39,13 @@ Or install it yourself as:
|
|
39
39
|
|
40
40
|
## Usage
|
41
41
|
|
42
|
-
|
42
|
+
It executes the block in a subprocess, and returns the result in the current process:
|
43
43
|
|
44
44
|
```ruby
|
45
45
|
Aw.fork! { 6 * 7 } # => 42
|
46
46
|
```
|
47
47
|
|
48
|
-
|
48
|
+
Of course, it prevents from side effects:
|
49
49
|
|
50
50
|
```ruby
|
51
51
|
arr = ['foo']
|
data/VERSION.semver
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.6
|
data/aw.gemspec
CHANGED
@@ -16,9 +16,9 @@ Gem::Specification.new do |spec|
|
|
16
16
|
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
|
17
17
|
spec.require_paths = ['lib']
|
18
18
|
|
19
|
-
spec.add_development_dependency 'bundler', '~>
|
19
|
+
spec.add_development_dependency 'bundler', '~> 2.0'
|
20
20
|
spec.add_development_dependency 'rake', '~> 12.3'
|
21
|
-
spec.add_development_dependency 'rubocop', '~> 0.
|
21
|
+
spec.add_development_dependency 'rubocop', '~> 0.67'
|
22
22
|
spec.add_development_dependency 'simplecov', '~> 0.16'
|
23
23
|
spec.add_development_dependency 'yard', '~> 0.9'
|
24
24
|
end
|
@@ -0,0 +1 @@
|
|
1
|
+
ab4cd0b855ea49e690d67b742793dee8d31682cd0aa570bc0a15651217d87b32e7dc5a41cab7dddf56d492afe5f7ea85e5cd1982361b77686ece29abdd770df0
|
data/lib/aw/fork.rb
CHANGED
@@ -8,6 +8,9 @@ module Aw
|
|
8
8
|
# @param read [IO] The read endpoint.
|
9
9
|
# @param write [IO] The write endpoint.
|
10
10
|
def initialize(read, write)
|
11
|
+
# Currently, not available on all platforms.
|
12
|
+
raise 'fork() unimplemented' unless Process.respond_to?(:fork)
|
13
|
+
|
11
14
|
@read = read
|
12
15
|
@write = write
|
13
16
|
end
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: aw
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.6
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Cyril Kato
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2019-04-12 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -16,14 +16,14 @@ dependencies:
|
|
16
16
|
requirements:
|
17
17
|
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '
|
19
|
+
version: '2.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
24
|
- - "~>"
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version: '
|
26
|
+
version: '2.0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -44,14 +44,14 @@ dependencies:
|
|
44
44
|
requirements:
|
45
45
|
- - "~>"
|
46
46
|
- !ruby/object:Gem::Version
|
47
|
-
version: '0.
|
47
|
+
version: '0.67'
|
48
48
|
type: :development
|
49
49
|
prerelease: false
|
50
50
|
version_requirements: !ruby/object:Gem::Requirement
|
51
51
|
requirements:
|
52
52
|
- - "~>"
|
53
53
|
- !ruby/object:Gem::Version
|
54
|
-
version: '0.
|
54
|
+
version: '0.67'
|
55
55
|
- !ruby/object:Gem::Dependency
|
56
56
|
name: simplecov
|
57
57
|
requirement: !ruby/object:Gem::Requirement
|
@@ -104,6 +104,7 @@ files:
|
|
104
104
|
- checksum/aw-0.1.2.gem.sha512
|
105
105
|
- checksum/aw-0.1.3.gem.sha512
|
106
106
|
- checksum/aw-0.1.4.gem.sha512
|
107
|
+
- checksum/aw-0.1.5.gem.sha512
|
107
108
|
- lib/aw.rb
|
108
109
|
- lib/aw/fork.rb
|
109
110
|
- pkg_checksum
|
@@ -126,8 +127,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
126
127
|
- !ruby/object:Gem::Version
|
127
128
|
version: '0'
|
128
129
|
requirements: []
|
129
|
-
|
130
|
-
rubygems_version: 2.7.6
|
130
|
+
rubygems_version: 3.0.1
|
131
131
|
signing_key:
|
132
132
|
specification_version: 4
|
133
133
|
summary: Aw, fork!
|