ruby-libgearman 0.10.2
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/CHANGELOG +98 -0
- data/LICENSE +26 -0
- data/Manifest +9 -0
- data/README +18 -0
- data/Rakefile +43 -0
- data/ext/extconf.rb +20 -0
- data/ext/gearman.c +4756 -0
- data/release.rb +34 -0
- data/ruby-libgearman.gemspec +33 -0
- data/test_client.rb +36 -0
- data.tar.gz.sig +0 -0
- metadata +95 -0
- metadata.gz.sig +0 -0
data/release.rb
ADDED
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
# -*- mode: ruby; c-basic-offset: 2; indent-tabs-mode: nil; -*-
|
|
2
|
+
# vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
|
|
3
|
+
# gearman-interface: Interface Wrappers for Gearman
|
|
4
|
+
# Copyright (c) 2009 Monty Taylor
|
|
5
|
+
# All rights reserved.
|
|
6
|
+
#
|
|
7
|
+
# Redistribution and use in source and binary forms, with or without
|
|
8
|
+
# modification, are permitted provided that the following conditions are met:
|
|
9
|
+
#
|
|
10
|
+
# 1. Redistributions of source code must retain the above copyright
|
|
11
|
+
# notice, this list of conditions and the following disclaimer.
|
|
12
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
|
13
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
14
|
+
# documentation and/or other materials provided with the distribution.
|
|
15
|
+
# 3. The name of the author may not be used to endorse or promote products
|
|
16
|
+
# derived from this software without specific prior written permission.
|
|
17
|
+
#
|
|
18
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
19
|
+
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
20
|
+
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
21
|
+
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
22
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
23
|
+
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
24
|
+
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
25
|
+
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
26
|
+
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
27
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
28
|
+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
29
|
+
|
|
30
|
+
class LibgearmanRelease
|
|
31
|
+
def self.version
|
|
32
|
+
return "0.10.2"
|
|
33
|
+
end
|
|
34
|
+
end
|
|
@@ -0,0 +1,33 @@
|
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
|
2
|
+
|
|
3
|
+
Gem::Specification.new do |s|
|
|
4
|
+
s.name = %q{ruby-libgearman}
|
|
5
|
+
s.version = "0.10.2"
|
|
6
|
+
|
|
7
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
|
|
8
|
+
s.authors = ["Monty Taylor"]
|
|
9
|
+
s.cert_chain = ["/home/mordred/.gnupg/gem-public_cert.pem"]
|
|
10
|
+
s.date = %q{2009-10-23}
|
|
11
|
+
s.description = %q{These are the ruby wrappers for libgearman which can be used to provide Gearman Workers and to connect as Gearman Clients.}
|
|
12
|
+
s.email = %q{mordred@inaugust.com}
|
|
13
|
+
s.extensions = ["ext/extconf.rb"]
|
|
14
|
+
s.extra_rdoc_files = ["CHANGELOG", "LICENSE", "README", "ext/extconf.rb", "ext/gearman.c"]
|
|
15
|
+
s.files = ["CHANGELOG", "LICENSE", "Manifest", "README", "Rakefile", "ext/extconf.rb", "ext/gearman.c", "release.rb", "test_client.rb", "ruby-libgearman.gemspec"]
|
|
16
|
+
s.homepage = %q{http://launchpad.net/gearman-interface}
|
|
17
|
+
s.rdoc_options = ["--line-numbers", "--inline-source", "--title", "Ruby-libgearman", "--main", "README"]
|
|
18
|
+
s.require_paths = ["lib", "ext"]
|
|
19
|
+
s.rubyforge_project = %q{ruby-libgearman}
|
|
20
|
+
s.rubygems_version = %q{1.3.5}
|
|
21
|
+
s.signing_key = %q{/home/mordred/.gnupg/gem-private_key.pem}
|
|
22
|
+
s.summary = %q{An interface to the libgearman C client.}
|
|
23
|
+
|
|
24
|
+
if s.respond_to? :specification_version then
|
|
25
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
|
26
|
+
s.specification_version = 3
|
|
27
|
+
|
|
28
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
|
29
|
+
else
|
|
30
|
+
end
|
|
31
|
+
else
|
|
32
|
+
end
|
|
33
|
+
end
|
data/test_client.rb
ADDED
|
@@ -0,0 +1,36 @@
|
|
|
1
|
+
#!/usr/bin/env ruby
|
|
2
|
+
# -*- mode: ruby; c-basic-offset: 2; indent-tabs-mode: nil; -*-
|
|
3
|
+
# vim:expandtab:shiftwidth=2:tabstop=2:smarttab:
|
|
4
|
+
# gearman-interface: Interface Wrappers for Gearman
|
|
5
|
+
# Copyright (c) 2009 Monty Taylor
|
|
6
|
+
# All rights reserved.
|
|
7
|
+
#
|
|
8
|
+
# Redistribution and use in source and binary forms, with or without
|
|
9
|
+
# modification, are permitted provided that the following conditions are met:
|
|
10
|
+
#
|
|
11
|
+
# 1. Redistributions of source code must retain the above copyright
|
|
12
|
+
# notice, this list of conditions and the following disclaimer.
|
|
13
|
+
# 2. Redistributions in binary form must reproduce the above copyright
|
|
14
|
+
# notice, this list of conditions and the following disclaimer in the
|
|
15
|
+
# documentation and/or other materials provided with the distribution.
|
|
16
|
+
# 3. The name of the author may not be used to endorse or promote products
|
|
17
|
+
# derived from this software without specific prior written permission.
|
|
18
|
+
#
|
|
19
|
+
# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
|
|
20
|
+
# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
|
|
21
|
+
# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
|
|
22
|
+
# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR
|
|
23
|
+
# CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL,
|
|
24
|
+
# EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO,
|
|
25
|
+
# PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR
|
|
26
|
+
# PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF
|
|
27
|
+
# LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING
|
|
28
|
+
# NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
|
|
29
|
+
# SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
|
30
|
+
|
|
31
|
+
require 'ext/gearman'
|
|
32
|
+
|
|
33
|
+
client = Gearman::Client.new
|
|
34
|
+
client.add_server('localhost')
|
|
35
|
+
puts client.do('worker_func', 'Hello World!')
|
|
36
|
+
|
data.tar.gz.sig
ADDED
|
Binary file
|
metadata
ADDED
|
@@ -0,0 +1,95 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: ruby-libgearman
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.10.2
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
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SsYMxWJyabKZGdAq+QYVNvcPE
|
|
26
|
+
sBX5uZ+2A6LYfMJGX5p99dSIDb2izbjdUQRPWZCLR2Ro301PpM+Wydu14mIRbtqL
|
|
27
|
+
Vy3eOfN3fYwwg+Aw2PcrtrpIkVSUh7YCRRvpjHyUqwaplI/Cj5aZ7ohuiGNSMLYU
|
|
28
|
+
3BfnaV11O7/lYYS1GKV1l3b7DZVLUHdpxw+3kd+JieEqQCanUdI3VwD51m+fVGue
|
|
29
|
+
EfeK40R/ajQlso1gGvAgVrLb+fG63yybVk3R+yWhVyNryzQ0y/s1JFZWopucMzCO
|
|
30
|
+
JGdcSyZsTrRURg==
|
|
31
|
+
-----END CERTIFICATE-----
|
|
32
|
+
|
|
33
|
+
date: 2009-10-23 00:00:00 -07:00
|
|
34
|
+
default_executable:
|
|
35
|
+
dependencies: []
|
|
36
|
+
|
|
37
|
+
description: These are the ruby wrappers for libgearman which can be used to provide Gearman Workers and to connect as Gearman Clients.
|
|
38
|
+
email: mordred@inaugust.com
|
|
39
|
+
executables: []
|
|
40
|
+
|
|
41
|
+
extensions:
|
|
42
|
+
- ext/extconf.rb
|
|
43
|
+
extra_rdoc_files:
|
|
44
|
+
- CHANGELOG
|
|
45
|
+
- LICENSE
|
|
46
|
+
- README
|
|
47
|
+
- ext/extconf.rb
|
|
48
|
+
- ext/gearman.c
|
|
49
|
+
files:
|
|
50
|
+
- CHANGELOG
|
|
51
|
+
- LICENSE
|
|
52
|
+
- Manifest
|
|
53
|
+
- README
|
|
54
|
+
- Rakefile
|
|
55
|
+
- ext/extconf.rb
|
|
56
|
+
- ext/gearman.c
|
|
57
|
+
- release.rb
|
|
58
|
+
- test_client.rb
|
|
59
|
+
- ruby-libgearman.gemspec
|
|
60
|
+
has_rdoc: true
|
|
61
|
+
homepage: http://launchpad.net/gearman-interface
|
|
62
|
+
licenses: []
|
|
63
|
+
|
|
64
|
+
post_install_message:
|
|
65
|
+
rdoc_options:
|
|
66
|
+
- --line-numbers
|
|
67
|
+
- --inline-source
|
|
68
|
+
- --title
|
|
69
|
+
- Ruby-libgearman
|
|
70
|
+
- --main
|
|
71
|
+
- README
|
|
72
|
+
require_paths:
|
|
73
|
+
- lib
|
|
74
|
+
- ext
|
|
75
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
76
|
+
requirements:
|
|
77
|
+
- - ">="
|
|
78
|
+
- !ruby/object:Gem::Version
|
|
79
|
+
version: "0"
|
|
80
|
+
version:
|
|
81
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
82
|
+
requirements:
|
|
83
|
+
- - ">="
|
|
84
|
+
- !ruby/object:Gem::Version
|
|
85
|
+
version: "1.2"
|
|
86
|
+
version:
|
|
87
|
+
requirements: []
|
|
88
|
+
|
|
89
|
+
rubyforge_project: ruby-libgearman
|
|
90
|
+
rubygems_version: 1.3.5
|
|
91
|
+
signing_key:
|
|
92
|
+
specification_version: 3
|
|
93
|
+
summary: An interface to the libgearman C client.
|
|
94
|
+
test_files: []
|
|
95
|
+
|
metadata.gz.sig
ADDED
|
Binary file
|