forklift_etl 1.0.17 → 1.0.18

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,15 +1,15 @@
1
1
  ---
2
2
  !binary "U0hBMQ==":
3
3
  metadata.gz: !binary |-
4
- MDgyMTUzNGZkMzgyMGZkODc1MDEzZGJhMGIxYWMxZjE5ZjM2YjZmNA==
4
+ ODAyMzhiNTM4ZGRhYTE3Y2NmOTg4N2RmODZiMTU2MWFhNjhkYTE0Mg==
5
5
  data.tar.gz: !binary |-
6
- OTc4MTE5NGMzMWM1MTgzY2JlYjliZjkyMWFiNjk0ZGM4ZTQyMzJkYg==
6
+ YTEzODdjNjc3YzFhMWVmZmU1YjU3YTRlYTM2NzdmZGRkZGFiNDdkZA==
7
7
  SHA512:
8
8
  metadata.gz: !binary |-
9
- MTAwNGUyZmNiNTVkNzAwMmRhZjEzYTk3ZGFkM2RjMGJmMTJkMzExZTFmMDRl
10
- ZDQ5YzM2OTk4NzYzMjViNTk4ODJlMjBhZTgwYjA3OTU1NWM2YWRkMjhlNWU5
11
- NDAyZjI0ZjZjNTlmNTI5MDRhMWQzOGI1ZWE2MmY0MDI1ODZkNmY=
9
+ MzFiYzNjMjNlYzdiY2Q2NzcyNjBjYjMwN2M4MDdiMjI0NWE0MTU3N2RlMGYw
10
+ NjIxNGY4MTVmNjQxNjMzMjdjZTg2MTFlYmMxNWJhYjRjMDZkMGE1NTkyNjcy
11
+ OGU4MzhkMTA5YTcyMjZlMzJjZmRiYTc0Yzc2NDIxOWExOWUzZjQ=
12
12
  data.tar.gz: !binary |-
13
- YjM1YjczYmY4NWM1YjEyYjQzZDY0Yjc3YzJlMDVmNGEwMDY1NDEzNTRhZjA5
14
- NTFkNDExMmRhMDNkNmEyMmJmOTVmOTQxZmRkODViNjQ0OGI5NDczMTY2Mzk3
15
- Y2VlMTdkMTRkNDU5MDY4MmMxYTU1NWYxOWEzNjE4MGIwOThkODU=
13
+ OTIyZWFmMjMzYmIxZDQ5MzJlMzgzYzdiYmNlMzA1ZjVjY2MyZGI1ZTBkZDc1
14
+ NzNjNDNiOGU4ZmNlZWViNThlZjdkNTc1Njg1NjlmNWQyOWNlNTU0M2JmYmE0
15
+ NTk0YmMwNGU0ZTllMThjODIxNTI0NTU0NjZkNWUyN2MyZjYzYTQ=
@@ -3,7 +3,7 @@ rvm:
3
3
  - 1.9.3
4
4
  - 2.0.0
5
5
  - 2.1.0
6
- - rbx
6
+ # - rbx https://github.com/wayneeseguin/rvm/issues/2744 (we can test this again later when travis updates RVM)
7
7
  # - jruby-19mode # TODO: We'll need a ODBC variant of the mysql2 driver
8
8
  services:
9
9
  - elasticsearch
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- forklift_etl (1.0.17)
4
+ forklift_etl (1.0.18)
5
5
  activesupport (~> 4.0, >= 4.0.0)
6
6
  elasticsearch (~> 1.0, >= 1.0.0)
7
7
  lumberjack (~> 1.0, >= 1.0.0)
@@ -168,11 +168,16 @@ module Forklift
168
168
  cols
169
169
  end
170
170
 
171
- def dump(file)
171
+ def dump(file, options=[])
172
+ # example options:
173
+ # options.push '--max_allowed_packet=512M'
174
+ # options.push '--set-gtid-purged=OFF'
172
175
  cmd = "mysqldump"
173
176
  cmd << " -u#{config[:username]}" unless config[:username].nil?
174
177
  cmd << " -p#{config[:password]}" unless config[:password].nil?
175
- cmd << " --max_allowed_packet=512M"
178
+ options.each do |o|
179
+ cmd << " #{o} "
180
+ end
176
181
  cmd << " #{config[:database]}"
177
182
  cmd << " | gzip > #{file}"
178
183
  forklift.logger.log "Dumping #{config['database']} to #{file}"
@@ -1,3 +1,3 @@
1
1
  module Forklift
2
- VERSION = "1.0.17"
2
+ VERSION = "1.0.18"
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: forklift_etl
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.17
4
+ version: 1.0.18
5
5
  platform: ruby
6
6
  authors:
7
7
  - Evan Tahler
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-04-23 00:00:00.000000000 Z
11
+ date: 2014-05-19 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport