gratan 0.2.8.beta2 → 0.2.8.beta3

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: 70707b3f638c9650e2304ff02acf40bc6e537b8b
4
- data.tar.gz: 3021f5276d241c238d929bc31e4357b875d81bc5
3
+ metadata.gz: 22edc42504e84310b6c42cc258db604b12d2831a
4
+ data.tar.gz: ca89f0381b6d73f36dc315cc168d4363004284fc
5
5
  SHA512:
6
- metadata.gz: 674e391a0ab86d79c523f6b75e62b31e6acfc5a770a43f96deeb50069057817d51c4ca761f96b4db8687262eaedbd9abf71851acaa04f62c1e08f5c8f0ff3084
7
- data.tar.gz: 2be1b2656a212fc750e4590dda92b3b687bbcf5efd15143bc1647287b4857b2b09a0ebd839361074e42a8aab652517234666770a225206078186267a5ecb7282
6
+ metadata.gz: 1745cfeaeead547a61bef90ce91ddad3ef7d456d57a95c537614e9653ee61fb606d7f3d3b2b9c6447e3fc26190e29757793a1cd55f1971912425fc7e9e71cdc3
7
+ data.tar.gz: 065f25f9112d28bfb76ce6ec470e6d3c83ca5642443d764bce7712d3fb8b7d973265c88fdc0c174591b5491820c2de2b6f227bd3dc276cf52a4bd4729390ed57
data/bin/gratan CHANGED
@@ -26,27 +26,28 @@ options = {
26
26
 
27
27
  ARGV.options do |opt|
28
28
  begin
29
- opt.on('' , '--host HOST') {|v| mysql_options[:host] = v }
30
- opt.on('' , '--port PORT', Integer) {|v| mysql_options[:port] = v }
31
- opt.on('' , '--socket SOCKET') {|v| mysql_options[:socket] = v }
32
- opt.on('' , '--username USERNAME') {|v| mysql_options[:username] = v }
33
- opt.on('' , '--password PASSWORD') {|v| mysql_options[:password] = v }
34
- opt.on('' , '--database DATABASE') {|v| mysql_options[:database] = v }
35
- opt.on('-a', '--apply') { mode = :apply }
36
- opt.on('-f', '--file FILE') {|v| file = v }
37
- opt.on('' , '--dry-run') { options[:dry_run] = true }
38
- opt.on('-e', '--export') { mode = :export }
39
- opt.on('' , '--with-identifier') { options[:with_identifier] = true }
40
- opt.on('' , '--split') { split = true }
41
- opt.on('' , '--chunk-by-user') { options[:chunk_by_user] = true }
42
- opt.on('-o', '--output FILE') {|v| output_file = v }
43
- opt.on('' , '--ignore-user REGEXP') {|v| options[:ignore_user] = Regexp.new(v) }
44
- opt.on('' , '--target-user REGEXP') {|v| options[:target_user] = Regexp.new(v) }
45
- opt.on('' , '--ignore-object REGEXP') {|v| options[:ignore_object] = Regexp.new(v) }
46
- opt.on('' , '--enable-expired') { options[:enable_expired] = true }
47
- opt.on('' , '--ignore-not-exist') {|v| options[:ignore_not_exist] = true }
48
- opt.on('' , '--no-color') { options[:color] = false }
49
- opt.on('' , '--debug') { options[:debug] = true }
29
+ opt.on('' , '--host HOST') {|v| mysql_options[:host] = v }
30
+ opt.on('' , '--port PORT', Integer) {|v| mysql_options[:port] = v }
31
+ opt.on('' , '--socket SOCKET') {|v| mysql_options[:socket] = v }
32
+ opt.on('' , '--username USERNAME') {|v| mysql_options[:username] = v }
33
+ opt.on('' , '--password PASSWORD') {|v| mysql_options[:password] = v }
34
+ opt.on('' , '--database DATABASE') {|v| mysql_options[:database] = v }
35
+ opt.on('-a', '--apply') { mode = :apply }
36
+ opt.on('-f', '--file FILE') {|v| file = v }
37
+ opt.on('' , '--dry-run') { options[:dry_run] = true }
38
+ opt.on('-e', '--export') { mode = :export }
39
+ opt.on('' , '--with-identifier') { options[:with_identifier] = true }
40
+ opt.on('' , '--split') { split = true }
41
+ opt.on('' , '--chunk-by-user') { options[:chunk_by_user] = true }
42
+ opt.on('-o', '--output FILE') {|v| output_file = v }
43
+ opt.on('' , '--ignore-user REGEXP') {|v| options[:ignore_user] = Regexp.new(v) }
44
+ opt.on('' , '--target-user REGEXP') {|v| options[:target_user] = Regexp.new(v) }
45
+ opt.on('' , '--ignore-object REGEXP') {|v| options[:ignore_object] = Regexp.new(v) }
46
+ opt.on('' , '--enable-expired') { options[:enable_expired] = true }
47
+ opt.on('' , '--ignore-not-exist') {|v| options[:ignore_not_exist] = true }
48
+ opt.on('' , '--skip-disable-log-bin') { options[:skip_disable_log_bin] = true }
49
+ opt.on('' , '--no-color') { options[:color] = false }
50
+ opt.on('' , '--debug') { options[:debug] = true }
50
51
  opt.on('' , '--auto-identify OUTPUT') {|v| options[:identifier] = Gratan::Identifier::Auto.new(v, options) }
51
52
  opt.on('' , '--csv-identify CSV') {|v| options[:identifier] = Gratan::Identifier::CSV.new(v, options) }
52
53
 
@@ -176,7 +176,9 @@ class Gratan::Driver
176
176
  end
177
177
 
178
178
  def disable_log_bin_local
179
- query('SET SQL_LOG_BIN = 0')
179
+ unless @options[:skip_disable_log_bin]
180
+ query('SET SQL_LOG_BIN = 0')
181
+ end
180
182
  end
181
183
 
182
184
  private
@@ -1,3 +1,3 @@
1
1
  module Gratan
2
- VERSION = '0.2.8.beta2'
2
+ VERSION = '0.2.8.beta3'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gratan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8.beta2
4
+ version: 0.2.8.beta3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Genki Sugawara
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-03-05 00:00:00.000000000 Z
11
+ date: 2015-03-06 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: mysql2