myreplicator 1.0.4 → 1.0.5

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,3 @@
1
1
  module Myreplicator
2
- VERSION = "1.0.4"
2
+ VERSION = "1.0.5"
3
3
  end
@@ -20,8 +20,6 @@ module Myreplicator
20
20
  # Reconnection provided for resque workers
21
21
  ##
22
22
  def self.perform
23
- ActiveRecord::Base.verify_active_connections!
24
- ActiveRecord::Base.connection.reconnect!
25
23
  transfer # Kick off the load process
26
24
  end
27
25
 
@@ -86,6 +84,9 @@ module Myreplicator
86
84
  export = params[1]
87
85
  filename = params[2]
88
86
 
87
+ ActiveRecord::Base.verify_active_connections!
88
+ ActiveRecord::Base.connection.reconnect!
89
+
89
90
  Log.run(:job_type => "transporter", :name => "metadata_file",
90
91
  :file => filename, :export_id => export.id) do |log|
91
92
 
@@ -10962,3 +10962,4 @@ DEPRECATION WARNING: Database connections will not be closed automatically, plea
10962
10962
  database connection at the end of the thread by calling `close` on your
10963
10963
  connection. For example: ActiveRecord::Base.connection.close
10964
10964
  . (called from mon_synchronize at /home/sasan/.rvm/rubies/ruby-1.9.3-p125/lib/ruby/1.9.1/monitor.rb:211)
10965
+ Connecting to database specified by database.yml
@@ -0,0 +1 @@
1
+ {"export_time":"2013-01-18T14:25:45-08:00","table":"batchy_batches","database":"okl_test","state":"export_completed","incremental_col":"updated_at","incremental_val":"2012-11-13 10:25:18","export_id":1,"filepath":"/home/ubuntu/myreplicator_tmp/okl_test_batchy_batches_1358547945.tsv","zipped":true,"export_type":"incremental"}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: myreplicator
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.4
4
+ version: 1.0.5
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -277,6 +277,8 @@ files:
277
277
  - test/dummy/app/assets/javascripts/application.js
278
278
  - test/dummy/app/assets/stylesheets/application.css
279
279
  - test/dummy/Rakefile
280
+ - test/dummy/tmp/myreplicator/okl_test_batchy_batches_1358547945.tsv.gz
281
+ - test/dummy/tmp/myreplicator/okl_test_batchy_batches_1358547945.tsv.json
280
282
  - test/dummy/tmp/cache/assets/DF8/5D0/sprockets%2Fb815ed34d61cfed96222daa3bfd1d84d
281
283
  - test/dummy/tmp/cache/assets/D3F/A00/sprockets%2F7a803404e1f60b8d672d763cb9ba8af5
282
284
  - test/dummy/tmp/cache/assets/C2E/D00/sprockets%2F667019818351638709494c01bddb5f68
@@ -345,7 +347,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
345
347
  version: '0'
346
348
  segments:
347
349
  - 0
348
- hash: 2951667968973823988
350
+ hash: -4098853574664925897
349
351
  required_rubygems_version: !ruby/object:Gem::Requirement
350
352
  none: false
351
353
  requirements:
@@ -354,7 +356,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
354
356
  version: '0'
355
357
  segments:
356
358
  - 0
357
- hash: 2951667968973823988
359
+ hash: -4098853574664925897
358
360
  requirements: []
359
361
  rubyforge_project:
360
362
  rubygems_version: 1.8.23
@@ -407,6 +409,8 @@ test_files:
407
409
  - test/dummy/app/assets/javascripts/application.js
408
410
  - test/dummy/app/assets/stylesheets/application.css
409
411
  - test/dummy/Rakefile
412
+ - test/dummy/tmp/myreplicator/okl_test_batchy_batches_1358547945.tsv.gz
413
+ - test/dummy/tmp/myreplicator/okl_test_batchy_batches_1358547945.tsv.json
410
414
  - test/dummy/tmp/cache/assets/DF8/5D0/sprockets%2Fb815ed34d61cfed96222daa3bfd1d84d
411
415
  - test/dummy/tmp/cache/assets/D3F/A00/sprockets%2F7a803404e1f60b8d672d763cb9ba8af5
412
416
  - test/dummy/tmp/cache/assets/C2E/D00/sprockets%2F667019818351638709494c01bddb5f68