Browse Source

cleanup requires and docs

dev
Andy Meneely 5 years ago
parent
commit
845778a574
  1. 5
      docs/dsl/csv.rst
  2. 1
      lib/squib/dsl/csv.rb
  3. 1
      lib/squib/import/csv_importer.rb
  4. 1
      lib/squib/import/xlsx_importer.rb
  5. 1
      lib/squib/import/yaml_importer.rb

5
docs/dsl/csv.rst

@ -49,6 +49,11 @@ col_sep
Column separator. One of the CSV custom options in Ruby. See next option below.
quote_char
default: ``'"'``
Character used to quote strings that have a comma in them. One of the CSV custom options in Ruby. See next option below.
CSV custom options in Ruby standard lib.
All of the options in Ruby's std lib version of CSV are supported **except** ``headers`` is always ``true`` and ``converters`` is always set to ``:numeric``. See the `Ruby Docs <http://ruby-doc.org/stdlib-2.2.0/libdoc/csv/rdoc/CSV.html#method-c-new>`_ for information on the options.

1
lib/squib/dsl/csv.rb

@ -1,4 +1,5 @@
require_relative '../args/import'
require_relative '../args/csv_opts'
require_relative '../import/csv_importer'
require_relative '../errors_warnings/warn_unexpected_params'

1
lib/squib/import/csv_importer.rb

@ -1,3 +1,4 @@
require 'csv'
require_relative 'quantity_exploder'
module Squib::Import

1
lib/squib/import/xlsx_importer.rb

@ -1,3 +1,4 @@
require 'roo'
require_relative 'quantity_exploder'
module Squib::Import

1
lib/squib/import/yaml_importer.rb

@ -1,3 +1,4 @@
require 'yaml'
require_relative 'data_frame'
require_relative 'quantity_exploder'

Loading…
Cancel
Save