ruby-binlog 0.1.7 → 0.1.8

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.
Files changed (3) hide show
  1. data/README +5 -2
  2. data/ext/ruby_binlog.cpp +28 -28
  3. metadata +15 -15
data/README CHANGED
@@ -25,6 +25,7 @@ gem install ruby-binlog
25
25
  master_log_pos = 4
26
26
 
27
27
  begin
28
+ # XXX: Do not reuse a client instance, after connection goes out.
28
29
  client = Binlog::Client.new("mysql://repl:repl@example.com")
29
30
  sleep 0.3 until client.connect
30
31
  client.set_position(master_log_file, master_log_pos)
@@ -56,7 +57,7 @@ gem install ruby-binlog
56
57
 
57
58
  == Notice
58
59
 
59
- The following type are not supported in row mode.
60
+ The following type are not supported in row mode.
60
61
 
61
62
  * DECIMAL
62
63
  * INT24
@@ -68,4 +69,6 @@ The following type are not supported in row mode.
68
69
  * SET
69
70
  * GEOMETRY
70
71
 
71
- see http://bazaar.launchpad.net/~mysql/mysql-replication-listener/trunk/view/head:/src/value.cpp#L310
72
+ see the following urls:
73
+ * http://bazaar.launchpad.net/~mysql/mysql-replication-listener/trunk/view/head:/src/value.cpp#L310
74
+ * https://bitbucket.org/winebarrel/ruby-binlog/downloads
data/ext/ruby_binlog.cpp CHANGED
@@ -359,34 +359,34 @@ void Init_binlog() {
359
359
  rb_cBinlogEvent = rb_define_class_under(rb_mBinlog, "Event", rb_cObject);
360
360
  rb_eBinlogError = rb_define_class_under(rb_mBinlog, "Error", rb_eRuntimeError);
361
361
 
362
- rb_define_const(rb_cBinlogEvent, "UNKNOWN_EVENT", INT2NUM(0));
363
- rb_define_const(rb_cBinlogEvent, "START_EVENT_V3", INT2NUM(1));
364
- rb_define_const(rb_cBinlogEvent, "QUERY_EVENT", INT2NUM(2));
365
- rb_define_const(rb_cBinlogEvent, "STOP_EVENT", INT2NUM(3));
366
- rb_define_const(rb_cBinlogEvent, "ROTATE_EVENT", INT2NUM(4));
367
- rb_define_const(rb_cBinlogEvent, "INTVAR_EVENT", INT2NUM(5));
368
- rb_define_const(rb_cBinlogEvent, "LOAD_EVENT", INT2NUM(6));
369
- rb_define_const(rb_cBinlogEvent, "SLAVE_EVENT", INT2NUM(7));
370
- rb_define_const(rb_cBinlogEvent, "CREATE_FILE_EVENT", INT2NUM(8));
371
- rb_define_const(rb_cBinlogEvent, "APPEND_BLOCK_EVENT", INT2NUM(9));
372
- rb_define_const(rb_cBinlogEvent, "EXEC_LOAD_EVENT", INT2NUM(10));
373
- rb_define_const(rb_cBinlogEvent, "DELETE_FILE_EVENT", INT2NUM(11));
374
- rb_define_const(rb_cBinlogEvent, "NEW_LOAD_EVENT", INT2NUM(12));
375
- rb_define_const(rb_cBinlogEvent, "RAND_EVENT", INT2NUM(13));
376
- rb_define_const(rb_cBinlogEvent, "USER_VAR_EVENT", INT2NUM(14));
377
- rb_define_const(rb_cBinlogEvent, "FORMAT_DESCRIPTION_EVENT", INT2NUM(15));
378
- rb_define_const(rb_cBinlogEvent, "XID_EVENT", INT2NUM(16));
379
- rb_define_const(rb_cBinlogEvent, "BEGIN_LOAD_QUERY_EVENT", INT2NUM(17));
380
- rb_define_const(rb_cBinlogEvent, "EXECUTE_LOAD_QUERY_EVENT", INT2NUM(18));
381
- rb_define_const(rb_cBinlogEvent, "TABLE_MAP_EVENT", INT2NUM(19));
382
- rb_define_const(rb_cBinlogEvent, "PRE_GA_WRITE_ROWS_EVENT", INT2NUM(20));
383
- rb_define_const(rb_cBinlogEvent, "PRE_GA_UPDATE_ROWS_EVENT", INT2NUM(21));
384
- rb_define_const(rb_cBinlogEvent, "PRE_GA_DELETE_ROWS_EVENT", INT2NUM(22));
385
- rb_define_const(rb_cBinlogEvent, "WRITE_ROWS_EVENT", INT2NUM(23));
386
- rb_define_const(rb_cBinlogEvent, "UPDATE_ROWS_EVENT", INT2NUM(24));
387
- rb_define_const(rb_cBinlogEvent, "DELETE_ROWS_EVENT", INT2NUM(25));
388
- rb_define_const(rb_cBinlogEvent, "INCIDENT_EVENT", INT2NUM(26));
389
- rb_define_const(rb_cBinlogEvent, "USER_DEFINED", INT2NUM(27));
362
+ rb_define_const(rb_cBinlogEvent, "UNKNOWN_EVENT", INT2NUM(UNKNOWN_EVENT));
363
+ rb_define_const(rb_cBinlogEvent, "START_EVENT_V3", INT2NUM(START_EVENT_V3));
364
+ rb_define_const(rb_cBinlogEvent, "QUERY_EVENT", INT2NUM(QUERY_EVENT));
365
+ rb_define_const(rb_cBinlogEvent, "STOP_EVENT", INT2NUM(STOP_EVENT));
366
+ rb_define_const(rb_cBinlogEvent, "ROTATE_EVENT", INT2NUM(ROTATE_EVENT));
367
+ rb_define_const(rb_cBinlogEvent, "INTVAR_EVENT", INT2NUM(INTVAR_EVENT));
368
+ rb_define_const(rb_cBinlogEvent, "LOAD_EVENT", INT2NUM(LOAD_EVENT));
369
+ rb_define_const(rb_cBinlogEvent, "SLAVE_EVENT", INT2NUM(SLAVE_EVENT));
370
+ rb_define_const(rb_cBinlogEvent, "CREATE_FILE_EVENT", INT2NUM(CREATE_FILE_EVENT));
371
+ rb_define_const(rb_cBinlogEvent, "APPEND_BLOCK_EVENT", INT2NUM(APPEND_BLOCK_EVENT));
372
+ rb_define_const(rb_cBinlogEvent, "EXEC_LOAD_EVENT", INT2NUM(EXEC_LOAD_EVENT));
373
+ rb_define_const(rb_cBinlogEvent, "DELETE_FILE_EVENT", INT2NUM(DELETE_FILE_EVENT));
374
+ rb_define_const(rb_cBinlogEvent, "NEW_LOAD_EVENT", INT2NUM(NEW_LOAD_EVENT));
375
+ rb_define_const(rb_cBinlogEvent, "RAND_EVENT", INT2NUM(RAND_EVENT));
376
+ rb_define_const(rb_cBinlogEvent, "USER_VAR_EVENT", INT2NUM(USER_VAR_EVENT));
377
+ rb_define_const(rb_cBinlogEvent, "FORMAT_DESCRIPTION_EVENT", INT2NUM(FORMAT_DESCRIPTION_EVENT));
378
+ rb_define_const(rb_cBinlogEvent, "XID_EVENT", INT2NUM(XID_EVENT));
379
+ rb_define_const(rb_cBinlogEvent, "BEGIN_LOAD_QUERY_EVENT", INT2NUM(BEGIN_LOAD_QUERY_EVENT));
380
+ rb_define_const(rb_cBinlogEvent, "EXECUTE_LOAD_QUERY_EVENT", INT2NUM(EXECUTE_LOAD_QUERY_EVENT));
381
+ rb_define_const(rb_cBinlogEvent, "TABLE_MAP_EVENT", INT2NUM(TABLE_MAP_EVENT));
382
+ rb_define_const(rb_cBinlogEvent, "PRE_GA_WRITE_ROWS_EVENT", INT2NUM(PRE_GA_WRITE_ROWS_EVENT));
383
+ rb_define_const(rb_cBinlogEvent, "PRE_GA_UPDATE_ROWS_EVENT", INT2NUM(PRE_GA_UPDATE_ROWS_EVENT));
384
+ rb_define_const(rb_cBinlogEvent, "PRE_GA_DELETE_ROWS_EVENT", INT2NUM(PRE_GA_DELETE_ROWS_EVENT));
385
+ rb_define_const(rb_cBinlogEvent, "WRITE_ROWS_EVENT", INT2NUM(WRITE_ROWS_EVENT));
386
+ rb_define_const(rb_cBinlogEvent, "UPDATE_ROWS_EVENT", INT2NUM(UPDATE_ROWS_EVENT));
387
+ rb_define_const(rb_cBinlogEvent, "DELETE_ROWS_EVENT", INT2NUM(DELETE_ROWS_EVENT));
388
+ rb_define_const(rb_cBinlogEvent, "INCIDENT_EVENT", INT2NUM(INCIDENT_EVENT));
389
+ rb_define_const(rb_cBinlogEvent, "USER_DEFINED", INT2NUM(USER_DEFINED));
390
390
 
391
391
  ruby::binlog::Client::init();
392
392
  ruby::binlog::QueryEvent::init();
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: 21
4
+ hash: 11
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 7
10
- version: 0.1.7
9
+ - 8
10
+ version: 0.1.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - winebarrel
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2012-11-16 00:00:00 Z
18
+ date: 2012-11-17 00:00:00 Z
19
19
  dependencies: []
20
20
 
21
21
  description: Ruby binding for MySQL Binary log API.
@@ -27,22 +27,22 @@ extensions:
27
27
  extra_rdoc_files:
28
28
  - README
29
29
  files:
30
- - ext/ruby_binlog_row_event.cpp
31
30
  - ext/ruby_binlog_incident_event.cpp
32
- - ext/ruby_binlog_table_map_event.cpp
33
- - ext/ruby_binlog_int_var_event.cpp
34
- - ext/ruby_binlog_query_event.cpp
35
- - ext/ruby_binlog_user_var_event.cpp
36
- - ext/ruby_binlog_format_event.cpp
37
- - ext/ruby_binlog_cast_to_tcp_driver.cpp
38
- - ext/ruby_binlog.cpp
39
- - ext/ruby_binlog_rotate_event.cpp
40
31
  - ext/ruby_binlog_xid_event.cpp
32
+ - ext/ruby_binlog.cpp
33
+ - ext/ruby_binlog_query_event.cpp
41
34
  - ext/ruby_binlog_event.cpp
35
+ - ext/ruby_binlog_format_event.cpp
36
+ - ext/ruby_binlog_row_event.cpp
42
37
  - ext/ruby_binlog_get_field_type_str.cpp
38
+ - ext/ruby_binlog_rotate_event.cpp
39
+ - ext/ruby_binlog_int_var_event.cpp
43
40
  - ext/ruby_binlog_unimplemented_event.cpp
44
- - ext/ruby_binlog.h
41
+ - ext/ruby_binlog_table_map_event.cpp
42
+ - ext/ruby_binlog_user_var_event.cpp
43
+ - ext/ruby_binlog_cast_to_tcp_driver.cpp
45
44
  - ext/ruby_binlog_event.h
45
+ - ext/ruby_binlog.h
46
46
  - ext/extconf.rb
47
47
  - README
48
48
  homepage: https://bitbucket.org/winebarrel/ruby-binlog
@@ -75,7 +75,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
75
75
  requirements: []
76
76
 
77
77
  rubyforge_project:
78
- rubygems_version: 1.8.24
78
+ rubygems_version: 1.8.11
79
79
  signing_key:
80
80
  specification_version: 3
81
81
  summary: Ruby binding for MySQL Binary log API.