csvr 0.5.0 → 0.6.0

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/csvr/cli.rb +8 -7
  3. metadata +1 -1
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 445de404ccce9a44b9eca3338d2690a8d58e08c5
4
- data.tar.gz: a783dbc4e7f9eada8617d6b22f10ce8b1bcbb186
3
+ metadata.gz: 7b4312d77923acdc7fca09fe8c2e7b386b91d536
4
+ data.tar.gz: 1a098addb5d6ad50393ed24ec9b5e99553dd7d62
5
5
  SHA512:
6
- metadata.gz: 4d226b46d6ce2f99ebfc9ad62d2d46ca034b69642f6c6311721923796d77de2ad2592bb9b3893694eb1ad82e3b76b022469e1d19b526856347a98624b5eabe1f
7
- data.tar.gz: 8c8c8f94b1ecdd463b0f757d10d85cc316078cb0ddae3e7df9d7c2e1e85ec523c3df100c98bcc0a0e006677726534056891b1cc337f6527a479191f406c384c0
6
+ metadata.gz: b851af7ea0b7a5db8936e7e5adbe65eb0fc3b7402f6171972a384a3d77201a1ed3d9c93a0e3c77ed46f2cb613591963458ea48e2fb75c153204035f4f1f00ed1
7
+ data.tar.gz: 3bc121a18cc02513f9b3ed1bec655805556ac77de9d2ef16c9e0466d62182af63d078a6c7cabbbb98574332dc9b89c16146c030cf30fae99873ed99f2545b4a1
data/lib/csvr/cli.rb CHANGED
@@ -6,13 +6,14 @@ module CSVR
6
6
 
7
7
  desc "api", "details use of CSVR"
8
8
  def api
9
-
10
- puts "--------------------------------- \n"
11
- puts "\tcsvr = CSVR.open('path/to/file')"
12
- puts "\t(optional) csvr.headers = ['array','of','custom', 'headers]"
13
- puts "\t(optional) csvr.rows = ['array', 'of' 'strings' 'to' 'parse']"
14
- puts "\tcsvr.create('db_name', 'table_name')"
15
- puts "--------------------------------- \n"
9
+
10
+ outputs = []
11
+ outputs << "\tcsvr = CSVR.open('path/to/file')"
12
+ outputs << "\t(optional) csvr.headers = ['array','of','custom', 'headers]"
13
+ outputs << "\t(optional) csvr.rows = ['array', 'of' 'strings' 'to' 'parse']"
14
+ outputs << "\tcsvr.create('db_name', 'table_name')"
15
+
16
+ outputs.each { |x| puts x }
16
17
 
17
18
  end
18
19
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: csvr
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.0
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Andrew Smith