Skip to content
This repository has been archived by the owner on Sep 16, 2024. It is now read-only.

Commit

Permalink
Merge pull request #3 from koshilife/develop
Browse files Browse the repository at this point in the history
release v0.1.2
  • Loading branch information
koshilife authored Jul 3, 2020
2 parents 5856a64 + 1af8635 commit 4ef5cbe
Show file tree
Hide file tree
Showing 7 changed files with 76 additions and 2 deletions.
36 changes: 36 additions & 0 deletions .github/workflows/gem-push.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Ruby Gem

on:
push:
branches: [master]

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

- name: Build and test
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rspec
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}

- 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}}
21 changes: 21 additions & 0 deletions .github/workflows/test.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
name: Test

on: pull_request

jobs:
test:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v2
- name: Set up Ruby
uses: ruby/setup-ruby@v1
with:
ruby-version: 2.6
- name: Build and test
run: |
gem install bundler
bundle install --jobs 4 --retry 3
bundle exec rspec
env:
CODECOV_TOKEN: ${{secrets.CODECOV_TOKEN}}
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.1.2

- refs #1 setup GitHub Actions for rspec and pushing to RubyGems.
- measure code coverage.

# 0.1.1

- Initial release
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Omniauth::Cybozu

[![Test](https://github.com/koshilife/omniauth-cybozu/workflows/Test/badge.svg)](https://github.com/koshilife/omniauth-cybozu/actions?query=workflow%3ATest)
[![codecov](https://codecov.io/gh/koshilife/omniauth-cybozu/branch/master/graph/badge.svg)](https://codecov.io/gh/koshilife/omniauth-cybozu)
[![Gem Version](https://badge.fury.io/rb/omniauth-cybozu.svg)](http://badge.fury.io/rb/omniauth-cybozu)
[![license](https://img.shields.io/github/license/koshilife/omniauth-cybozu)](https://github.com/koshilife/omniauth-cybozu/blob/master/LICENSE.txt)

This gem contains [Kintone](https://www.kintone.com/) and [Garoon](https://garoon.cybozu.co.jp/) strategy for OmniAuth.

Expand Down
2 changes: 1 addition & 1 deletion lib/omniauth-cybozu/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@

module Omniauth
module Cybozu
VERSION = '0.1.1'
VERSION = '0.1.2'
end
end
4 changes: 3 additions & 1 deletion omniauth-cybozu.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ Gem::Specification.new do |spec|
spec.metadata['homepage_uri'] = spec.homepage
spec.metadata['source_code_uri'] = 'https://github.com/koshilife/omniauth-cybozu'
spec.metadata['changelog_uri'] = "#{spec.metadata['source_code_uri']}/blob/master/CHANGELOG.md"
spec.metadata['documentation_uri'] = 'https://www.rubydoc.info/gems/omniauth-cybozu/'
spec.metadata['documentation_uri'] = "https://www.rubydoc.info/gems/omniauth-cybozu/#{spec.version}"

# Specify which files should be added to the gem when it is released.
# The `git ls-files -z` loads the files in the RubyGem that have been added into git.
Expand All @@ -30,6 +30,8 @@ Gem::Specification.new do |spec|

spec.add_runtime_dependency 'omniauth-oauth2', '~> 1.6.0'
spec.add_development_dependency 'bundler', '~> 2.0'
spec.add_development_dependency 'codecov', '~> 0.1.17'
spec.add_development_dependency 'rake', '~> 12.0'
spec.add_development_dependency 'rspec', '~> 3.0'
spec.add_development_dependency 'simplecov', '~> 0.18.5'
end
7 changes: 7 additions & 0 deletions spec/spec_helper.rb
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
# frozen_string_literal: true

require 'simplecov'
SimpleCov.start
if ENV['CI'] == 'true'
require 'codecov'
SimpleCov.formatter = SimpleCov::Formatter::Codecov
end

require 'omniauth-cybozu'

0 comments on commit 4ef5cbe

Please sign in to comment.