1 # frozen_string_literal: true
2
3 require_relative 'lib/model/version'
4
5 Gem::Specification.new do |spec|
6 spec.name = 'smbcloud-model'
7 spec.version = Model::VERSION
8 spec.authors = ["Seto Elkahfi"]
9 spec.email = ["seto@smbcloud.xyz"]
10
11 spec.summary = "Ruby bindings for the smbCloud model types."
12 spec.description = "Ruby bindings for shared smbCloud model types, backed by a native Rust extension."
13 spec.homepage = "https://github.com/smbcloudXYZ/smbcloud-cli/tree/main/sdk/gems/model"
14 spec.license = "MIT"
15 spec.required_ruby_version = ">= 3.1.0"
16 spec.required_rubygems_version = ">= 3.3.11"
17
18 spec.metadata["allowed_push_host"] = "https://rubygems.org"
19
20 spec.metadata["homepage_uri"] = spec.homepage
21 spec.metadata["source_code_uri"] = "https://github.com/smbcloudXYZ/smbcloud-cli/tree/main/sdk/gems/model"
22 spec.metadata["changelog_uri"] = "https://github.com/smbcloudXYZ/smbcloud-cli/tree/main/sdk/gems/model/CHANGELOG.md"
23
24 # Build the release package from tracked files in git.
25 gemspec = File.basename(__FILE__)
26 spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
27 ls.readlines("\x0", chomp: true).reject do |f|
28 (f == gemspec) ||
29 f.start_with?(*%w[bin/ test/ spec/ features/ .git appveyor Gemfile])
30 end
31 end
32 spec.bindir = "exe"
33 spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
34 spec.require_paths = ["lib"]
35 spec.extensions = ["ext/model/extconf.rb"]
36
37 spec.add_dependency "rb_sys", "~> 0.9.91"
38 end