snapshots 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.3
1
+ 0.0.4
@@ -45,7 +45,7 @@ EOC
45
45
  def table_for_data(table, stream)
46
46
  columns = @connection.columns(table)
47
47
 
48
- column_names = columns.collect { |column| column.name }
48
+ column_names = columns.collect { |column| "#{table}.#{column.name}" }
49
49
 
50
50
  rows = @connection.select_rows("SELECT #{column_names.join(', ')} FROM #{table}")
51
51
 
@@ -42,7 +42,7 @@ module Snapshots
42
42
 
43
43
  return if quoted_attributes.empty?
44
44
 
45
- column_names = @columns.collect { |column| column.name }
45
+ column_names = @columns.collect { |column| "#{@table}.#{column.name}" }
46
46
  statement = "INSERT INTO #{@table} (#{column_names.join(', ')}) VALUES(#{quoted_attributes.join(', ')})"
47
47
 
48
48
  @connection.insert(statement, "#{@table} Create")
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{snapshots}
8
- s.version = "0.0.3"
8
+ s.version = "0.0.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Simon Menke"]
12
- s.date = %q{2009-09-25}
12
+ s.date = %q{2009-09-29}
13
13
  s.default_executable = %q{snapshots}
14
14
  s.description = %q{Dump your rails databases in a database agnostic format (ruby).}
15
15
  s.email = %q{simon@mrhenry.be}
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: snapshots
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Simon Menke
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-09-25 00:00:00 +02:00
12
+ date: 2009-09-29 00:00:00 +02:00
13
13
  default_executable: snapshots
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency