2018-05-09 07:39:16 +03:00
# frozen_string_literal: true
2018-09-05 16:33:21 +03:00
begin
require_relative " lib/csv/version "
rescue LoadError
2018-10-12 22:58:11 +03:00
# for Ruby core repository
2018-09-05 16:33:21 +03:00
require_relative " version "
end
2018-05-09 14:44:06 +03:00
2018-05-09 07:39:16 +03:00
Gem :: Specification . new do | spec |
spec . name = " csv "
2018-05-09 14:44:06 +03:00
spec . version = CSV :: VERSION
2018-05-09 07:39:16 +03:00
spec . authors = [ " James Edward Gray II " , " Kouhei Sutou " ]
spec . email = [ nil , " kou@cozmixng.org " ]
spec . summary = " CSV Reading and Writing "
spec . description = " The CSV library provides a complete interface to CSV files and data. It offers tools to enable you to read and write to and from Strings or IO objects, as needed. "
spec . homepage = " https://github.com/ruby/csv "
2020-08-18 14:15:59 +03:00
spec . licenses = [ " Ruby " , " BSD-2-Clause " ]
2018-05-09 07:39:16 +03:00
2020-05-17 23:59:14 +03:00
lib_path = " lib "
spec . require_paths = [ lib_path ]
files = [ ]
lib_dir = File . join ( __dir__ , lib_path )
if File . exist? ( lib_dir )
Dir . chdir ( lib_dir ) do
Dir . glob ( " **/*.rb " ) . each do | file |
files << " lib/ #{ file } "
end
end
end
doc_dir = File . join ( __dir__ , " doc " )
if File . exist? ( doc_dir )
Dir . chdir ( doc_dir ) do
Dir . glob ( " **/*.rdoc " ) . each do | rdoc_file |
files << " doc/ #{ rdoc_file } "
end
end
end
spec . files = files
spec . rdoc_options . concat ( [ " --main " , " README.md " ] )
rdoc_files = [
2018-12-23 10:00:35 +03:00
" LICENSE.txt " ,
" NEWS.md " ,
" README.md " ,
]
2020-05-17 23:59:14 +03:00
spec . extra_rdoc_files = rdoc_files
2020-07-20 11:24:24 +03:00
spec . required_ruby_version = " >= 2.5.0 "
2018-05-09 07:39:16 +03:00
2020-07-20 00:28:26 +03:00
spec . add_dependency " stringio " , " >= 0.1.3 "
2018-05-09 07:39:16 +03:00
spec . add_development_dependency " bundler "
spec . add_development_dependency " rake "
2019-01-25 09:49:59 +03:00
spec . add_development_dependency " benchmark_driver "
2018-12-23 10:00:35 +03:00
spec . add_development_dependency " simplecov "
2018-05-09 07:39:16 +03:00
end