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.3
  • Loading branch information
koshilife authored Jul 3, 2020
2 parents 43c8e5c + 88240d2 commit 522240f
Show file tree
Hide file tree
Showing 9 changed files with 146 additions and 8 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}}
69 changes: 69 additions & 0 deletions .rubocop.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,69 @@
AllCops:
TargetRubyVersion: 2.6

Layout/AccessModifierIndentation:
EnforcedStyle: outdent

Layout/HashAlignment:
Enabled: false

Layout/DotPosition:
EnforcedStyle: trailing

Layout/SpaceInsideHashLiteralBraces:
EnforcedStyle: no_space

Lint/SuppressedException:
Enabled: false

Metrics/BlockLength:
Enabled: false

Metrics/BlockNesting:
Max: 2

Layout/LineLength:
AllowURI: true
Enabled: false

Metrics/MethodLength:
CountComments: false
Max: 15

Metrics/ParameterLists:
Max: 4
CountKeywordArgs: true

Metrics/AbcSize:
Enabled: false

Style/CollectionMethods:
PreferredMethods:
map: 'collect'
reduce: 'inject'
find: 'detect'
find_all: 'select'

Style/Documentation:
Enabled: false

Style/DoubleNegation:
Enabled: false

Style/EachWithObject:
Enabled: false

Style/Encoding:
Enabled: false

Style/ExpandPathArguments:
Enabled: false

Style/HashSyntax:
EnforcedStyle: hash_rockets

Style/Lambda:
Enabled: false

Style/RaiseArgs:
EnforcedStyle: compact
6 changes: 0 additions & 6 deletions .travis.yml

This file was deleted.

5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# 0.1.3

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

# 0.1.2

- fixed a bug for empty uid
Expand Down
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
# Omniauth::Timetree

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

This gem contains the [TimeTree](https://timetreeapp.com/) strategy for OmniAuth.

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

module Omniauth
module Timetree
VERSION = '0.1.2'
VERSION = '0.1.3'
end
end
5 changes: 4 additions & 1 deletion omniauth-timetree.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-timetree'
spec.metadata['changelog_uri'] = "#{spec.metadata['source_code_uri']}/blob/master/CHANGELOG.md"
spec.metadata['documentation_uri'] = 'https://www.rubydoc.info/gems/omniauth-timetree/'
spec.metadata['documentation_uri'] = "https://www.rubydoc.info/gems/omniauth-timetree/#{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 @@ -29,7 +29,10 @@ Gem::Specification.new do |spec|
spec.require_paths = ['lib']

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-timetree'

0 comments on commit 522240f

Please sign in to comment.