-
Notifications
You must be signed in to change notification settings - Fork 0
/
csv.gemspec
64 lines (58 loc) · 1.83 KB
/
csv.gemspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
# frozen_string_literal: true
begin
require_relative "lib/csv/version"
rescue LoadError
# for Ruby core repository
require_relative "version"
end
Gem::Specification.new do |spec|
spec.name = "csv"
spec.version = CSV::VERSION
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"
spec.licenses = ["Ruby", "BSD-2-Clause"]
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 = [
"LICENSE.txt",
"NEWS.md",
"README.md",
]
recipes_dir = File.join(doc_dir, "csv", "recipes")
if File.exist?(recipes_dir)
Dir.chdir(recipes_dir) do
Dir.glob("**/*.rdoc").each do |recipe_file|
rdoc_files << "doc/csv/recipes/#{recipe_file}"
end
end
end
spec.extra_rdoc_files = rdoc_files
spec.required_ruby_version = ">= 2.5.0"
# spec.add_dependency "stringio", ">= 0.1.3"
spec.add_development_dependency "bundler"
spec.add_development_dependency "rake"
spec.add_development_dependency "benchmark_driver"
spec.add_development_dependency "test-unit", ">= 3.4.8"
end