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.
Files changed (5) hide show
  1. checksums.yaml +4 -4
  2. data/README.md +14 -0
  3. data/VERSION +1 -1
  4. data/asynchronous.gemspec +10 -14
  5. metadata +6 -5
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: b45ba44d151028eeee66d2cd93f6dccf1da66940
4
- data.tar.gz: 50e3542ab8a04221d7f3cef1cad1afd400fd2adb
3
+ metadata.gz: 4bf14fe182e7ef88175dc68683a6cd185a705461
4
+ data.tar.gz: 298a59662661a01e0a1c2d71262c54b6b69d83cd
5
5
  SHA512:
6
- metadata.gz: 8698c24aaf589aa730a168b15ec1803d9c4575325470a8799d31e2f2fdfc6efb07918a1d3e2d1d39317ceca7827c63a18df52407954df812ed7c71dff29f8ff0
7
- data.tar.gz: 81e768d82ad49ff3333ff7ba4b3b2f837c701077fc4a367d9d76adb34245feac5ee6d407b25970c2eafdb23250da2a1f35058b43f66a40a0ae6d6b1cca7acf9c
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.0
1
+ 4.0.1
@@ -1,22 +1,18 @@
1
- # coding: utf-8
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.name = "asynchronous"
9
- spec.version = File.open(File.join(File.dirname(__FILE__),"VERSION")).read.split("\n")[0].chomp.gsub(' ','')
10
- spec.authors = ["Adam Luzsi"]
11
- spec.email = ["adamluzsi@gmail.com"]
12
- spec.description = %q{DSL for for dead simple to use asynchronous patterns in both VM managed and OS managed way (Concurrency and Parallelism) }
13
- spec.summary = %q{Simple Async Based on standard CRuby}
14
- spec.homepage = "https://github.com/adamluzsi/asynchronous"
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 = ["lib"]
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.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: 'DSL for for dead simple to use asynchronous patterns in both VM managed
14
- and OS managed way (Concurrency and Parallelism) '
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: Simple Async Based on standard CRuby
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