ruby-binlog 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/README CHANGED
@@ -10,6 +10,12 @@ see http://www.oscon.com/oscon2011/public/schedule/detail/18785
10
10
 
11
11
  gem install ruby-binlog
12
12
 
13
+ == Required Privileges
14
+
15
+ * SUPER
16
+ * REPLICATION SLAVE
17
+ * EVENT
18
+
13
19
  == Example
14
20
 
15
21
  require "binlog"
@@ -43,3 +49,10 @@ gem install ruby-binlog
43
49
  retry if client.closed?
44
50
  raise e
45
51
  end
52
+
53
+ == Notice
54
+
55
+ The following type are not supported in row mode.
56
+
57
+ * DATE
58
+ * ENUM
@@ -4,14 +4,7 @@ namespace ruby {
4
4
  namespace binlog {
5
5
 
6
6
  mysql::system::Binlog_tcp_driver *cast_to_tcp_driver(mysql::system::Binary_log_driver *driver) {
7
- const char *cname = typeid(*driver).name();
8
- std::string name = cname;
9
-
10
- if(name.find("tcp_driver") == std::string::npos) {
11
- return 0;
12
- }
13
-
14
- return static_cast<mysql::system::Binlog_tcp_driver *>(driver);
7
+ return dynamic_cast<mysql::system::Binlog_tcp_driver *>(driver);
15
8
  }
16
9
 
17
10
  } // namespace binlog
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: 17
4
+ hash: 23
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 5
10
- version: 0.1.5
9
+ - 6
10
+ version: 0.1.6
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-08-28 00:00:00 Z
18
+ date: 2012-11-15 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_incident_event.cpp
30
31
  - ext/ruby_binlog_xid_event.cpp
31
- - ext/ruby_binlog_rotate_event.cpp
32
- - ext/ruby_binlog_format_event.cpp
33
- - ext/ruby_binlog_cast_to_tcp_driver.cpp
34
- - ext/ruby_binlog_user_var_event.cpp
35
32
  - ext/ruby_binlog.cpp
36
- - ext/ruby_binlog_table_map_event.cpp
37
- - ext/ruby_binlog_get_field_type_str.cpp
38
- - ext/ruby_binlog_row_event.cpp
39
- - ext/ruby_binlog_event.cpp
40
33
  - ext/ruby_binlog_query_event.cpp
41
- - ext/ruby_binlog_unimplemented_event.cpp
34
+ - ext/ruby_binlog_event.cpp
35
+ - ext/ruby_binlog_format_event.cpp
36
+ - ext/ruby_binlog_row_event.cpp
37
+ - ext/ruby_binlog_get_field_type_str.cpp
38
+ - ext/ruby_binlog_rotate_event.cpp
42
39
  - ext/ruby_binlog_int_var_event.cpp
43
- - ext/ruby_binlog_incident_event.cpp
44
- - ext/ruby_binlog.h
40
+ - ext/ruby_binlog_unimplemented_event.cpp
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