asynchronous 4.0.0 → 4.0.1
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.
- checksums.yaml +4 -4
- data/README.md +14 -0
- data/VERSION +1 -1
- data/asynchronous.gemspec +10 -14
- metadata +6 -5
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 4bf14fe182e7ef88175dc68683a6cd185a705461
|
4
|
+
data.tar.gz: 298a59662661a01e0a1c2d71262c54b6b69d83cd
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: eae204f131b2ea2608bf5eec0efd4e7bfccc8ec5c2af06befb59ecaad3aa4affa7ddc6213c0c7a075f6a7d3506147b62345b7c7b57b05638d4829a536ea496b8
|
7
|
+
data.tar.gz: 16823176dcfcbc7e89b8758a1d9dc3d6cc6946a34f2b5c0ad7448e8b349eb070b41f8a83f5ce2fa5ef158adad0f936947ccae803081c788fe698b66ac1acce37
|
data/README.md
CHANGED
@@ -10,6 +10,20 @@ for example csv transformation
|
|
10
10
|
|
11
11
|
### Example
|
12
12
|
|
13
|
+
#### Basic usage
|
14
|
+
|
15
|
+
```ruby
|
16
|
+
require 'asynchronous'
|
17
|
+
|
18
|
+
thr = Asynchronous::Thread.new do
|
19
|
+
"some expensive work"
|
20
|
+
end
|
21
|
+
|
22
|
+
thr.value #> "some expensive work"
|
23
|
+
```
|
24
|
+
|
25
|
+
|
26
|
+
#### With Syntax Sugar
|
13
27
|
```ruby
|
14
28
|
require 'asynchronous/core_ext'
|
15
29
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
4.0.
|
1
|
+
4.0.1
|
data/asynchronous.gemspec
CHANGED
@@ -1,22 +1,18 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
require File.expand_path(File.join(File.dirname(__FILE__),"files.rb"))
|
1
|
+
require File.expand_path(File.join(File.dirname(__FILE__), 'files.rb'))
|
4
2
|
|
5
3
|
### Specification for the new Gem
|
6
4
|
Gem::Specification.new do |spec|
|
7
|
-
|
8
|
-
spec.
|
9
|
-
spec.
|
10
|
-
spec.
|
11
|
-
spec.
|
12
|
-
spec.
|
13
|
-
spec.
|
14
|
-
spec.
|
15
|
-
#spec.license = "MIT"
|
5
|
+
spec.name = 'asynchronous'
|
6
|
+
spec.version = File.open(File.join(File.dirname(__FILE__), 'VERSION')).read.split("\n")[0].chomp.delete(' ')
|
7
|
+
spec.authors = ['Adam Luzsi']
|
8
|
+
spec.email = ['adamluzsi@gmail.com']
|
9
|
+
spec.description = 'Thread like interface for Kernel fork for parallel programming in MRI ruby. Anti zombi process following included'
|
10
|
+
spec.summary = 'Thread like interface for Kernel fork for parallel programming in MRI ruby'
|
11
|
+
spec.homepage = 'https://github.com/adamluzsi/asynchronous'
|
12
|
+
spec.license = "MIT"
|
16
13
|
|
17
14
|
spec.files = SpecFiles
|
18
15
|
spec.executables = spec.files.grep(%r{^bin/}) { |f| File.basename(f) }
|
19
16
|
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
|
20
|
-
spec.require_paths = [
|
21
|
-
|
17
|
+
spec.require_paths = ['lib']
|
22
18
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: asynchronous
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 4.0.
|
4
|
+
version: 4.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Luzsi
|
@@ -10,8 +10,8 @@ bindir: bin
|
|
10
10
|
cert_chain: []
|
11
11
|
date: 2018-01-26 00:00:00.000000000 Z
|
12
12
|
dependencies: []
|
13
|
-
description:
|
14
|
-
|
13
|
+
description: Thread like interface for Kernel fork for parallel programming in MRI
|
14
|
+
ruby. Anti zombi process following included
|
15
15
|
email:
|
16
16
|
- adamluzsi@gmail.com
|
17
17
|
executables: []
|
@@ -37,7 +37,8 @@ files:
|
|
37
37
|
- spec/spec_helper.rb
|
38
38
|
- t.rb
|
39
39
|
homepage: https://github.com/adamluzsi/asynchronous
|
40
|
-
licenses:
|
40
|
+
licenses:
|
41
|
+
- MIT
|
41
42
|
metadata: {}
|
42
43
|
post_install_message:
|
43
44
|
rdoc_options: []
|
@@ -58,7 +59,7 @@ rubyforge_project:
|
|
58
59
|
rubygems_version: 2.6.13
|
59
60
|
signing_key:
|
60
61
|
specification_version: 4
|
61
|
-
summary:
|
62
|
+
summary: Thread like interface for Kernel fork for parallel programming in MRI ruby
|
62
63
|
test_files:
|
63
64
|
- spec/asynchronous/thread_spec.rb
|
64
65
|
- spec/spec_helper.rb
|