gogo_csv 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 32c83a7cc4cb38d526c6cf99a72ffd26b42bd2c2
4
- data.tar.gz: 29c7d36fdbcf81714947a9478cc8af12462b0a20
3
+ metadata.gz: 3462cd64a12419e9250a265af1524dd1fd3a74f7
4
+ data.tar.gz: 8b4886287e20a28fd3ddaeadeeb4bc15e3df43d0
5
5
  SHA512:
6
- metadata.gz: 556815f1a3e19e352d4cf37667dd662824e4840b9ea54af88ab092617796bda5befad7ff09b53556cf9189e6f42ace99a83e2bff5bcd4b6d84c022fe92afa096
7
- data.tar.gz: 78804f5c2952961f9c8460fb0d01927688f00455541a7a28df9f60f8dce878c99a82b72f86b72778190dccca0389a21c6fa3ae009d9bf8147c5d94a7beb6039f
6
+ metadata.gz: c9b45e7e72add07bede1b62d170afdb14546ab693fd9b28085e78576b3bdf78cea456a5a542ba4a5b708517ec1bb32de0610cacf479a23a5e5d1961275974e0e
7
+ data.tar.gz: f000086c399d782425f38e2a22c32ea05793ee03cc2b400154d98dbc008d2abf8438cfdbc59ddf67976392aa92ff809cdbf7bb7d7390c03965cb3451a64531b5
@@ -1,6 +1,6 @@
1
1
  module GogoCsv
2
2
  class ::Array
3
- def save!(path=nil)
3
+ def save!(path='./output.csv')
4
4
  raise 'should be array of array' unless arys?
5
5
  raise 'Should supply file path' unless path ||= $current_path
6
6
 
@@ -1,6 +1,6 @@
1
1
  module GogoCsv
2
2
  class ::Matrix
3
- def save!(path=nil)
3
+ def save!(path='./output.csv')
4
4
  raise 'Should supply file path' unless path ||= $current_path
5
5
  CSV.open(File.expand_path(path), "wb") do |csv|
6
6
  row_vectors.each { |v| csv << v.to_a }
@@ -1,3 +1,3 @@
1
1
  module GogoCsv
2
- VERSION = "0.0.5"
2
+ VERSION = "0.0.6"
3
3
  end
data/lib/gogo_csv.rb CHANGED
@@ -6,7 +6,7 @@ module GogoCsv
6
6
  require 'csv'
7
7
  require 'matrix'
8
8
 
9
- def _(path, format=:arys)
9
+ def _(path='./input.csv', format=:arys)
10
10
  $current_path = path
11
11
  arys = CSV.read(
12
12
  File.expand_path(path)
@@ -19,4 +19,6 @@ module GogoCsv
19
19
  end
20
20
  end
21
21
 
22
+ @arys = _
23
+
22
24
  include GogoCsv
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: gogo_csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - gogotanaka