sequel_plus 0.3.0 → 0.4.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (2) hide show
  1. data/lib/extensions/export.rb +2 -1
  2. metadata +4 -4
@@ -63,7 +63,8 @@ module Sequel
63
63
  return unless first_row
64
64
 
65
65
  quot = @options[:quote_char]
66
- @columns ||= first_row.keys.sort_by{|x|x.to_s}
66
+ @columns = @dataset.columns
67
+ # @columns = first_row.keys
67
68
 
68
69
  if @options[:headers] == true
69
70
  @file.puts @columns.map{|col| "#{quot}#{col}#{quot}"}.join(@options[:delimiter])
metadata CHANGED
@@ -4,9 +4,9 @@ version: !ruby/object:Gem::Version
4
4
  prerelease: false
5
5
  segments:
6
6
  - 0
7
- - 3
8
- - 0
9
- version: 0.3.0
7
+ - 4
8
+ - 1
9
+ version: 0.4.1
10
10
  platform: ruby
11
11
  authors:
12
12
  - Michael Lang
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-12-21 00:00:00 -05:00
17
+ date: 2011-12-29 00:00:00 -05:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency