Skip to content

Commit

Permalink
Create .gemspec
Browse files Browse the repository at this point in the history
  • Loading branch information
ParadoxV5 committed Feb 23, 2024
1 parent fd79fa1 commit 2996b51
Show file tree
Hide file tree
Showing 2 changed files with 36 additions and 5 deletions.
8 changes: 3 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -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 '~> 3.3.0', engine: 'ruby', engine_version: '~> 3.3.0'

# 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
Expand Down
33 changes: 33 additions & 0 deletions godot_rb.gemspec
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 2996b51

Please sign in to comment.