csv_x 0.1.3 → 0.1.4
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/csv_x.rb +2 -1
- metadata +1 -1
data/lib/csv_x.rb
CHANGED
@@ -8,7 +8,8 @@ module CsvX
|
|
8
8
|
file = __FILE__
|
9
9
|
file.slice!(-3..-1)
|
10
10
|
file = file.split('/')[1] if file.include?('/')
|
11
|
-
file_name = "#{file}_#{Time.now.strftime('%Y%m%d%H%M')}.csv"
|
11
|
+
# file_name = "#{file}_#{Time.now.strftime('%Y%m%d%H%M')}.csv"
|
12
|
+
file_name = 'hoge.csv'
|
12
13
|
CSV.open(file_name, 'wb') do |csv|
|
13
14
|
csv << header
|
14
15
|
datas.each do |data|
|