Skip to content

Commit

Permalink
Setup branch to publish as a forked gem "sdl2-win93"
Browse files Browse the repository at this point in the history
  • Loading branch information
win93 committed Jul 5, 2020
1 parent f85931f commit f127fd8
Show file tree
Hide file tree
Showing 4 changed files with 42 additions and 10 deletions.
29 changes: 29 additions & 0 deletions .github/workflows/gempush.yml
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}}
4 changes: 2 additions & 2 deletions Gemfile.lock
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
PATH
remote: .
specs:
sdl2 (0.3.5)
sdl2-win93 (1.0.0)

GEM
remote: https://rubygems.org/
Expand All @@ -17,7 +17,7 @@ PLATFORMS
DEPENDENCIES
rake (~> 10.0)
rake-compiler (~> 0.9)
sdl2!
sdl2-win93!
yard (~> 0.8)

BUNDLED WITH
Expand Down
6 changes: 4 additions & 2 deletions lib/sdl2/version.rb
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
13 changes: 7 additions & 6 deletions sdl2.gemspec → sdl2-win93.gemspec
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
Expand All @@ -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

0 comments on commit f127fd8

Please sign in to comment.