diff --git a/.github/workflows/main.yml b/.github/workflows/main.yml new file mode 100644 index 0000000..c94b564 --- /dev/null +++ b/.github/workflows/main.yml @@ -0,0 +1,32 @@ +name: Push & PR + +on: + pull_request: + types: [opened, synchronize, reopened] + push: + branches: [main] + +jobs: + tests: + runs-on: ubuntu-latest + strategy: + fail-fast: false + matrix: + rspec: ['3.1'] + ruby: ['3.0', '3.1', 3.2'] + steps: + - uses: actions/checkout@v3 + - name: Set up Ruby + uses: ruby/setup-ruby@v1 + with: + ruby-version: '${{ matrix.ruby }}' + bundler-cache: true + cache-version: ${{ matrix.rspec }} + env: + RSPEC: ${{ matrix.rspec }} + - name: Rspec + run: bundle exec rspec + - name: Cucumber + run: bundle exec cucumber --quiet --tags 'not @fail' + - name: Cucumber (expected to fail) + run: bundle exec cucumber --quiet --tags '@fail' --wip diff --git a/.ruby-gemset b/.ruby-gemset new file mode 100644 index 0000000..f091abf --- /dev/null +++ b/.ruby-gemset @@ -0,0 +1 @@ +KaiaHealth-json_spec diff --git a/.ruby-version b/.ruby-version new file mode 100644 index 0000000..be94e6f --- /dev/null +++ b/.ruby-version @@ -0,0 +1 @@ +3.2.2 diff --git a/Gemfile b/Gemfile index 5d20956..b4e2a20 100644 --- a/Gemfile +++ b/Gemfile @@ -1,8 +1,3 @@ source "https://rubygems.org" gemspec - -group :test do - gem "codeclimate-test-reporter", "~> 1.0.0" - gem "cucumber", "~> 1.3" -end diff --git a/README.md b/README.md index 5a09c63..cfee92c 100644 --- a/README.md +++ b/README.md @@ -1,11 +1,8 @@ # json_spec -Easily handle JSON in RSpec and Cucumber +Attempt at a maintained frok from [collectiveidea/json_spec](https://github.com/collectiveidea/json_spec) -[![Gem Version](https://img.shields.io/gem/v/json_spec.svg?style=flat)](http://rubygems.org/gems/json_spec) -[![Build Status](https://img.shields.io/travis/collectiveidea/json_spec/master.svg?style=flat)](https://travis-ci.org/collectiveidea/json_spec) -[![Code Climate](https://img.shields.io/codeclimate/github/collectiveidea/json_spec.svg?style=flat)](https://codeclimate.com/github/collectiveidea/json_spec) -[![Dependency Status](https://img.shields.io/gemnasium/collectiveidea/json_spec.svg?style=flat)](https://gemnasium.com/collectiveidea/json_spec) +Easily handle JSON in RSpec and Cucumber ## RSpec diff --git a/json_spec.gemspec b/json_spec.gemspec index bcd7d61..e5b06ce 100644 --- a/json_spec.gemspec +++ b/json_spec.gemspec @@ -2,21 +2,29 @@ Gem::Specification.new do |gem| gem.name = "json_spec" - gem.version = "1.1.5" + gem.version = "1.2.0" - gem.authors = ["Steve Richert"] - gem.email = ["steve.richert@gmail.com"] + gem.authors = ["Steve Richert", "Kaia Health"] + gem.email = ["steve.richert@gmail.com", "backend@kaiahealth.com"] gem.summary = "Easily handle JSON in RSpec and Cucumber" gem.description = "RSpec matchers and Cucumber steps for testing JSON content" - gem.homepage = "https://github.com/collectiveidea/json_spec" + gem.homepage = "https://github.com/KaiaHealth/json_spec" gem.license = "MIT" gem.add_dependency "multi_json", "~> 1.0" - gem.add_dependency "rspec", ">= 2.0", "< 4.0" + gem.required_ruby_version = '>= 3.0', '< 3.3' + + gem.add_dependency "rspec-core", ">= 2.0", "< 4.0" - gem.add_development_dependency "bundler", "~> 1.0" + gem.add_development_dependency "bundler", "~> 2.4" gem.add_development_dependency "rake", "~> 10.0" + gem.add_development_dependency "cucumber", "~> 9.0" + gem.add_development_dependency "rspec" # Versioned via rspec-core - gem.files = `git ls-files`.split($\) - gem.test_files = gem.files.grep(/^(features|spec)/) + gem.files = Dir[ + 'CHANGELOG.md', + 'LICENSE.txt', + 'README.md', + 'lib/**/*' + ] end