taps 0.3.9 → 0.3.10

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -13,7 +13,7 @@ begin
13
13
  s.add_dependency 'json_pure', '>= 1.2.0', '< 1.5.0'
14
14
  s.add_dependency 'sinatra', '~> 1.0.0'
15
15
  s.add_dependency 'rest-client', '~> 1.4.0'
16
- s.add_dependency 'sequel', '~> 3.12.1'
16
+ s.add_dependency 'sequel', '~> 3.13.0'
17
17
  s.add_dependency 'sqlite3-ruby', '~> 1.2.0'
18
18
  s.add_dependency 'rack', '>= 1.0.1'
19
19
 
@@ -1,5 +1,5 @@
1
1
  ---
2
2
  :build:
3
3
  :minor: 3
4
- :patch: 9
4
+ :patch: 10
5
5
  :major: 0
data/bin/schema CHANGED
@@ -1,7 +1,7 @@
1
1
  #!/usr/bin/env ruby
2
2
 
3
3
  require 'rubygems'
4
- gem 'sequel', '~> 3.12.1'
4
+ gem 'sequel', '~> 3.13.0'
5
5
 
6
6
  $:.unshift File.dirname(__FILE__) + '/../lib'
7
7
 
@@ -153,7 +153,7 @@ class Operation
153
153
  end
154
154
 
155
155
  def http_headers(extra = {})
156
- base = { :taps_version => Taps.compatible_version }
156
+ base = { :taps_version => Taps.version }
157
157
  if compression_disabled?
158
158
  base[:accept_encoding] = ""
159
159
  else
@@ -241,6 +241,7 @@ class Pull < Operation
241
241
  progress = ProgressBar.new('Schema', tables.size)
242
242
  tables.each do |table_name, count|
243
243
  schema_data = session_resource['pull/schema'].post({:table_name => table_name}, http_headers).to_s
244
+ log.debug "Table: #{table_name}\n#{schema_data}\n"
244
245
  output = Taps::Utils.load_schema(database_url, schema_data)
245
246
  puts output if output
246
247
  progress.inc(1)
@@ -429,6 +430,7 @@ class Push < Operation
429
430
  progress = ProgressBar.new('Schema', tables.size)
430
431
  tables.each do |table, count|
431
432
  schema_data = Taps::Utils.schema_bin(:dump_table, database_url, table)
433
+ log.debug "Table: #{table}\n#{schema_data}\n"
432
434
  session_resource['push/schema'].post(schema_data, http_headers)
433
435
  progress.inc(1)
434
436
  end
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 9
9
- version: 0.3.9
8
+ - 10
9
+ version: 0.3.10
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-06-09 00:00:00 -07:00
17
+ date: 2010-07-02 00:00:00 -07:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency
@@ -75,9 +75,9 @@ dependencies:
75
75
  - !ruby/object:Gem::Version
76
76
  segments:
77
77
  - 3
78
- - 12
79
- - 1
80
- version: 3.12.1
78
+ - 13
79
+ - 0
80
+ version: 3.13.0
81
81
  type: :runtime
82
82
  version_requirements: *id004
83
83
  - !ruby/object:Gem::Dependency