Add gemspec

This commit is contained in:
Gwenhael Le Moine 2022-11-22 11:48:26 +01:00
parent ffb5eda987
commit 160b635035
No known key found for this signature in database
GPG key ID: FDFE3669426707A7
3 changed files with 25 additions and 6 deletions

1
.gitignore vendored
View file

@ -3,3 +3,4 @@
/bin/ /bin/
/.shards/ /.shards/
*.dwarf *.dwarf
*.gem

View file

@ -1,12 +1,7 @@
#!/usr/bin/env ruby #!/usr/bin/env ruby
# frozen_string_literal: true # frozen_string_literal: true
require 'bundler/inline' require 'curses'
gemfile do
source 'https://rubygems.org'
gem 'curses'
end
require 'minehunt' require 'minehunt'

23
ruby/minehunt.gemspec Normal file
View file

@ -0,0 +1,23 @@
# frozen_string_literal: true
require_relative './lib/minehunt'
Gem::Specification.new do |s|
s.name = 'minehunt'
s.version = MineHunt::VERSION
s.summary = 'Mine hunting game'
s.description = 'Mine hunting game inspired by the HP 48'
s.authors = ['Gwenhael Le Moine']
s.email = 'gwenhael@le-moine.org'
s.homepage = 'https://src.le-moine.org/gwh/myhunt/src/branch/main/ruby'
s.license = 'GPL-3.0'
s.extra_rdoc_files = ['README.md']
s.files = ['lib/minehunt.rb']
s.add_dependency 'curses', '~> 1.4.4'
s.executables << 'minehunt'
s.required_ruby_version = '> 3'
end