Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading dependencies and related services #13

Merged
merged 11 commits into from
Nov 29, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
name: CI
on:
push:
schedule:
- cron: '0 1 * * 0' # every Sunday at 1am
jobs:
test:
strategy:
fail-fast: false
matrix:
os: [ubuntu-latest, macos-latest]
ruby: ['2.6', '2.7', '3.0', '3.1', '3.2', head]
runs-on: ${{ matrix.os }}
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: ${{ matrix.ruby }}
bundler-cache: true
- run: bundle exec rake
coverage:
needs: [ test ]
name: coverage
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- uses: ruby/setup-ruby@v1
with:
ruby-version: '2.6'
bundler-cache: true
- run: bundle exec rake
env:
CUCUMBER_PUBLISH_TOKEN: ${{ secrets.CUCUMBER_PUBLISH_TOKEN }}
- uses: paambaati/[email protected]
env:
CC_TEST_REPORTER_ID: ${{ secrets.CC_TEST_REPORTER_ID }}
with:
coverageLocations: |
${{ github.workspace }}/coverage/lcov/*.lcov:lcov
debug: true
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ build/
# for a library or gem, you might want to ignore these files since the code is
# intended to run in multiple environments; otherwise, check them in:
Gemfile.lock
.ruby-version
.ruby-gemset

# unless supporting rvm < 1.11.0 or doing something fancy, ignore this:
Expand Down
6 changes: 5 additions & 1 deletion .rubocop.yml
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
require: rubocop-rspec

Metrics/LineLength:
AllCops:
TargetRubyVersion: 2.6
NewCops: enable

Layout/LineLength:
Max: 100

Metrics/MethodLength:
Expand Down
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
2.6.10
36 changes: 0 additions & 36 deletions .travis.yml

This file was deleted.

2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,8 @@ The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).

## [Unreleased]
### Changed
- update the required ruby version from v2.2 to v2.6

## [0.0.3] - 2022-01-24
### Added
Expand Down
5 changes: 1 addition & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
# Rspec::Tabular

[![Gem Version](https://badge.fury.io/rb/rspec-tabular.svg)](http://badge.fury.io/rb/rspec-tabular)
[![Build Status](https://travis-ci.org/sugarcrm/rspec-tabular.svg?branch=master)](https://travis-ci.org/sugarcrm/rspec-tabular)
[![Build Status](https://github.com/sugarcrm/rspec-tabular/actions/workflows/ci.yml/badge.svg)](https://github.com/sugarcrm/rspec-tabular/actions/workflows/ci.yml)
[![Code Climate](https://codeclimate.com/github/sugarcrm/rspec-tabular/badges/gpa.svg)](https://codeclimate.com/github/sugarcrm/rspec-tabular)
[![Test Coverage](https://codeclimate.com/github/sugarcrm/rspec-tabular/badges/coverage.svg)](https://codeclimate.com/github/sugarcrm/rspec-tabular/coverage)
[![License](http://img.shields.io/badge/license-Apache2-green.svg?style=flat)](LICENSE)

[![Inline docs](http://inch-ci.org/github/sugarcrm/rspec-tabular.svg)](http://inch-ci.org/github/sugarcrm/rspec-tabular)
[![RubyDoc](http://img.shields.io/badge/docs-rdoc.info-blue.svg)](http://rubydoc.org/gems/rspec-tabular)

Rspec extension for writing tabular examples
Expand Down Expand Up @@ -138,14 +137,12 @@ Links to other places on the web where this projects exists:

* [Code Climate](https://codeclimate.com/github/sugarcrm/rspec-tabular)
* [CucumberPro](https://app.cucumber.pro/projects/rspec-tabular)
* [InchCI](http://inch-ci.org/github/sugarcrm/rspec-tabular)
* [Github](https://github.com/sugarcrm/rspec-tabular)
* [OpenHub](https://www.openhub.net/p/rspec-tabular)
* [RubyDoc](http://rubydoc.org/gems/rspec-tabular)
* [RubyGems](https://rubygems.org/gems/rspec-tabular)
* [Ruby LibHunt](https://ruby.libhunt.com/rspec-tabular-alternatives)
* [Ruby Toolbox](https://www.ruby-toolbox.com/projects/rspec-tabular)
* [TravisCI](https://travis-ci.org/sugarcrm/rspec-tabular)

## Contributing

Expand Down
10 changes: 10 additions & 0 deletions Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -37,4 +37,14 @@ task :license_finder do
abort('LicenseFinder failed') unless $CHILD_STATUS.success?
end

desc 'Show which specified gems are outdated'
task 'bundle:outdated' do
bundle_outdated_report_pathname =
Pathname(Rake.application.original_dir).join('tmp', 'bundle_outdated.txt')
bundle_outdated_report_pathname.dirname.mkpath

# TODO: Should consider re-writing this without using `tee`.
sh("bundle outdated --only-explicit | tee #{bundle_outdated_report_pathname}")
end

task default: %i[spec rubocop bundle:audit license_finder]
6 changes: 3 additions & 3 deletions doc/dependency_decisions.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,19 +5,19 @@
:why:
:versions: []
:when: 2018-06-13 15:20:17.351348000 Z
- - :whitelist
- - :permit
- Apache 2.0
- :who: Andrew Sullivan Cant <[email protected]>
:why: SugarCRM's primary approved open source license
:versions: []
:when: 2018-06-18 19:28:33.314061000 Z
- - :whitelist
- - :permit
- MIT
- :who: Andrew Sullivan Cant <[email protected]>
:why: SugarCRM's secondary approved open source license
:versions: []
:when: 2018-06-13 15:18:36.240771000 Z
- - :whitelist
- - :permit
- BSD
- :who: Andrew Sullivan Cant <[email protected]>
:why: SugarCRM's secondary approved open source license
Expand Down
2 changes: 1 addition & 1 deletion lib/rspec/tabular.rb
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ def it_with(*input_values, &block)
block = proc { is_expected.to eq(expected_value) }
end

context("with #{Hash[metadata[:inputs].zip input_values]}") do
context("with #{metadata[:inputs].zip(input_values).to_h}") do
metadata[:inputs].each_index do |i|
key = metadata[:inputs][i]
value = input_values[i]
Expand Down
10 changes: 6 additions & 4 deletions rspec-tabular.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -18,16 +18,17 @@ Gem::Specification.new do |spec|
spec.files = `git ls-files -z`.split("\x0").reject do |f|
f.match(%r{^(test|spec|features)/})
end
spec.test_files = spec.files.grep(%r{^(test|spec|features)/})
spec.executables = spec.files.grep(%r{^exe/}) { |f| File.basename(f) }
spec.require_paths = ['lib']

spec.required_ruby_version = '>= 2.5.0'
spec.required_ruby_version = '>= 2.6.0'

spec.metadata['rubygems_mfa_required'] = 'true'

spec.add_runtime_dependency 'rspec-core', '>= 2.99.0'

spec.add_development_dependency 'bundler', '~> 1.7'
spec.add_development_dependency 'rake', '~> 12.0'
spec.add_development_dependency 'bundler', '~> 2.0'
spec.add_development_dependency 'rake', '~> 13.0'
spec.add_development_dependency 'rspec', '~> 3.5'

# Dependencies whose APIs we do not really depend upon, and can be upgraded
Expand All @@ -37,4 +38,5 @@ Gem::Specification.new do |spec|
spec.add_development_dependency 'rubocop'
spec.add_development_dependency 'rubocop-rspec'
spec.add_development_dependency 'simplecov'
spec.add_development_dependency 'simplecov-lcov'
end
16 changes: 15 additions & 1 deletion spec/spec_helper.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,20 @@

# Setup code coverage
require 'simplecov'
SimpleCov.start
require 'simplecov-lcov'
require 'simplecov_json_formatter'
SimpleCov.start do
# NOTE: Include the lcov formatter for CodeClimate reporting.
# Even though the simplecov JSON format will be output and used by default,
# the test reporter does not handle it reliable.
# Using the lcov formatter is more reliable.
SimpleCov.formatters = SimpleCov::Formatter::MultiFormatter.new(
[
SimpleCov::Formatter::HTMLFormatter,
SimpleCov::Formatter::JSONFormatter,
SimpleCov::Formatter::LcovFormatter
]
)
end

require 'rspec/tabular'