aw 0.1.11 → 0.1.12

Sign up to get free protection for your applications and to get access to all the features.
Files changed (6) hide show
  1. checksums.yaml +4 -4
  2. data/LICENSE.md +1 -1
  3. data/README.md +4 -10
  4. data/lib/aw.rb +1 -1
  5. data/lib/aw/fork.rb +2 -2
  6. metadata +53 -25
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: cef162831a9fd5958fa3123864f9db07d313f4a851b5738ce0f8bf171b12a570
4
- data.tar.gz: 012f7e21a4a6282d4b998df713916509b7d34e4806d305c8878b1771833fc43f
3
+ metadata.gz: 82f2e2afc9696e62695257eba13de54c57617c9010b159a6c3cf06c6b9a532c7
4
+ data.tar.gz: 590c6a707c82d901ba98deaf74bd7e67ee8a11cec073a0e805cc70d237f09f31
5
5
  SHA512:
6
- metadata.gz: ca3c0e6bb8c8fbf4ca45dc57d966cf4b5ca738f3d17936ceb055719b4e58ede5591c4a7208878ff8f0380dfad9d587f9dfd4ceed0d7135c82a3d1d9f9ff3ab62
7
- data.tar.gz: 56152493f8c66f8b6316d0e12bafb8aaeda33c589a0fc2723cb2fa2767c705df5c4823436beab82a284a70adee6cdb90f938561ffed9244866705b3d7d014c88
6
+ metadata.gz: b7b22077b6f5ee1f082255226d4abf8bf5104c616df19efec6c9b04f1ca7ebf8644fbd5f0e3666950b8ccead2d958a2956bda5b22751f26a27e18cc8bd0aa5e0
7
+ data.tar.gz: 1696982963c47a63199069744faef8f6fe96b592f9fb052f188a6d81f6113d277230beed5b3fe8e4b182b03e7550a7246a31737c0dd7021df99894a8412f7508
data/LICENSE.md CHANGED
@@ -1,6 +1,6 @@
1
1
  The MIT License (MIT)
2
2
 
3
- Copyright (c) 2015-2020 Cyril Kato
3
+ Copyright (c) 2015-2021 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
@@ -15,7 +15,7 @@ Creates a subprocess to execute a block inside.
15
15
  Add this line to your application's Gemfile:
16
16
 
17
17
  ```ruby
18
- gem 'aw'
18
+ gem "aw"
19
19
  ```
20
20
 
21
21
  And then execute:
@@ -37,9 +37,9 @@ Aw.fork! { 6 * 7 } # => 42
37
37
  Of course, it prevents from side effects:
38
38
 
39
39
  ```ruby
40
- arr = ['foo']
40
+ arr = ["foo"]
41
41
 
42
- Aw.fork! { arr << 'FUU' } # => ["foo", "FUU"]
42
+ Aw.fork! { arr << "FUU" } # => ["foo", "FUU"]
43
43
 
44
44
  arr # => ["foo"]
45
45
  ```
@@ -52,13 +52,7 @@ Aw.fork! { nil + 1 } # => NoMethodError (undefined method `+' for nil:NilClass)
52
52
 
53
53
  ## Contact
54
54
 
