dispatch 0.0.1pre → 0.0.1
Sign up to get free protection for your applications and to get access to all the features.
- data/README.rdoc +6 -1
- data/Rakefile +15 -0
- data/dispatch.gemspec +2 -0
- data/lib/dispatch/version.rb +1 -1
- data/spec/dispatch.mspec +3 -0
- data/spec/enumerable_spec.rb +1 -1
- data/spec/job_spec.rb +1 -1
- data/spec/proxy_spec.rb +1 -1
- data/spec/queue_spec.rb +1 -1
- data/spec/source_spec.rb +1 -1
- data/spec/spec_helper.rb +1 -1
- metadata +28 -13
data/README.rdoc
CHANGED
@@ -667,4 +667,9 @@ At the moment, this is best done by reading the {existing C documentation for GC
|
|
667
667
|
$ macri Dispatch::Group
|
668
668
|
$ macri Dispatch::Semaphore
|
669
669
|
|
670
|
-
However, feel free to {file bugs}[https://www.macruby.org/auth/login/?next=/trac/newticket] about additional documentation you would like to see.
|
670
|
+
However, feel free to {file bugs}[https://www.macruby.org/auth/login/?next=/trac/newticket] about additional documentation you would like to see.
|
671
|
+
|
672
|
+
= Development
|
673
|
+
|
674
|
+
Gemified by {Arthur Gunn}[mailto:arthur@gunn.co.nz].
|
675
|
+
To contribute - please fork, commit, pull request, bonus points for tests. Have a play and report bugs, request features via the issue tracker.
|
data/Rakefile
CHANGED
@@ -1,2 +1,17 @@
|
|
1
1
|
require 'bundler'
|
2
2
|
Bundler::GemHelper.install_tasks
|
3
|
+
|
4
|
+
namespace :spec do
|
5
|
+
DISPATCH_MSPEC = "./spec/dispatch.mspec"
|
6
|
+
DEFAULT_OPTIONS = "-B #{DISPATCH_MSPEC}"
|
7
|
+
|
8
|
+
def mspec(type, options, env = nil)
|
9
|
+
sh "mspec #{type} #{DEFAULT_OPTIONS} #{ENV['opts']} #{options}"
|
10
|
+
end
|
11
|
+
|
12
|
+
desc "Run all specs. To run a specific file: rake spec:run[spec/queue_spec.rb]"
|
13
|
+
task :run, :file do |t, args|
|
14
|
+
mspec :run, args[:file] || "spec"
|
15
|
+
end
|
16
|
+
|
17
|
+
end
|
data/dispatch.gemspec
CHANGED
@@ -13,6 +13,8 @@ Gem::Specification.new do |s|
|
|
13
13
|
s.description = %q{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.}
|
14
14
|
|
15
15
|
s.rubyforge_project = "dispatch"
|
16
|
+
|
17
|
+
s.add_development_dependency "mspec", "~>1.5.0"
|
16
18
|
|
17
19
|
s.files = `git ls-files`.split("\n")
|
18
20
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
data/lib/dispatch/version.rb
CHANGED
data/spec/dispatch.mspec
ADDED
data/spec/enumerable_spec.rb
CHANGED
data/spec/job_spec.rb
CHANGED
data/spec/proxy_spec.rb
CHANGED
data/spec/queue_spec.rb
CHANGED
data/spec/source_spec.rb
CHANGED
data/spec/spec_helper.rb
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: dispatch
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
5
|
-
prerelease:
|
4
|
+
hash: 29
|
5
|
+
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
9
|
+
- 1
|
10
|
+
version: 0.0.1
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Arthur Gunn
|
@@ -15,10 +15,25 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2010-12-
|
18
|
+
date: 2010-12-15 00:00:00 +13:00
|
19
19
|
default_executable:
|
20
|
-
dependencies:
|
21
|
-
|
20
|
+
dependencies:
|
21
|
+
- !ruby/object:Gem::Dependency
|
22
|
+
name: mspec
|
23
|
+
prerelease: false
|
24
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
25
|
+
none: false
|
26
|
+
requirements:
|
27
|
+
- - ~>
|
28
|
+
- !ruby/object:Gem::Version
|
29
|
+
hash: 3
|
30
|
+
segments:
|
31
|
+
- 1
|
32
|
+
- 5
|
33
|
+
- 0
|
34
|
+
version: 1.5.0
|
35
|
+
type: :development
|
36
|
+
version_requirements: *id001
|
22
37
|
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
38
|
email:
|
24
39
|
- arthur@gunn.co.nz
|
@@ -48,6 +63,7 @@ files:
|
|
48
63
|
- lib/dispatch/queue.rb
|
49
64
|
- lib/dispatch/source.rb
|
50
65
|
- lib/dispatch/version.rb
|
66
|
+
- spec/dispatch.mspec
|
51
67
|
- spec/enumerable_spec.rb
|
52
68
|
- spec/job_spec.rb
|
53
69
|
- spec/proxy_spec.rb
|
@@ -75,14 +91,12 @@ required_ruby_version: !ruby/object:Gem::Requirement
|
|
75
91
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
76
92
|
none: false
|
77
93
|
requirements:
|
78
|
-
- - "
|
94
|
+
- - ">="
|
79
95
|
- !ruby/object:Gem::Version
|
80
|
-
hash:
|
96
|
+
hash: 3
|
81
97
|
segments:
|
82
|
-
-
|
83
|
-
|
84
|
-
- 1
|
85
|
-
version: 1.3.1
|
98
|
+
- 0
|
99
|
+
version: "0"
|
86
100
|
requirements: []
|
87
101
|
|
88
102
|
rubyforge_project: dispatch
|
@@ -91,6 +105,7 @@ signing_key:
|
|
91
105
|
specification_version: 3
|
92
106
|
summary: Dispatch is a MacRuby wrapper around Mac OS X's Grand Central Dispatch.
|
93
107
|
test_files:
|
108
|
+
- spec/dispatch.mspec
|
94
109
|
- spec/enumerable_spec.rb
|
95
110
|
- spec/job_spec.rb
|
96
111
|
- spec/proxy_spec.rb
|