ecco 0.6.1-java → 0.7.0-java

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 260dad691405d73f74f910b80431b25be925107d
4
- data.tar.gz: f8fde912519a3b5f1c4bed8ad26adc9fa3481da0
3
+ metadata.gz: 0ab7f8a563e384b8c17e08072610eccfe3c52d7f
4
+ data.tar.gz: d3e8ac4b8ae63cc0adbcd0c2673f87268aa3b6c3
5
5
  SHA512:
6
- metadata.gz: d22d6e6c108327f0b2de31bbaf65440ac8e8713ca1fa3e014fee4a0bb1e87a10e2f6748c2e2490a82781df28c9e814cc69d8c2fb61c90cbabcb25ac1b088fbb8
7
- data.tar.gz: 35de29b97a50af44a2a5a63d6e8f6820e22612808503496a8904a33ac94f9859c75bba0abf17f9a587490d98d5e0918f39c30a9db38cc8776cc327946813b65a
6
+ metadata.gz: 7f4db2c00bffd2fa65fea63d2485979b3c6c3c52d413a42d2f172696be12f3aba0efa18e78ba27cde5fd98d21d20cfbd8f96a383badc21f3e94a8c3eb5719de5
7
+ data.tar.gz: 2bc753ab284ab855130bc9eea73afa21e5167e2c3c1b1bbb167a698990b4240993704a0c49d9d1798e03faea9cd98587abd12725e0736411b23c4a4a8d73bfa9
@@ -0,0 +1,75 @@
1
+ # Change Log
2
+
3
+ ## [v0.6.1](https://github.com/twingly/ecco/tree/v0.6.1) (2016-07-18)
4
+ [Full Changelog](https://github.com/twingly/ecco/compare/v0.6.0...v0.6.1)
5
+
6
+ **Merged pull requests:**
7
+
8
+ - MySQL 5.6 support [\#20](https://github.com/twingly/ecco/pull/20) ([jage](https://github.com/jage))
9
+ - Use standard rvm key for jruby version [\#19](https://github.com/twingly/ecco/pull/19) ([walro](https://github.com/walro))
10
+ - Improve rake task description [\#17](https://github.com/twingly/ecco/pull/17) ([jage](https://github.com/jage))
11
+
12
+ ## [v0.6.0](https://github.com/twingly/ecco/tree/v0.6.0) (2015-12-04)
13
+ [Full Changelog](https://github.com/twingly/ecco/compare/v0.5.0...v0.6.0)
14
+
15
+ **Closed issues:**
16
+
17
+ - Feature: Ecco::Client\#connected? [\#14](https://github.com/twingly/ecco/issues/14)
18
+
19
+ **Merged pull requests:**
20
+
21
+ - Implement Ecco::Client\#connected? [\#15](https://github.com/twingly/ecco/pull/15) ([jage](https://github.com/jage))
22
+
23
+ ## [v0.5.0](https://github.com/twingly/ecco/tree/v0.5.0) (2015-11-26)
24
+ [Full Changelog](https://github.com/twingly/ecco/compare/v0.4.1...v0.5.0)
25
+
26
+ **Fixed bugs:**
27
+
28
+ - Trying to connect to non-existent position behaves strange? [\#8](https://github.com/twingly/ecco/issues/8)
29
+
30
+ **Merged pull requests:**
31
+
32
+ - Add keep alive getters and setters [\#11](https://github.com/twingly/ecco/pull/11) ([dentarg](https://github.com/dentarg))
33
+ - Helper method for java root logger [\#10](https://github.com/twingly/ecco/pull/10) ([dentarg](https://github.com/dentarg))
34
+ - Add \#on\_communication\_failure [\#9](https://github.com/twingly/ecco/pull/9) ([walro](https://github.com/walro))
35
+
36
+ ## [v0.4.1](https://github.com/twingly/ecco/tree/v0.4.1) (2015-11-19)
37
+ [Full Changelog](https://github.com/twingly/ecco/compare/v0.4.0...v0.4.1)
38
+
39
+ **Implemented enhancements:**
40
+
41
+ - Ensure that we handle "on\_row\_event" before "on\_save\_position" [\#5](https://github.com/twingly/ecco/issues/5)
42
+
43
+ **Merged pull requests:**
44
+
45
+ - Make sure row\_event happens before save\_event [\#7](https://github.com/twingly/ecco/pull/7) ([roback](https://github.com/roback))
46
+ - Minor refactoring [\#6](https://github.com/twingly/ecco/pull/6) ([dentarg](https://github.com/dentarg))
47
+
48
+ ## [v0.4.0](https://github.com/twingly/ecco/tree/v0.4.0) (2015-11-18)
49
+ [Full Changelog](https://github.com/twingly/ecco/compare/v0.3.1...v0.4.0)
50
+
51
+ **Implemented enhancements:**
52
+
53
+ - Integration tests [\#2](https://github.com/twingly/ecco/issues/2)
54
+
55
+ **Merged pull requests:**
56
+
57
+ - Add integration tests [\#3](https://github.com/twingly/ecco/pull/3) ([roback](https://github.com/roback))
58
+
59
+ ## [v0.3.1](https://github.com/twingly/ecco/tree/v0.3.1) (2015-11-09)
60
+ [Full Changelog](https://github.com/twingly/ecco/compare/v0.3.0...v0.3.1)
61
+
62
+ ## [v0.3.0](https://github.com/twingly/ecco/tree/v0.3.0) (2015-11-09)
63
+ [Full Changelog](https://github.com/twingly/ecco/compare/v0.2.0...v0.3.0)
64
+
65
+ **Merged pull requests:**
66
+
67
+ - Implement basic functionality [\#1](https://github.com/twingly/ecco/pull/1) ([walro](https://github.com/walro))
68
+
69
+ ## [v0.2.0](https://github.com/twingly/ecco/tree/v0.2.0) (2015-10-27)
70
+ [Full Changelog](https://github.com/twingly/ecco/compare/v0.1.0...v0.2.0)
71
+
72
+ ## [v0.1.0](https://github.com/twingly/ecco/tree/v0.1.0) (2015-10-27)
73
+
74
+
75
+ \* *This Change Log was automatically generated by [github_changelog_generator](https://github.com/skywinder/Github-Changelog-Generator)*
data/README.md CHANGED
@@ -107,9 +107,21 @@ To release a new version, make a commit bumping the version number in `version.r
107
107
 
108
108
  which will create a git tag for the version, push git commits and tags, and push the `.gem` file to [rubygems.org](https://rubygems.org).
109
109
 
110
+ Update the changelog with [GitHub Changelog Generator]:
111
+
112
+ github_changelog_generator
113
+
114
+ Preparations you might have to do:
115
+
116
+ * `gem install github_changelog_generator` if you don't have it
117
+ * set `CHANGELOG_GITHUB_TOKEN` to a personal access token to increase your GitHub API rate limit
118
+
119
+ Make a commit with the changelog changes and push.
120
+
110
121
  ## License
111
122
 
112
123
  The gem is available as open source under the terms of the [Apache License, Version 2.0](http://www.apache.org/licenses/LICENSE-2.0).
113
124
 
114
125
  [mysql-binlog-connector-java]: https://github.com/shyiko/mysql-binlog-connector-java
115
126
  [Ansible]: http://www.ansible.com/
127
+ [GitHub Changelog Generator]: https://github.com/skywinder/github-changelog-generator/
@@ -2,19 +2,19 @@ require "ecco/event_listener"
2
2
 
3
3
  module Ecco
4
4
  class SaveEventListener < EventListener
5
- SAVE_EVENTS = [
6
- EventType::QUERY,
7
- EventType::ROTATE,
8
- EventType::WRITE_ROWS,
9
- EventType::EXT_WRITE_ROWS,
10
- EventType::UPDATE_ROWS,
11
- EventType::EXT_UPDATE_ROWS,
12
- EventType::DELETE_ROWS,
13
- EventType::EXT_DELETE_ROWS,
14
- ]
5
+ SAVE_EVENTS = {
6
+ EventType::QUERY => "QUERY",
7
+ EventType::ROTATE => "ROTATE",
8
+ EventType::WRITE_ROWS => "WRITE_ROWS",
9
+ EventType::EXT_WRITE_ROWS => "WRITE_ROWS",
10
+ EventType::UPDATE_ROWS => "UPDATE_ROWS",
11
+ EventType::EXT_UPDATE_ROWS => "UPDATE_ROWS",
12
+ EventType::DELETE_ROWS => "DELETE_ROWS",
13
+ EventType::EXT_DELETE_ROWS => "DELETE_ROWS",
14
+ }
15
15
 
16
16
  def accepted_events
17
- SAVE_EVENTS
17
+ SAVE_EVENTS.keys
18
18
  end
19
19
 
20
20
  def on_event(event)
@@ -22,10 +22,11 @@ module Ecco
22
22
 
23
23
  case type
24
24
  when *accepted_events
25
- filename = @client.get_binlog_filename
26
- position = @client.get_binlog_position
25
+ filename = @client.get_binlog_filename
26
+ position = @client.get_binlog_position
27
+ event_type_name = SAVE_EVENTS.fetch(type)
27
28
 
28
- @callback.call(filename, position)
29
+ @callback.call(filename, position, event_type_name)
29
30
  end
30
31
  end
31
32
  end
@@ -1,4 +1,4 @@
1
1
  module Ecco
2
- VERSION = "0.6.1"
2
+ VERSION = "0.7.0"
3
3
  MYSQL_BINLOG_CONNECTOR_VERSION = "0.2.4"
4
4
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ecco
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.1
4
+ version: 0.7.0
5
5
  platform: java
6
6
  authors:
7
7
  - Twingly AB
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2016-07-18 00:00:00.000000000 Z
11
+ date: 2016-10-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  requirement: !ruby/object:Gem::Requirement
@@ -91,6 +91,7 @@ files:
91
91
  - ".rspec"
92
92
  - ".ruby-version"
93
93
  - ".travis.yml"
94
+ - CHANGELOG.md
94
95
  - Gemfile
95
96
  - README.md
96
97
  - Rakefile
@@ -132,7 +133,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
132
133
  version: '0'
133
134
  requirements: []
134
135
  rubyforge_project:
135
- rubygems_version: 2.4.8
136
+ rubygems_version: 2.6.7
136
137
  signing_key:
137
138
  specification_version: 4
138
139
  summary: MySQL replication binlog parser.