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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: d4edf3c89904d22f23225c58e2fa39ea9db1be4622a73bc889c65ae341882df1
4
- data.tar.gz: 99afc75f7bf96b70b5f90e5c30a4a82c8d164a2c759d95865bfa4606166048f3
3
+ metadata.gz: 396995473ce2e9b2705efebc0e732579c2016976f5ee29d64c3ae374a8388b3c
4
+ data.tar.gz: f1216ba5cb65ba697c64a0cc186ae6a1dc2a9df5fb34d6efa2b2f321da01f29e
5
5
  SHA512:
6
- metadata.gz: 37f9fed2b4eb57624e8b4c300145effe5e1570cd5e3d1c7d3a659100ce29f0e1cd0f57496c10906fe1643c9c1ad6097bcbe601605d1f437bded2f696c5b1d351
7
- data.tar.gz: 25604751571be415208b707c6c921aebd16640e1f0a5a0a8596671a4aa16ba49da4cd44fbb82413bfbb2a5822584fd0dcbe37e20284372e43752e4107940893e
6
+ metadata.gz: 331e42d1177b7550d73fdb665fa94fcda432513cc8fbf9484aa9909d1e21cbb3f874f4fc6135024760bb26b486d03d602dc4b02297b806c8e3ac8d3fa4275195
7
+ data.tar.gz: 6e13bd1aaf2893b8807c1f5f2426e9a5ce0130f152cc90267b17a47e08d792c390fec6542eca214e09cf981294ba6ff9e63866981d08f1539c462d9e9bc1d5e7
@@ -10,6 +10,7 @@ rvm:
10
10
  - 2.3
11
11
  - 2.4
12
12
  - 2.5
13
+ - 2.6.1
13
14
  - ruby-head
14
15
  - jruby-head
15
16
  - rbx-3
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-2018 Cyril Kato
3
+ Copyright (c) 2015-2019 Cyril Kato
4
4
 
5
5
  Permission is hereby granted, free of charge, to any person obtaining a copy
6
6
  of this software and associated documentation files (the "Software"), to deal
data/README.md CHANGED
@@ -39,13 +39,13 @@ Or install it yourself as:
39
39
 
40
40
  ## Usage
41
41
 
42
- Execute & return the result:
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
- Prevent from side effects:
48
+ Of course, it prevents from side effects:
49
49
 
50
50
  ```ruby
51
51
  arr = ['foo']
@@ -1 +1 @@
1
- 0.1.5
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', '~> 1.16'
19
+ spec.add_development_dependency 'bundler', '~> 2.0'
20
20
  spec.add_development_dependency 'rake', '~> 12.3'
21
- spec.add_development_dependency 'rubocop', '~> 0.58'
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
@@ -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.5
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: 2018-08-29 00:00:00.000000000 Z
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: '1.16'
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: '1.16'
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.58'
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.58'
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
- rubyforge_project:
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!