55
- * Home page: https://github.com/fixrb/aw
56
- * Bugs/issues: https://github.com/fixrb/aw/issues
57
-
58
- ## Rubies
59
-
60
- * [MRI](https://www.ruby-lang.org/)
61
- * [Rubinius](https://rubinius.com/)
55
+ * Source code: https://github.com/fixrb/aw
62
56
 
63
57
  ## Versioning
64
58
 
data/lib/aw.rb CHANGED
@@ -17,4 +17,4 @@ module Aw
17
17
  end
18
18
  end
19
19
 
20
- require_relative File.join('aw', 'fork')
20
+ require_relative File.join("aw", "fork")
data/lib/aw/fork.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  # frozen_string_literal: true
2
2
 
3
- require 'English'
3
+ require "English"
4
4
 
5
5
  module Aw
6
6
  # The Fork class.
@@ -11,7 +11,7 @@ module Aw
11
11
  # @param write [IO] The write endpoint.
12
12
  def initialize(read, write)
13
13
  # Currently, not available on all platforms.
14
- raise ::NotImplementedError, 'fork()' unless ::Process.respond_to?(:fork)
14
+ raise ::NotImplementedError, "fork()" unless ::Process.respond_to?(:fork)
15
15
 
16
16
  @read = read
17
17
  @write = write
metadata CHANGED
@@ -1,57 +1,57 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: aw
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.11
4
+ version: 0.1.12
5
5
  platform: ruby
6
6
  authors:
7
7
  - Cyril Kato
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2020-01-09 00:00:00.000000000 Z
11
+ date: 2021-05-13 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ">="
18
18
  - !ruby/object:Gem::Version
19
- version: '2.1'
19
+ version: '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: '2.1'
26
+ version: '0'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: rake
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ">="
32
32
  - !ruby/object:Gem::Version
33
- version: '13.0'
33
+ version: '0'
34
34
  type: :development
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ">="
39
39
  - !ruby/object:Gem::Version
40
- version: '13.0'
40
+ version: '0'
41
41
  - !ruby/object:Gem::Dependency
42
- name: rubocop
42
+ name: rubocop-md
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - "~>"
45
+ - - ">="
46
46
  - !ruby/object:Gem::Version
47
- version: '0.79'
47
+ version: '0'
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.79'
54
+ version: '0'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rubocop-performance
57
57
  requirement: !ruby/object:Gem::Requirement
@@ -66,34 +66,62 @@ dependencies:
66
66
  - - ">="
67
67
  - !ruby/object:Gem::Version
68
68
  version: '0'
69
+ - !ruby/object:Gem::Dependency
70
+ name: rubocop-rake
71
+ requirement: !ruby/object:Gem::Requirement
72
+ requirements:
73
+ - - ">="
74
+ - !ruby/object:Gem::Version
75
+ version: '0'
76
+ type: :development
77
+ prerelease: false
78
+ version_requirements: !ruby/object:Gem::Requirement
79
+ requirements:
80
+ - - ">="
81
+ - !ruby/object:Gem::Version
82
+ version: '0'
83
+ - !ruby/object:Gem::Dependency
84
+ name: rubocop-thread_safety
85
+ requirement: !ruby/object:Gem::Requirement
86
+ requirements:
87
+ - - ">="
88
+ - !ruby/object:Gem::Version
89
+ version: '0'
90
+ type: :development
91
+ prerelease: false
92
+ version_requirements: !ruby/object:Gem::Requirement
93
+ requirements:
94
+ - - ">="
95
+ - !ruby/object:Gem::Version
96
+ version: '0'
69
97
  - !ruby/object:Gem::Dependency
70
98
  name: simplecov
71
99
  requirement: !ruby/object:Gem::Requirement
72
100
  requirements:
73
- - - "~>"
101
+ - - ">="
74
102
  - !ruby/object:Gem::Version
75
- version: '0.17'
103
+ version: '0'
76
104
  type: :development
77
105
  prerelease: false
78
106
  version_requirements: !ruby/object:Gem::Requirement
79
107
  requirements:
80
- - - "~>"
108
+ - - ">="
81
109
  - !ruby/object:Gem::Version
82
- version: '0.17'
110
+ version: '0'
83
111
  - !ruby/object:Gem::Dependency
84
112
  name: yard
85
113
  requirement: !ruby/object:Gem::Requirement
86
114
  requirements:
87
- - - "~>"
115
+ - - ">="
88
116
  - !ruby/object:Gem::Version
89
- version: '0.9'
117
+ version: '0'
90
118
  type: :development
91
119
  prerelease: false
92
120
  version_requirements: !ruby/object:Gem::Requirement
93
121
  requirements:
94
- - - "~>"
122
+ - - ">="
95
123
  - !ruby/object:Gem::Version
96
- version: '0.9'
124
+ version: '0'
97
125
  description: Creates a subprocess to execute a block inside.
98
126
  email: contact@cyril.email
99
127
  executables: []
@@ -116,14 +144,14 @@ required_ruby_version: !ruby/object:Gem::Requirement
116
144
  requirements:
117
145
  - - ">="
118
146
  - !ruby/object:Gem::Version
119
- version: '0'
147
+ version: 2.7.0
120
148
  required_rubygems_version: !ruby/object:Gem::Requirement
121
149
  requirements:
122
150
  - - ">="
123
151
  - !ruby/object:Gem::Version
124
152
  version: '0'
125
153
  requirements: []
126
- rubygems_version: 3.1.2
154
+ rubygems_version: 3.1.4
127
155
  signing_key:
128
156
  specification_version: 4
129
157
  summary: "Aw, fork! \U0001F62C"