dispatch 0.0.1pre
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.
- data/.gitignore +4 -0
- data/Gemfile +4 -0
- data/Gemfile.lock +14 -0
- data/README.rdoc +670 -0
- data/Rakefile +2 -0
- data/dispatch.gemspec +21 -0
- data/examples/benchmarks.rb +90 -0
- data/examples/dispatch_methods.rb +277 -0
- data/examples/dispatch_methods.sh +5 -0
- data/examples/futures.rb +34 -0
- data/examples/ring_buffer.rb +95 -0
- data/examples/sleeping_barber.rb +19 -0
- data/lib/dispatch.rb +22 -0
- data/lib/dispatch/enumerable.rb +108 -0
- data/lib/dispatch/job.rb +52 -0
- data/lib/dispatch/proxy.rb +49 -0
- data/lib/dispatch/queue.rb +34 -0
- data/lib/dispatch/source.rb +83 -0
- data/lib/dispatch/version.rb +3 -0
- data/spec/enumerable_spec.rb +188 -0
- data/spec/job_spec.rb +103 -0
- data/spec/proxy_spec.rb +105 -0
- data/spec/queue_spec.rb +45 -0
- data/spec/source_spec.rb +190 -0
- data/spec/spec_helper.rb +60 -0
- metadata +99 -0
metadata
ADDED
@@ -0,0 +1,99 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: dispatch
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
hash: 543297571
|
5
|
+
prerelease: true
|
6
|
+
segments:
|
7
|
+
- 0
|
8
|
+
- 0
|
9
|
+
- 1pre
|
10
|
+
version: 0.0.1pre
|
11
|
+
platform: ruby
|
12
|
+
authors:
|
13
|
+
- Arthur Gunn
|
14
|
+
autorequire:
|
15
|
+
bindir: bin
|
16
|
+
cert_chain: []
|
17
|
+
|
18
|
+
date: 2010-12-10 00:00:00 +13:00
|
19
|
+
default_executable:
|
20
|
+
dependencies: []
|
21
|
+
|
22
|
+
description: Grand Central Dispatch is natively implemented as a C API and runtime engine. This gem provides a MacRuby wrapper around that API and allows Ruby to very easily take advantage of GCD to run tasks in parrallel and do calculations asynchronously with queues automatically mapping to threads as needed.
|
23
|
+
email:
|
24
|
+
- arthur@gunn.co.nz
|
25
|
+
executables: []
|
26
|
+
|
27
|
+
extensions: []
|
28
|
+
|
29
|
+
extra_rdoc_files: []
|
30
|
+
|
31
|
+
files:
|
32
|
+
- .gitignore
|
33
|
+
- Gemfile
|
34
|
+
- Gemfile.lock
|
35
|
+
- README.rdoc
|
36
|
+
- Rakefile
|
37
|
+
- dispatch.gemspec
|
38
|
+
- examples/benchmarks.rb
|
39
|
+
- examples/dispatch_methods.rb
|
40
|
+
- examples/dispatch_methods.sh
|
41
|
+
- examples/futures.rb
|
42
|
+
- examples/ring_buffer.rb
|
43
|
+
- examples/sleeping_barber.rb
|
44
|
+
- lib/dispatch.rb
|
45
|
+
- lib/dispatch/enumerable.rb
|
46
|
+
- lib/dispatch/job.rb
|
47
|
+
- lib/dispatch/proxy.rb
|
48
|
+
- lib/dispatch/queue.rb
|
49
|
+
- lib/dispatch/source.rb
|
50
|
+
- lib/dispatch/version.rb
|
51
|
+
- spec/enumerable_spec.rb
|
52
|
+
- spec/job_spec.rb
|
53
|
+
- spec/proxy_spec.rb
|
54
|
+
- spec/queue_spec.rb
|
55
|
+
- spec/source_spec.rb
|
56
|
+
- spec/spec_helper.rb
|
57
|
+
has_rdoc: true
|
58
|
+
homepage: https://github.com/gunn/dispatch
|
59
|
+
licenses: []
|
60
|
+
|
61
|
+
post_install_message:
|
62
|
+
rdoc_options: []
|
63
|
+
|
64
|
+
require_paths:
|
65
|
+
- lib
|
66
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
67
|
+
none: false
|
68
|
+
requirements:
|
69
|
+
- - ">="
|
70
|
+
- !ruby/object:Gem::Version
|
71
|
+
hash: 3
|
72
|
+
segments:
|
73
|
+
- 0
|
74
|
+
version: "0"
|
75
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
|
+
none: false
|
77
|
+
requirements:
|
78
|
+
- - ">"
|
79
|
+
- !ruby/object:Gem::Version
|
80
|
+
hash: 25
|
81
|
+
segments:
|
82
|
+
- 1
|
83
|
+
- 3
|
84
|
+
- 1
|
85
|
+
version: 1.3.1
|
86
|
+
requirements: []
|
87
|
+
|
88
|
+
rubyforge_project: dispatch
|
89
|
+
rubygems_version: 1.3.7
|
90
|
+
signing_key:
|
91
|
+
specification_version: 3
|
92
|
+
summary: Dispatch is a MacRuby wrapper around Mac OS X's Grand Central Dispatch.
|
93
|
+
test_files:
|
94
|
+
- spec/enumerable_spec.rb
|
95
|
+
- spec/job_spec.rb
|
96
|
+
- spec/proxy_spec.rb
|
97
|
+
- spec/queue_spec.rb
|
98
|
+
- spec/source_spec.rb
|
99
|
+
- spec/spec_helper.rb
|