forked from ohai/ruby-sdl2
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Setup branch to publish as a forked gem "sdl2-win93"
- Loading branch information
Showing
4 changed files
with
42 additions
and
10 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
name: Ruby Gem | ||
|
||
on: | ||
push: | ||
tags: | ||
- v* | ||
|
||
jobs: | ||
build: | ||
name: Build + Publish | ||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v2 | ||
- name: Set up Ruby 2.6 | ||
uses: actions/setup-ruby@v1 | ||
with: | ||
ruby-version: 2.6.x | ||
|
||
- name: Publish to RubyGems | ||
run: | | ||
mkdir -p $HOME/.gem | ||
touch $HOME/.gem/credentials | ||
chmod 0600 $HOME/.gem/credentials | ||
printf -- "---\n:rubygems_api_key: ${GEM_HOST_API_KEY}\n" > $HOME/.gem/credentials | ||
gem build *.gemspec | ||
gem push *.gem | ||
env: | ||
GEM_HOST_API_KEY: ${{secrets.RUBYGEMS_AUTH_TOKEN}} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,8 @@ | ||
# frozen_string_literal: true | ||
|
||
module SDL2 | ||
# Version string of Ruby/SDL2 | ||
VERSION = "0.3.5" | ||
# Version of Ruby/SDL2, [major, minor, patch level] | ||
VERSION = "1.0.0" | ||
# Version of Ruby/SDL2, [major, minor, patch level] | ||
VERSION_NUMBER = VERSION.split(".").map(&:to_i) | ||
end |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,13 @@ | ||
# coding: utf-8 | ||
# frozen_string_literal: true | ||
lib = File.expand_path('../lib', __FILE__) | ||
$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) | ||
require 'sdl2/version' | ||
|
||
Gem::Specification.new do |spec| | ||
spec.name = "sdl2" | ||
spec.name = "sdl2-win93" | ||
spec.version = SDL2::VERSION | ||
spec.summary = "The simple ruby extension library for SDL 2.x" | ||
spec.summary = "[Fork of ruby-sdl2 gem] SDL2 library wrapper" | ||
spec.description = <<-EOS | ||
Ruby/SDL2 is an extension library to use SDL 2.x | ||
(Simple DirectMedia Layer). SDL 2.x is quite refined | ||
|
@@ -17,14 +18,14 @@ Gem::Specification.new do |spec| | |
Ruby/SDL is used for games and visual demos. | ||
EOS | ||
spec.license = "LGPL-3.0" | ||
spec.author = "Ippei Obayashi" | ||
spec.email = "[email protected]" | ||
spec.homepage = "https://github.com/ohai/ruby-sdl2" | ||
spec.authors = ["Alex Gittemeier", "furunkel", "Ippei Obayashi"] | ||
spec.email = "[email protected]" | ||
spec.homepage = "https://github.com/win93/ruby-sdl2" | ||
spec.files = `git ls-files`.split(/\n/) | ||
spec.test_files = [] | ||
spec.extensions = ["ext/sdl2_ext/extconf.rb"] | ||
|
||
spec.add_development_dependency "rake", "~> 10.0" | ||
spec.add_development_dependency "yard", "~> 0.8" | ||
spec.add_development_dependency "rake-compiler", "~> 0.9" | ||
spec.add_development_dependency "yard", "~> 0.8" | ||
end |