flex_csv 0.0.0 → 0.0.1

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.
Files changed (3) hide show
  1. checksums.yaml +4 -4
  2. data/lib/flex_csv.rb +4 -0
  3. metadata +2 -2
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 0c8fc838516607bcf8d6742f35003ff84901c68f
4
- data.tar.gz: f8e8c1ba379aae036a83067cbb1b88b8f61f1c53
3
+ metadata.gz: 1095554c997d0f99e139ec93b98b6a3d854779f0
4
+ data.tar.gz: 075f66fbd61d543ec864a174065d42cc12c37806
5
5
  SHA512:
6
- metadata.gz: 146a068f367b8b1a40441a8a273c7325ac160cc5f66a563eed4eb4d365477fb1a9aabc3936a7b5f0747eca983b3f0028ff46e61397feb578514201f00e0dcaf0
7
- data.tar.gz: 8f135fe727920d1b3e72946646c09471fbd91eb991090f69310a20387ea5a3a7a93007dbbe39a82855318caeea9a82951f95b301061ea9b34cfaadc31e4887b6
6
+ metadata.gz: e71b3735ef0e624adbaa2f766a1a08489ec5d57d3aee413d3f7f6f341e40939bb2740545d9a6b3b5fe96033b17ed627fcd88ca81be15d328540f5b523a69b878
7
+ data.tar.gz: e44174689f58835d147a9d7955daa5eca9d1636d66ab49b9ab1d7a086d6411e6b220b7249631217d589dfa1a498b404eb8b641abbcc3255159bf5714d260aa75
@@ -1,6 +1,8 @@
1
1
  require 'csv'
2
2
 
3
3
  class FlexCSV
4
+ attr_reader :path
5
+
4
6
  def initialize (input, args = {})
5
7
  rows = []
6
8
  case input.first
@@ -20,5 +22,7 @@ class FlexCSV
20
22
  rows.each { |row| csv << row}
21
23
  end
22
24
  `open #{path}` if open
25
+
26
+ @path = path
23
27
  end
24
28
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: flex_csv
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.0
4
+ version: 0.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Eugene Lai
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-03-01 00:00:00.000000000 Z
11
+ date: 2016-03-05 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: To do
14
14
  email: ejt.lai@gmail.com