1 # frozen_string_literal: true
2
3 require_relative 'lib/auth/version'
4
5 Gem::Specification.new do |spec|
6 spec.name = 'smbcloud-auth'
7 spec.version = Auth::VERSION
8 spec.authors = ["Seto Elkahfi"]
9 spec.email = ["hej@setoelkahfi.se"]
10
11 spec.summary = 'Ruby bindings for the smbCloud Auth SDK.'
12 spec.description = 'Ruby bindings for smbCloud Auth, powered by the shared Rust SDK and a native Magnus extension.'
13 spec.homepage = 'https://github.com/smbcloudXYZ/smbcloud-cli/tree/main/sdk/gems/auth'
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 spec.metadata['homepage_uri'] = spec.homepage
20 spec.metadata['source_code_uri'] = 'https://github.com/smbcloudXYZ/smbcloud-cli/tree/main/sdk/gems/auth'
21 spec.metadata['changelog_uri'] = 'https://github.com/smbcloudXYZ/smbcloud-cli/tree/main/sdk/gems/auth/CHANGELOG.md'
22
23 gemspec = File.basename(__FILE__)
24 spec.files = IO.popen(%w[git ls-files -z], chdir: __dir__, err: IO::NULL) do |ls|
25 ls.readlines("\x0", chomp: true).reject do |f|
26 (f == gemspec) ||
27 f.start_with?(*%w[bin/ test/ spec/ features/ .git appveyor Gemfile])
28 end
29 end
30 spec.bindir = 'exe'
31 spec.executables = spec.files.grep(%r{\Aexe/}) { |f| File.basename(f) }
32 spec.require_paths = ['lib']
33 spec.extensions = ['ext/auth/extconf.rb']
34
35 spec.add_dependency 'json'
36 spec.add_dependency 'rb_sys', '~> 0.9.91'
37 end