ydd 0.0.9 → 0.0.10

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.9
1
+ 0.0.10
data/lib/ydd.rb CHANGED
@@ -1,6 +1,6 @@
1
1
  require 'yaml'
2
2
  require 'active_support'
3
- require 'active_support/core_ext/module/attribute_accessors'
3
+ require 'active_support/all'
4
4
  require 'active_record'
5
5
  require 'fileutils'
6
6
 
@@ -59,7 +59,7 @@ module YDD
59
59
  columns = column_names.map{ |cn| YDD.connection.columns(table).detect{ |c| c.name == cn } }
60
60
  quoted_column_names = column_names.map { |column| YDD.connection.quote_column_name(column) }.join(',')
61
61
  quoted_table_name = SerializationHelper::Utils.quote_table(table)
62
- records.sort_by! { |r| r['id'].to_i } if column_names.include? 'id'
62
+ #records.sort_by! { |r| r['id'].to_i } if column_names.include? 'id'
63
63
  records.each do |record|
64
64
  quoted_values = record.zip(columns).map{|c| YDD.connection.quote(c.first, c.last)}.join(',')
65
65
  YDD.connection.execute("INSERT INTO #{quoted_table_name} (#{quoted_column_names}) VALUES (#{quoted_values})")
data/ydd.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ydd}
8
- s.version = "0.0.9"
8
+ s.version = "0.0.10"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Adam Wiggins", "Orion Henry", "Darcy Laycock"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ydd
3
3
  version: !ruby/object:Gem::Version
4
- hash: 13
4
+ hash: 11
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 9
10
- version: 0.0.9
9
+ - 10
10
+ version: 0.0.10
11
11
  platform: ruby
12
12
  authors:
13
13
  - Adam Wiggins