ruby-binlog 0.1.2 → 0.1.3

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-binlog
3
3
  version: !ruby/object:Gem::Version
4
- hash: 31
4
+ hash: 29
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 2
10
- version: 0.1.2
9
+ - 3
10
+ version: 0.1.3
11
11
  platform: ruby
12
12
  authors:
13
13
  - winebarrel
@@ -28,38 +28,21 @@ extra_rdoc_files:
28
28
  - README
29
29
  files:
30
30
  - ext/ruby_binlog_xid_event.cpp
31
- - ext/ruby_binlog_int_var_event.o
32
- - ext/ruby_binlog.h
33
- - ext/ruby_binlog_unimplemented_event.o
34
31
  - ext/ruby_binlog_rotate_event.cpp
35
32
  - ext/ruby_binlog_format_event.cpp
36
- - ext/Makefile
37
- - ext/ruby_binlog_get_field_type_str.o
38
- - ext/ruby_binlog_format_event.o
39
- - ext/ruby_binlog_user_var_event.o
40
33
  - ext/ruby_binlog_user_var_event.cpp
41
- - ext/ruby_binlog_event.o
42
- - ext/ruby_binlog_event.h
43
- - ext/extconf.rb
44
34
  - ext/ruby_binlog.cpp
45
35
  - ext/ruby_binlog_table_map_event.cpp
46
- - ext/ruby_binlog_row_event.o
47
36
  - ext/ruby_binlog_get_field_type_str.cpp
48
- - ext/mkmf.log
49
37
  - ext/ruby_binlog_row_event.cpp
50
38
  - ext/ruby_binlog_event.cpp
51
39
  - ext/ruby_binlog_query_event.cpp
52
- - ext/ruby_binlog_incident_event.o
53
40
  - ext/ruby_binlog_unimplemented_event.cpp
54
- - ext/ruby_binlog_rotate_event.o
55
- - ext/ruby_binlog_xid_event.o
56
- - ext/ruby_binlog_query_event.o
57
- - ext/ruby_binlog.o
58
41
  - ext/ruby_binlog_int_var_event.cpp
59
- - ext/binlog.so
60
42
  - ext/ruby_binlog_incident_event.cpp
61
- - ext/ruby_binlog_table_map_event.o
62
- - ext/test.rb
43
+ - ext/ruby_binlog.h
44
+ - ext/ruby_binlog_event.h
45
+ - ext/extconf.rb
63
46
  - README
64
47
  homepage: https://bitbucket.org/winebarrel/ruby-binlog
65
48
  licenses: []
