diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..97142dd --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,27 @@ +name: Ruby + +on: + push: + branches: + - master + + pull_request: + +jobs: + build: + runs-on: ubuntu-latest + + strategy: + matrix: + ruby: + - 3.0.2 + + steps: + - uses: actions/checkout@v2 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: ${{ matrix.ruby }} + bundler-cache: true + - name: Run the default task + run: bundle exec rake diff --git a/.github/workflows/run_rubocop.yml b/.github/workflows/run_rubocop.yml deleted file mode 100644 index 07e7b5c..0000000 --- a/.github/workflows/run_rubocop.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Rubocop Lint - -on: [push, pull_request] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Ruby 2.6 is - uses: actions/setup-ruby@v1 - with: - ruby-version: 2.6.x - - uses: actions/cache@v1 - with: - path: vendor/bundle - key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gems- - - name: Run Rubocop linter - run: | - gem install bundler - bundle config path vendor/bundle - bundle install --jobs 4 --retry 3 - bundle exec rubocop diff --git a/.github/workflows/run_tests.yml b/.github/workflows/run_tests.yml deleted file mode 100644 index 93fb4ba..0000000 --- a/.github/workflows/run_tests.yml +++ /dev/null @@ -1,27 +0,0 @@ -name: Tests 🧪 - -on: [push, pull_request] - -jobs: - build: - - runs-on: ubuntu-latest - - steps: - - uses: actions/checkout@v2 - - name: Set up Ruby 2.6 is - uses: actions/setup-ruby@v1 - with: - ruby-version: 2.6.x - - uses: actions/cache@v1 - with: - path: vendor/bundle - key: ${{ runner.os }}-gems-${{ hashFiles('**/Gemfile.lock') }} - restore-keys: | - ${{ runner.os }}-gems- - - name: Run test suite - run: | - gem install bundler - bundle config path vendor/bundle - bundle install --jobs 4 --retry 3 - bundle exec rake test diff --git a/.rubocop.yml b/.rubocop.yml index b88dbc6..df647b9 100644 --- a/.rubocop.yml +++ b/.rubocop.yml @@ -10,7 +10,6 @@ Layout/LineLength: Max: 120 AllCops: - NewCops: enable TargetRubyVersion: 2.6 Exclude: - 'vendor/**/*' diff --git a/README.md b/README.md index 71103c4..ae34c82 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,6 @@ # Chatworkify -![Gem](https://img.shields.io/gem/v/chatworkify?color=%234cc61f&label=Gem%20version&logo=ruby&logoColor=red) -![Gem](https://img.shields.io/gem/dt/chatworkify?color=%2330c754&label=Downloads&logo=rubygems&logoColor=red) -![GitHub Workflow Status](https://img.shields.io/github/workflow/status/rs-phunt/chatworkify/Tests%20%F0%9F%A7%AA?label=Tests&logo=github) -![GitHub Workflow Status](https://img.shields.io/github/workflow/status/rs-phunt/chatworkify/Rubocop%20Lint?label=Rubocop&logo=github) +[![Gem Version](https://badge.fury.io/rb/chatworkify.svg)](https://badge.fury.io/rb/chatworkify) ## Installation @@ -33,7 +30,7 @@ Require the gem in your `Capfile`: - Export to your `bash`: `export CHATWORK_API_TOKEN=xxx` -- Add to `.env` if you're using `dotenv` gem +- Add to `.env` if you're using `config` gem ### Puts `CHATWORK_ROOM_ID` into your ENV or custom in `config/deploy` diff --git a/chatworkify.gemspec b/chatworkify.gemspec index 41c070e..abbeb8e 100644 --- a/chatworkify.gemspec +++ b/chatworkify.gemspec @@ -18,7 +18,7 @@ Gem::Specification.new do |spec| spec.required_ruby_version = '>= 2.6' # spec.metadata['allowed_push_host'] = 'TODO: Set to your gem server 'https://example.com'' - spec.metadata['rubygems_mfa_required'] = 'true' + spec.metadata['homepage_uri'] = spec.homepage spec.metadata['source_code_uri'] = 'https://github.com/rs-phunt/chatworkify' spec.metadata['changelog_uri'] = 'https://github.com/rs-phunt/chatworkify/blob/master/CHANGELOG.md'