-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathvapi.gemspec
More file actions
36 lines (31 loc) · 1.49 KB
/
vapi.gemspec
File metadata and controls
36 lines (31 loc) · 1.49 KB
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
# frozen_string_literal: true
require_relative "lib/vapi/version"
require_relative "custom.gemspec"
# NOTE: A handful of these fields are required as part of the Ruby specification.
# You can change them here or overwrite them in the custom gemspec file.
Gem::Specification.new do |spec|
spec.name = "vapi-server-sdk"
spec.authors = ["Vapi"]
spec.version = Vapi::VERSION
spec.summary = "Ruby client library for the Vapi API"
spec.description = "The Vapi Ruby library provides convenient access to the Vapi API from Ruby."
spec.required_ruby_version = ">= 3.3.0"
spec.metadata["rubygems_mfa_required"] = "true"
# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
gemspec = File.basename(__FILE__)
spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
ls.readlines("\x0", chomp: true).reject do |f|
(f == gemspec) ||
f.start_with?(*%w[bin/ test/ spec/ features/ .git appveyor Gemfile])
end
end
spec.bindir = "exe"
spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
spec.require_paths = ["lib"]
# For more information and examples about making a new gem, check out our
# guide at: https://bundler.io/guides/creating_gem.html
# Load custom gemspec configuration if it exists
custom_gemspec_file = File.join(__dir__, "custom.gemspec.rb")
add_custom_gemspec_data(spec) if File.exist?(custom_gemspec_file)
end