@@ -1,157 +0,0 @@
1
-
2
- SHELL = /bin/sh
3
-
4
- #### Start of system configuration section. ####
5
-
6
- srcdir = .
7
- topdir = /usr/lib64/ruby/1.8/x86_64-linux
8
- hdrdir = $(topdir)
9
- VPATH = $(srcdir):$(topdir):$(hdrdir)
10
- prefix = $(DESTDIR)/usr
11
- exec_prefix = $(DESTDIR)/usr
12
- localstatedir = $(DESTDIR)/var
13
- sysconfdir = $(DESTDIR)/etc
14
- includedir = $(DESTDIR)/usr/include
15
- sbindir = $(DESTDIR)/usr/sbin
16
- mandir = $(DESTDIR)/usr/share/man
17
- rubylibdir = $(vendordir)/$(ruby_version)
18
- sitedir = $(DESTDIR)/usr/lib/ruby/site_ruby
19
- localedir = $(datarootdir)/locale
20
- dvidir = $(docdir)
21
- docdir = $(datarootdir)/doc/$(PACKAGE)
22
- vendorarchdir = $(libdir)/ruby/$(ruby_version)/$(sitearch)
23
- sitelibdir = $(sitedir)/$(ruby_version)
24
- vendordir = $(DESTDIR)/usr/lib/ruby
25
- infodir = $(DESTDIR)/usr/share/info
26
- htmldir = $(docdir)
27
- pdfdir = $(docdir)
28
- psdir = $(docdir)
29
- sitearchdir = $(libdir)/ruby/site_ruby/$(ruby_version)/$(sitearch)
30
- vendorlibdir = $(vendordir)/$(ruby_version)
31
- datarootdir = $(prefix)/share
32
- oldincludedir = $(DESTDIR)/usr/include
33
- bindir = $(DESTDIR)/usr/bin
34
- libdir = $(DESTDIR)/usr/lib64
35
- sharedstatedir = $(DESTDIR)/var/lib
36
- archdir = $(libdir)/ruby/$(ruby_version)/$(sitearch)
37
- datadir = $(DESTDIR)/usr/share
38
- libexecdir = $(DESTDIR)/usr/libexec
39
-
40
- CC = gcc
41
- LIBRUBY = $(LIBRUBY_SO)
42
- LIBRUBY_A = lib$(RUBY_SO_NAME)-static.a
43
- LIBRUBYARG_SHARED = -l$(RUBY_SO_NAME)
44
- LIBRUBYARG_STATIC = -l$(RUBY_SO_NAME)-static
45
-
46
- RUBY_EXTCONF_H =
47
- CFLAGS = -fPIC -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fno-stack-protector -fPIC $(cflags)
48
- INCFLAGS = -I. -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I.
49
- DEFS =
50
- CPPFLAGS =
51
- CXXFLAGS = $(CFLAGS)
52
- ldflags = -L. -rdynamic -Wl,-export-dynamic
53
- dldflags =
54
- archflag =
55
- DLDFLAGS = $(ldflags) $(dldflags) $(archflag)
56
- LDSHARED = $(CC) -shared
57
- AR = ar
58
- EXEEXT =
59
-
60
- RUBY_INSTALL_NAME = ruby
61
- RUBY_SO_NAME = ruby
62
- arch = x86_64-linux
63
- sitearch = x86_64-linux
64
- ruby_version = 1.8
65
- ruby = /usr/bin/ruby
66
- RUBY = $(ruby)
67
- RM = rm -f
68
- MAKEDIRS = mkdir -p
69
- INSTALL = /usr/bin/install -c
70
- INSTALL_PROG = $(INSTALL) -m 0755
71
- INSTALL_DATA = $(INSTALL) -m 644
72
- COPY = cp
73
-
74
- #### End of system configuration section. ####
75
-
76
- preload =
77
-
78
- libpath = . $(libdir)
79
- LIBPATH = -L. -L$(libdir)
80
- DEFFILE =
81
-
82
- CLEANFILES = mkmf.log
83
- DISTCLEANFILES =
84
-
85
- extout =
86
- extout_prefix =
87
- target_prefix =
88
- LOCAL_LIBS =
89
- LIBS = $(LIBRUBYARG_SHARED) -lreplication -lstdc++ -lpthread -lrt -ldl -lcrypt -lm -lc
90
- SRCS = ruby_binlog_xid_event.cpp ruby_binlog_rotate_event.cpp ruby_binlog_format_event.cpp ruby_binlog_user_var_event.cpp ruby_binlog.cpp ruby_binlog_table_map_event.cpp ruby_binlog_get_field_type_str.cpp ruby_binlog_row_event.cpp ruby_binlog_event.cpp ruby_binlog_query_event.cpp ruby_binlog_unimplemented_event.cpp ruby_binlog_int_var_event.cpp ruby_binlog_incident_event.cpp
91
- OBJS = ruby_binlog_xid_event.o ruby_binlog_rotate_event.o ruby_binlog_format_event.o ruby_binlog_user_var_event.o ruby_binlog.o ruby_binlog_table_map_event.o ruby_binlog_get_field_type_str.o ruby_binlog_row_event.o ruby_binlog_event.o ruby_binlog_query_event.o ruby_binlog_unimplemented_event.o ruby_binlog_int_var_event.o ruby_binlog_incident_event.o
92
- TARGET = binlog
93
- DLLIB = $(TARGET).so
94
- EXTSTATIC =
95
- STATIC_LIB =
96
-
97
- BINDIR = $(bindir)
98
- RUBYCOMMONDIR = $(sitedir)$(target_prefix)
99
- RUBYLIBDIR = $(sitelibdir)$(target_prefix)
100
- RUBYARCHDIR = $(sitearchdir)$(target_prefix)
101
-
102
- TARGET_SO = $(DLLIB)
103
- CLEANLIBS = $(TARGET).so $(TARGET).il? $(TARGET).tds $(TARGET).map
104
- CLEANOBJS = *.o *.a *.s[ol] *.pdb *.exp *.bak
105
-
106
- all: $(DLLIB)
107
- static: $(STATIC_LIB)
108
-
109
- clean:
110
- @-$(RM) $(CLEANLIBS) $(CLEANOBJS) $(CLEANFILES)
111
-
112
- distclean: clean
113
- @-$(RM) Makefile $(RUBY_EXTCONF_H) conftest.* mkmf.log
114
- @-$(RM) core ruby$(EXEEXT) *~ $(DISTCLEANFILES)
115
-
116
- realclean: distclean
117
- install: install-so install-rb
118
-
119
- install-so: $(RUBYARCHDIR)
120
- install-so: $(RUBYARCHDIR)/$(DLLIB)
121
- $(RUBYARCHDIR)/$(DLLIB): $(DLLIB)
122
- $(INSTALL_PROG) $(DLLIB) $(RUBYARCHDIR)
123
- install-rb: pre-install-rb install-rb-default
124
- install-rb-default: pre-install-rb-default
125
- pre-install-rb: Makefile
126
- pre-install-rb-default: Makefile
127
- $(RUBYARCHDIR):
128
- $(MAKEDIRS) $@
129
-
130
- site-install: site-install-so site-install-rb
131
- site-install-so: install-so
132
- site-install-rb: install-rb
133
-
134
- .SUFFIXES: .c .m .cc .cxx .cpp .C .o
135
-
136
- .cc.o:
137
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
138
-
139
- .cxx.o:
140
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
141
-
142
- .cpp.o:
143
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
144
-
145
- .C.o:
146
- $(CXX) $(INCFLAGS) $(CPPFLAGS) $(CXXFLAGS) -c $<
147
-
148
- .c.o:
149
- $(CC) $(INCFLAGS) $(CPPFLAGS) $(CFLAGS) -c $<
150
-
151
- $(DLLIB): $(OBJS) Makefile
152
- @-$(RM) $@
153
- $(LDSHARED) -o $@ $(OBJS) $(LIBPATH) $(DLDFLAGS) $(LOCAL_LIBS) $(LIBS)
154
-
155
-
156
-
157
- $(OBJS): ruby.h defines.h
Binary file
@@ -1,24 +0,0 @@
1
- have_library: checking for main() in -lstdc++... -------------------- yes
2
-
3
- "gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fno-stack-protector -fPIC conftest.c -L. -L/usr/lib64 -L. -rdynamic -Wl,-export-dynamic -lruby -lstdc++ -lpthread -lrt -ldl -lcrypt -lm -lc"
4
- checked program was:
5
- /* begin */
6
- 1: /*top*/
7
- 2: int main() { return 0; }
8
- 3: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
9
- /* end */
10
-
11
- --------------------
12
-
13
- have_library: checking for main() in -lreplication... -------------------- yes
14
-
15
- "gcc -o conftest -I. -I/usr/lib64/ruby/1.8/x86_64-linux -I. -O2 -g -pipe -Wall -Wp,-D_FORTIFY_SOURCE=2 -fexceptions -fstack-protector --param=ssp-buffer-size=4 -m64 -mtune=generic -fno-strict-aliasing -fno-stack-protector -fPIC conftest.c -L. -L/usr/lib64 -L. -rdynamic -Wl,-export-dynamic -lstdc++ -lruby -lreplication -lstdc++ -lpthread -lrt -ldl -lcrypt -lm -lc"
16
- checked program was:
17
- /* begin */
18
- 1: /*top*/
19
- 2: int main() { return 0; }
20
- 3: int t() { void ((*volatile p)()); p = (void ((*)()))main; return 0; }
21
- /* end */
22
-
23
- --------------------
24
-
Binary file
Binary file
Binary file
Binary file
@@ -1,19 +0,0 @@
1
- #!/usr/bin/env ruby
2
- require "binlog"
3
-
4
- client = Binlog::Client.new("mysql://repl:repl@hastur")
5
- client.connect
6
- client.position = 4
7
-
8
- while event = client.wait_for_next_event
9
- case event
10
- when Binlog::QueryEvent
11
- puts event.query
12
- when Binlog::RowEvent
13
- puts event.event_type
14
- p event.columns
15
- p event.rows
16
- else
17
- puts "(#{event.event_type})"
18
- end
19
- end