taps 0.3.5 → 0.3.6

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :build:
3
3
  :minor: 3
4
- :patch: 5
4
+ :patch: 6
5
5
  :major: 0
@@ -2,6 +2,8 @@ require 'sequel'
2
2
  require 'sqlite3'
3
3
  require 'yaml'
4
4
 
5
+ Sequel.datetime_class = DateTime
6
+
5
7
  module Taps
6
8
  def self.version_yml
7
9
  @@version_yml ||= YAML.load(File.read(File.dirname(__FILE__) + '/../../VERSION.yml'))
@@ -238,11 +238,14 @@ class Pull < Operation
238
238
  def pull_schema
239
239
  puts "Receiving schema"
240
240
 
241
+ progress = ProgressBar.new('Schema', tables.size)
241
242
  tables.each do |table_name, count|
242
243
  schema_data = session_resource['pull/schema'].post({:table_name => table_name}, http_headers).to_s
243
244
  output = Taps::Utils.load_schema(database_url, schema_data)
244
245
  puts output if output
246
+ progress.inc(1)
245
247
  end
248
+ progress.finish
246
249
  end
247
250
 
248
251
  def pull_data
@@ -423,10 +426,13 @@ class Push < Operation
423
426
  def push_schema
424
427
  puts "Sending schema"
425
428
 
429
+ progress = ProgressBar.new('Schema', tables.size)
426
430
  tables.each do |table, count|
427
431
  schema_data = Taps::Utils.schema_bin(:dump_table, database_url, table)
428
432
  session_resource['push/schema'].post(schema_data, http_headers)
433
+ progress.inc(1)
429
434
  end
435
+ progress.finish
430
436
  end
431
437
 
432
438
  def push_reset_sequences
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 5
9
- version: 0.3.5
8
+ - 6
9
+ version: 0.3.6
10
10
  platform: ruby
11
11
  authors:
12
12
  - Ricardo Chimal, Jr.
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-05-05 00:00:00 -07:00
17
+ date: 2010-05-18 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency