From ec969c6e4c46fd19a9f82f79141ec332aa543698 Mon Sep 17 00:00:00 2001 From: ParadoxV5 Date: Thu, 22 Feb 2024 18:29:04 -0700 Subject: [PATCH] Create `.gemspec` --- Gemfile | 8 +++----- godot_rb.gemspec | 33 +++++++++++++++++++++++++++++++++ 2 files changed, 36 insertions(+), 5 deletions(-) create mode 100644 godot_rb.gemspec diff --git a/Gemfile b/Gemfile index 42376e4..bcd8f19 100644 --- a/Gemfile +++ b/Gemfile @@ -1,14 +1,12 @@ # frozen_string_literal: true source 'https://rubygems.org' -ruby '~> 3.3', engine: 'ruby', engine_version: '~> 3.3' - -gem 'rake-compiler', '~> 1.2.0' -gem 'json', '~> 2.7' +gemspec +ruby engine: 'ruby' # Development Apps group :development do group :type_check do - gem 'rbs', '~> 3.4.2', require: false + gem 'rbs', '~> 3.4.4', require: false gem 'steep', '~> 1.6.0', require: false end group :documentation do diff --git a/godot_rb.gemspec b/godot_rb.gemspec new file mode 100644 index 0000000..fb2ddf1 --- /dev/null +++ b/godot_rb.gemspec @@ -0,0 +1,33 @@ +# frozen_string_literal: true +require_relative 'lib/godot_rb/version' + +Gem::Specification.new do |spec| + spec.name = 'Godot.rb' + spec.summary = 'CRuby in Godot Engine; see Homepage/README' + spec.version = Godot::VERSION + spec.author = 'ParadoxV5' + spec.license = 'Apache-2.0' + + github_account = spec.author + github = "https://github.com/#{github_account}/#{spec.name}" + spec.metadata = { + 'homepage_uri' => spec.homepage = github, + 'changelog_uri' => File.join(github, 'releases'), + 'bug_tracker_uri' => File.join(github, 'issues'), + 'funding_uri' => "https://github.com/sponsors/#{github_account}", + 'documentation_uri' => "https://rubydoc.info/gems/#{spec.name}" + } + + spec.files = Dir['**/*'] + + spec.required_ruby_version = '~> 3.3.0' + spec.add_runtime_dependency 'json', '~> 2.7' + spec.add_development_dependency 'rake-compiler', '~> 1.2.0' + if RUBY_PLATFORM.eql? 'x64-mingw-ucrt' + spec.add_development_dependency 'mingw-make', '~> 1.0' + end + spec.requirements.push( + 'CRuby (not JRuby, etc.)', + 'Godot Engine ~> 4.2' + ) +end