nanomsg 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- metadata +7 -9
- data/ext/Makefile +0 -218
- data/ext/mkmf.log +0 -22
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: nanomsg
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.1
|
5
5
|
prerelease:
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
@@ -25,19 +25,17 @@ files:
|
|
25
25
|
- HISTORY
|
26
26
|
- LICENSE
|
27
27
|
- README
|
28
|
-
- lib/nanomsg/pair_socket.rb
|
29
|
-
- lib/nanomsg.rb
|
30
|
-
- ext/constants.c
|
31
|
-
- ext/constants.h
|
32
|
-
- ext/extconf.rb
|
33
|
-
- ext/init.c
|
34
|
-
- ext/Makefile
|
35
|
-
- ext/mkmf.log
|
36
28
|
- examples/aborting.rb
|
37
29
|
- examples/bus.rb
|
38
30
|
- examples/bus_device.rb
|
39
31
|
- examples/pair.rb
|
40
32
|
- examples/roundtrip_latency.rb
|
33
|
+
- ext/constants.c
|
34
|
+
- ext/constants.h
|
35
|
+
- ext/extconf.rb
|
36
|
+
- ext/init.c
|
37
|
+
- lib/nanomsg.rb
|
38
|
+
- lib/nanomsg/pair_socket.rb
|
41
39
|
- spec/lib/nanomsg/bus_spec.rb
|
42
40
|
- spec/lib/nanomsg/device_spec.rb
|
43
41
|
- spec/lib/nanomsg/pair_socket_spec.rb
|
data/ext/Makefile
DELETED
@@ -1,218 +0,0 @@
|
|
1
|
-
|
2
|
-
SHELL = /bin/sh
|
3
|
-
|
4
|
-
# V=0 quiet, V=1 verbose. other values don't work.
|
5
|
-
V = 0
|
6
|
-
Q1 = $(V:1=)
|
7
|
-
Q = $(Q1:0=@)
|
8
|
-
n=$(NULLCMD)
|
9
|
-
ECHO1 = $(V:1=@$n)
|
10
|
-
ECHO = $(ECHO1:0=@echo)
|
11
|
-
|
12
|
-
#### Start of system configuration section. ####
|
13
|
-
|
14
|
-
srcdir = .
|
15
|
-
topdir = /Users/kschiess/.rvm/rubies/ruby-1.9.3-p392-turbo/include/ruby-1.9.1
|
16
|
-
hdrdir = /Users/kschiess/.rvm/rubies/ruby-1.9.3-p392-turbo/include/ruby-1.9.1
|
17
|
-
arch_hdrdir = /Users/kschiess/.rvm/rubies/ruby-1.9.3-p392-turbo/include/ruby-1.9.1/$(arch)
|
18
|
-
VPATH = $(srcdir):$(arch_hdrdir)/ruby:$(hdrdir)/ruby
|
19
|
-
prefix = $(DESTDIR)/Users/kschiess/.rvm/rubies/ruby-1.9.3-p392-turbo
|
20
|
-
rubylibprefix = $(libdir)/$(RUBY_BASE_NAME)
|
21
|
-
exec_prefix = $(prefix)
|
22
|
-
vendorhdrdir = $(rubyhdrdir)/vendor_ruby
|
23
|
-
sitehdrdir = $(rubyhdrdir)/site_ruby
|
24
|
-
rubyhdrdir = $(includedir)/$(RUBY_BASE_NAME)-$(ruby_version)
|
25
|
-
vendordir = $(rubylibprefix)/vendor_ruby
|
26
|
-
sitedir = $(rubylibprefix)/site_ruby
|
27
|
-
ridir = $(datarootdir)/$(RI_BASE_NAME)
|
28
|
-
mandir = $(datarootdir)/man
|
29
|
-
localedir = $(datarootdir)/locale
|
30
|
-
libdir = $(exec_prefix)/lib
|
31
|
-
psdir = $(docdir)
|
32
|
-
pdfdir = $(docdir)
|
33
|
-
dvidir = $(docdir)
|
34
|
-
htmldir = $(docdir)
|
35
|
-
infodir = $(datarootdir)/info
|
36
|
-
docdir = $(datarootdir)/doc/$(PACKAGE)
|
37
|
-
oldincludedir = $(DESTDIR)/usr/include
|
38
|
-
includedir = $(prefix)/include
|
39
|
-
localstatedir = $(prefix)/var
|
40
|
-
sharedstatedir = $(prefix)/com
|
41
|
-
sysconfdir = $(prefix)/etc
|
42
|
-
datadir = $(datarootdir)
|
43
|
-
datarootdir = $(prefix)/share
|
44
|
-
libexecdir = $(exec_prefix)/libexec
|
45
|
-
sbindir = $(exec_prefix)/sbin
|
46
|
-
bindir = $(exec_prefix)/bin
|
47
|
-
rubylibdir = $(rubylibprefix)/$(ruby_version)
|
48
|
-
archdir = $(rubylibdir)/$(arch)
|
49
|
-
sitelibdir = $(sitedir)/$(ruby_version)
|
50
|
-
sitearchdir = $(sitelibdir)/$(sitearch)
|
51
|
-
vendorlibdir = $(vendordir)/$(ruby_version)
|
52
|
-
vendorarchdir = $(vendorlibdir)/$(sitearch)
|
53
|
-
|
54
|
-
NULLCMD = :
|
55
|
-
|
56
|
-
CC = /usr/local/bin/gcc-4.2
|
57
|
-
CXX = g++
|
58
|
-
LIBRUBY = $(LIBRUBY_SO)
|
59
|
-
LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
|
60
|
-
LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
|
61
|
-
LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
|
62
|
-
empty =
|
63
|
-
OUTFLAG = -o $(empty)
|
64
|
-
COUTFLAG = -o $(empty)
|
65
|
-
|
66
|
-
RUBY_EXTCONF_H =
|
67
|
-
cflags = $(optflags) $(debugflags) $(warnflags)
|
68
|
-
optflags = -O3
|
69
|
-
debugflags = -ggdb
|
70
|
-
warnflags = -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration
|
71
|
-
CFLAGS = -fno-common $(cflags) -fno-common -pipe $(ARCH_FLAG)
|
72
|
-
INCFLAGS = -I. -I$(arch_hdrdir) -I$(hdrdir)/ruby/backward -I$(hdrdir) -I$(srcdir)
|
73
|
-
DEFS =
|
74
|
-
CPPFLAGS = -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE $(DEFS) $(cppflags) -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include
|
75
|
-
CXXFLAGS = $(CFLAGS) $(cxxflags)
|
76
|
-
ldflags = -L. -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib
|
77
|
-
dldflags = -Wl,-undefined,dynamic_lookup -Wl,-multiply_defined,suppress -Wl,-flat_namespace -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib
|
78
|
-
ARCH_FLAG =
|
79
|
-
DLDFLAGS = $(ldflags) $(dldflags) $(ARCH_FLAG)
|
80
|
-
LDSHARED = $(CC) -dynamic -bundle
|
81
|
-
LDSHAREDXX = $(CXX) -dynamic -bundle
|
82
|
-
AR = ar
|
83
|
-
EXEEXT =
|
84
|
-
|
85
|
-
RUBY_BASE_NAME = ruby
|
86
|
-
RUBY_INSTALL_NAME = ruby
|
87
|
-
RUBY_SO_NAME = ruby.1.9.1
|
88
|
-
arch = x86_64-darwin12.3.0
|
89
|
-
sitearch = $(arch)
|
90
|
-
ruby_version = 1.9.1
|
91
|
-
ruby = /Users/kschiess/.rvm/rubies/ruby-1.9.3-p392-turbo/bin/ruby
|
92
|
-
RUBY = $(ruby)
|
93
|
-
RM = rm -f
|
94
|
-
RM_RF = $(RUBY) -run -e rm -- -rf
|
95
|
-
RMDIRS = rmdir -p
|
96
|
-
MAKEDIRS = mkdir -p
|
97
|
-
INSTALL = /usr/bin/install -c
|
98
|
-
INSTALL_PROG = $(INSTALL) -m 0755
|
99
|
-
INSTALL_DATA = $(INSTALL) -m 644
|
100
|
-
COPY = cp
|
101
|
-
TOUCH = exit >
|
102
|
-
|
103
|
-
#### End of system configuration section. ####
|
104
|
-
|
105
|
-
preload =
|
106
|
-
|
107
|
-
libpath = . $(libdir) /usr/local/opt/libyaml/lib /usr/local/opt/readline/lib /usr/local/opt/libxml2/lib /usr/local/opt/libxslt/lib /usr/local/opt/libksba/lib /usr/local/opt/openssl/lib /usr/local/opt/sqlite/lib
|
108
|
-
LIBPATH = -L. -L$(libdir) -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib
|
109
|
-
DEFFILE =
|
110
|
-
|
111
|
-
CLEANFILES = mkmf.log
|
112
|
-
DISTCLEANFILES =
|
113
|
-
DISTCLEANDIRS =
|
114
|
-
|
115
|
-
extout =
|
116
|
-
extout_prefix =
|
117
|
-
target_prefix =
|
118
|
-
LOCAL_LIBS =
|
119
|
-
LIBS = $(LIBRUBYARG_SHARED) -lnanomsg -lpthread -ldl -lobjc
|
120
|
-
SRCS = constants.c init.c
|
121
|
-
OBJS = constants.o init.o
|
122
|
-
TARGET = nanomsg
|
123
|
-
DLLIB = $(TARGET).bundle
|
124
|
-
EXTSTATIC =
|
125
|
-
STATIC_LIB =
|
126
|
-
|
127
|
-
BINDIR = $(bindir)
|
128
|
-
RUBYCOMMONDIR = $(sitedir)$(target_prefix)
|
129
|
-
RUBYLIBDIR = $(sitelibdir)$(target_prefix)
|
130
|
-
RUBYARCHDIR = $(sitearchdir)$(target_prefix)
|
131
|
-
HDRDIR = $(rubyhdrdir)/ruby$(target_prefix)
|
132
|
-
ARCHHDRDIR = $(rubyhdrdir)/$(arch)/ruby$(target_prefix)
|
133
|
-
|
134
|
-
TARGET_SO = $(DLLIB)
|
135
|
-
CLEANLIBS = $(TARGET).bundle
|
136
|
-
CLEANOBJS = *.o *.bak
|
137
|
-
|
138
|
-
all: $(DLLIB)
|
139
|
-
static: $(STATIC_LIB)
|
140
|
-
.PHONY: all install static install-so install-rb
|
141
|
-
.PHONY: clean clean-so clean-rb
|
142
|
-
|
143
|
-
clean-static::
|
144
|
-
clean-rb-default::
|
145
|
-
clean-rb::
|
146
|
-
clean-so::
|
147
|
-
clean: clean-so clean-static clean-rb-default clean-rb
|
148
|
-
-$(Q)$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES) .*.time
|
149
|
-
|
150
|
-
distclean-rb-default::
|
151
|
-
distclean-rb::
|
152
|
-
distclean-so::
|
153
|
-
distclean: clean distclean-so distclean-rb-default distclean-rb
|
154
|
-
@-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
|
155
|
-
@-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
|
156
|
-
@-$(RMDIRS) $(DISTCLEANDIRS) 2> /dev/null || true
|
157
|
-
|
158
|
-
realclean: distclean
|
159
|
-
install: install-so install-rb
|
160
|
-
|
161
|
-
install-so: $(RUBYARCHDIR)/$(DLLIB)
|
162
|
-
$(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
|
163
|
-
-$(Q)$(MAKEDIRS) $(@D)
|
164
|
-
$(INSTALL_PROG) $(DLLIB) $(@D)
|
165
|
-
clean-static::
|
166
|
-
-$(Q)$(RM) $(STATIC_LIB)
|
167
|
-
install-rb: pre-install-rb install-rb-default
|
168
|
-
install-rb-default: pre-install-rb-default
|
169
|
-
pre-install-rb: Makefile
|
170
|
-
pre-install-rb-default: Makefile
|
171
|
-
pre-install-rb-default:
|
172
|
-
$(ECHO) installing default nanomsg libraries
|
173
|
-
./.RUBYARCHDIR.time:
|
174
|
-
$(Q) $(MAKEDIRS) $(RUBYARCHDIR)
|
175
|
-
$(Q) $(TOUCH) $@
|
176
|
-
|
177
|
-
site-install: site-install-so site-install-rb
|
178
|
-
site-install-so: install-so
|
179
|
-
site-install-rb: install-rb
|
180
|
-
|
181
|
-
.SUFFIXES: .c .m .cc .mm .cxx .cpp .C .o
|
182
|
-
|
183
|
-
.cc.o:
|
184
|
-
$(ECHO) compiling $(<)
|
185
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
186
|
-
|
187
|
-
.mm.o:
|
188
|
-
$(ECHO) compiling $(<)
|
189
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
190
|
-
|
191
|
-
.cxx.o:
|
192
|
-
$(ECHO) compiling $(<)
|
193
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
194
|
-
|
195
|
-
.cpp.o:
|
196
|
-
$(ECHO) compiling $(<)
|
197
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
198
|
-
|
199
|
-
.C.o:
|
200
|
-
$(ECHO) compiling $(<)
|
201
|
-
$(Q) $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) $(COUTFLAG)$@ -c $<
|
202
|
-
|
203
|
-
.c.o:
|
204
|
-
$(ECHO) compiling $(<)
|
205
|
-
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
206
|
-
|
207
|
-
.m.o:
|
208
|
-
$(ECHO) compiling $(<)
|
209
|
-
$(Q) $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) $(COUTFLAG)$@ -c $<
|
210
|
-
|
211
|
-
$(DLLIB): $(OBJS) Makefile
|
212
|
-
$(ECHO) linking shared-object $(DLLIB)
|
213
|
-
-$(Q)$(RM) $(@)
|
214
|
-
$(Q) $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
|
215
|
-
|
216
|
-
|
217
|
-
|
218
|
-
$(OBJS): $(hdrdir)/ruby.h $(hdrdir)/ruby/defines.h $(arch_hdrdir)/ruby/config.h
|
data/ext/mkmf.log
DELETED
@@ -1,22 +0,0 @@
|
|
1
|
-
have_library: checking for main() in -lnanomsg... -------------------- yes
|
2
|
-
|
3
|
-
"/usr/local/bin/gcc-4.2 -o conftest -I/Users/kschiess/.rvm/rubies/ruby-1.9.3-p392-turbo/include/ruby-1.9.1/x86_64-darwin12.3.0 -I/Users/kschiess/.rvm/rubies/ruby-1.9.3-p392-turbo/include/ruby-1.9.1/ruby/backward -I/Users/kschiess/.rvm/rubies/ruby-1.9.3-p392-turbo/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -fno-common -pipe conftest.c -L. -L/Users/kschiess/.rvm/rubies/ruby-1.9.3-p392-turbo/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L. -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lruby.1.9.1 -lpthread -ldl -lobjc "
|
4
|
-
checked program was:
|
5
|
-
/* begin */
|
6
|
-
1: #include "ruby.h"
|
7
|
-
2:
|
8
|
-
3: int main() {return 0;}
|
9
|
-
/* end */
|
10
|
-
|
11
|
-
"/usr/local/bin/gcc-4.2 -o conftest -I/Users/kschiess/.rvm/rubies/ruby-1.9.3-p392-turbo/include/ruby-1.9.1/x86_64-darwin12.3.0 -I/Users/kschiess/.rvm/rubies/ruby-1.9.3-p392-turbo/include/ruby-1.9.1/ruby/backward -I/Users/kschiess/.rvm/rubies/ruby-1.9.3-p392-turbo/include/ruby-1.9.1 -I. -D_XOPEN_SOURCE -D_DARWIN_C_SOURCE -I/usr/local/opt/libyaml/include -I/usr/local/opt/readline/include -I/usr/local/opt/libxml2/include -I/usr/local/opt/libxslt/include -I/usr/local/opt/libksba/include -I/usr/local/opt/openssl/include -I/usr/local/opt/sqlite/include -O3 -ggdb -Wall -Wextra -Wno-unused-parameter -Wno-parentheses -Wno-long-long -Wno-missing-field-initializers -Wpointer-arith -Wwrite-strings -Wdeclaration-after-statement -Wshorten-64-to-32 -Wimplicit-function-declaration -fno-common -pipe conftest.c -L. -L/Users/kschiess/.rvm/rubies/ruby-1.9.3-p392-turbo/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -L. -L/usr/local/lib -L/usr/local/opt/libyaml/lib -L/usr/local/opt/readline/lib -L/usr/local/opt/libxml2/lib -L/usr/local/opt/libxslt/lib -L/usr/local/opt/libksba/lib -L/usr/local/opt/openssl/lib -L/usr/local/opt/sqlite/lib -lruby.1.9.1 -lnanomsg -lpthread -ldl -lobjc "
|
12
|
-
checked program was:
|
13
|
-
/* begin */
|
14
|
-
1: #include "ruby.h"
|
15
|
-
2:
|
16
|
-
3: /*top*/
|
17
|
-
4: int main() {return 0;}
|
18
|
-
5: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
|
19
|
-
/* end */
|
20
|
-
|
21
|
-
--------------------
|
22
|
-
|