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/CHANGELOG
ADDED
|
@@ -0,0 +1,98 @@
|
|
|
1
|
+
32 Monty Taylor 2009-10-22
|
|
2
|
+
Ported in files from drizzle-interface and memcached-interface regarding ruby build.
|
|
3
|
+
|
|
4
|
+
31 Monty Taylor 2009-09-29 [merge]
|
|
5
|
+
Merged eday from lp:~eday/gearman-interface/eday-dev
|
|
6
|
+
|
|
7
|
+
30 Monty Taylor 2009-08-31
|
|
8
|
+
Fixed a typo.
|
|
9
|
+
|
|
10
|
+
29 Monty Taylor 2009-08-24
|
|
11
|
+
Bumped version to 0.0.4
|
|
12
|
+
|
|
13
|
+
28 Monty Taylor 2009-08-24
|
|
14
|
+
Updated python3 setup.py classifiers to not suck.
|
|
15
|
+
|
|
16
|
+
27 Monty Taylor 2009-08-24 {0.0.3}
|
|
17
|
+
Bumped number to 0.0.3
|
|
18
|
+
|
|
19
|
+
26 Monty Taylor 2009-08-24
|
|
20
|
+
Better non-copying behavior.
|
|
21
|
+
|
|
22
|
+
25 Monty Taylor 2009-08-24
|
|
23
|
+
Added python3 support.
|
|
24
|
+
|
|
25
|
+
24 Monty Taylor 2009-08-24 {0.0.2}
|
|
26
|
+
Removed generated file.
|
|
27
|
+
|
|
28
|
+
23 Monty Taylor 2009-08-24
|
|
29
|
+
pandora-build v0.51
|
|
30
|
+
|
|
31
|
+
22 Monty Taylor 2009-08-21
|
|
32
|
+
Removed generated ChangeLog.
|
|
33
|
+
|
|
34
|
+
21 Monty Taylor 2009-08-21
|
|
35
|
+
Added ChangeLog prehook
|
|
36
|
+
|
|
37
|
+
20 Monty Taylor 2009-08-21
|
|
38
|
+
pandora-build v0.48
|
|
39
|
+
Fixed build deps stuff for python build.
|
|
40
|
+
|
|
41
|
+
19 Monty Taylor 2009-08-21
|
|
42
|
+
Changed worker callback interface to receive a job object instead.
|
|
43
|
+
|
|
44
|
+
18 Monty Taylor 2009-08-21
|
|
45
|
+
Fixed the README file.
|
|
46
|
+
|
|
47
|
+
17 Monty Taylor 2009-08-18
|
|
48
|
+
Bumped version.
|
|
49
|
+
|
|
50
|
+
16 Monty Taylor 2009-08-18 {0.0.1}
|
|
51
|
+
Release 0.0.1 to PyPI.
|
|
52
|
+
|
|
53
|
+
15 Monty Taylor 2009-08-06
|
|
54
|
+
Added in ifdef for 2.6 api call
|
|
55
|
+
|
|
56
|
+
14 Monty Taylor 2009-07-27
|
|
57
|
+
Removed all but the double-rename of register.
|
|
58
|
+
|
|
59
|
+
13 Monty Taylor 2009-07-27
|
|
60
|
+
Made do and register behave properly.
|
|
61
|
+
|
|
62
|
+
12 Monty Taylor 2009-07-26
|
|
63
|
+
pandora-build v0.24
|
|
64
|
+
|
|
65
|
+
11 Monty Taylor 2009-07-25
|
|
66
|
+
Um - high. Let's not free the callback function after just one invocation, mkay?
|
|
67
|
+
|
|
68
|
+
10 Monty Taylor 2009-07-25
|
|
69
|
+
Added missing files.
|
|
70
|
+
|
|
71
|
+
9 Monty Taylor 2009-07-24
|
|
72
|
+
pandora-build v0.23
|
|
73
|
+
|
|
74
|
+
8 Monty Taylor 2009-07-24
|
|
75
|
+
pandora-build v0.22
|
|
76
|
+
|
|
77
|
+
7 Monty Taylor 2009-07-24
|
|
78
|
+
First tiny stab at ruby. It doesn't work- but it compiles.
|
|
79
|
+
|
|
80
|
+
6 Monty Taylor 2009-07-24
|
|
81
|
+
Changed generated code to C.
|
|
82
|
+
|
|
83
|
+
5 Monty Taylor 2009-07-24
|
|
84
|
+
Client and worker now work. Added test scripts.
|
|
85
|
+
|
|
86
|
+
4 Monty Taylor 2009-07-22
|
|
87
|
+
Client _might_ work now too.
|
|
88
|
+
|
|
89
|
+
3 Monty Taylor 2009-07-22
|
|
90
|
+
Adding some client.
|
|
91
|
+
|
|
92
|
+
2 Monty Taylor 2009-07-21
|
|
93
|
+
Added rpath file - needed with lib-prefix.m4
|
|
94
|
+
|
|
95
|
+
1 Monty Taylor 2009-07-21
|
|
96
|
+
Python worker initial import.
|
|
97
|
+
|
|
98
|
+
Use --include-merges or -n0 to see merged revisions.
|
data/LICENSE
ADDED
|
@@ -0,0 +1,26 @@
|
|
|
1
|
+
Copyright (c) 2009 Monty Taylor
|
|
2
|
+
All rights reserved.
|
|
3
|
+
|
|
4
|
+
Redistribution and use in source and binary forms, with or without
|
|
5
|
+
modification, are permitted provided that the following conditions
|
|
6
|
+
are met:
|
|
7
|
+
1. Redistributions of source code must retain the above copyright
|
|
8
|
+
notice, this list of conditions and the following disclaimer.
|
|
9
|
+
2. Redistributions in binary form must reproduce the above copyright
|
|
10
|
+
notice, this list of conditions and the following disclaimer in the
|
|
11
|
+
documentation and/or other materials provided with the distribution.
|
|
12
|
+
3. Neither the name of the University nor the names of its contributors
|
|
13
|
+
may be used to endorse or promote products derived from this software
|
|
14
|
+
without specific prior written permission.
|
|
15
|
+
|
|
16
|
+
THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
|
|
17
|
+
ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
|
18
|
+
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
|
|
19
|
+
ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
|
|
20
|
+
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
|
21
|
+
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
|
|
22
|
+
OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
|
|
23
|
+
HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
|
|
24
|
+
LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
|
|
25
|
+
OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
|
|
26
|
+
SUCH DAMAGE.
|
data/Manifest
ADDED
data/README
ADDED
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
These are the ruby wrappers for libgearman which can be used to connect
|
|
2
|
+
to Gearman.
|
|
3
|
+
|
|
4
|
+
The C source here is generated from SWIG. That, as well as the larger build
|
|
5
|
+
process of which it is a part and from which this source package is derived
|
|
6
|
+
can be checked out from launchpad via:
|
|
7
|
+
|
|
8
|
+
bzr branch lp:gearman-interface
|
|
9
|
+
|
|
10
|
+
If you just want to build/install this without doing developement on the C code,
|
|
11
|
+
then this source dir is all you need. If you want to develop on the C bindings
|
|
12
|
+
themselves, then you'll need the full gearman-interface source tree.
|
|
13
|
+
|
|
14
|
+
You will need to install echoe from gem:
|
|
15
|
+
|
|
16
|
+
gem install echoe
|
|
17
|
+
|
|
18
|
+
From that point, rake compile should do the trick.
|
data/Rakefile
ADDED
|
@@ -0,0 +1,43 @@
|
|
|
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
|
+
require 'rubygems'
|
|
31
|
+
require 'echoe'
|
|
32
|
+
require 'release'
|
|
33
|
+
|
|
34
|
+
Echoe.new("ruby-libgearman") do |p|
|
|
35
|
+
p.author = "Monty Taylor"
|
|
36
|
+
p.email = "mordred@inaugust.com"
|
|
37
|
+
p.project = "ruby-libgearman"
|
|
38
|
+
p.version = LibgearmanRelease::version
|
|
39
|
+
p.summary = "An interface to the libgearman C client."
|
|
40
|
+
p.description = "These are the ruby wrappers for libgearman which can be used to provide Gearman Workers and to connect as Gearman Clients."
|
|
41
|
+
p.url = "http://launchpad.net/gearman-interface"
|
|
42
|
+
p.ignore_pattern = "release.rb.in"
|
|
43
|
+
end
|
data/ext/extconf.rb
ADDED
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
require 'mkmf'
|
|
2
|
+
|
|
3
|
+
HERE = File.expand_path(File.dirname(__FILE__))
|
|
4
|
+
|
|
5
|
+
$CPPFLAGS = $CFLAGS = $LDFLAGS = ""
|
|
6
|
+
$LDFLAGS = " -L/usr/local/lib -lstdc++ -lm -lc -lgcc_s"
|
|
7
|
+
|
|
8
|
+
if ENV['DEBUG']
|
|
9
|
+
puts "Setting debug flags for gem."
|
|
10
|
+
$CPPFLAGS << " -O0 -g"
|
|
11
|
+
else
|
|
12
|
+
$CPPFLAGS << "-O4"
|
|
13
|
+
end
|
|
14
|
+
|
|
15
|
+
if have_header('libgearman/gearman.h')
|
|
16
|
+
if have_library('gearman','gearman_version')
|
|
17
|
+
create_makefile 'gearman'
|
|
18
|
+
end
|
|
19
|
+
end
|
|
20
|
+
|