Skip to content

Commit

Permalink
Working base branch
Browse files Browse the repository at this point in the history
  • Loading branch information
mkon committed Nov 28, 2023
1 parent 9acb719 commit cbe8fbb
Show file tree
Hide file tree
Showing 6 changed files with 55 additions and 17 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -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: ['2.99', '3.12']
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
1 change: 1 addition & 0 deletions .ruby-gemset
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
KaiaHealth-json_spec
1 change: 1 addition & 0 deletions .ruby-version
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
3.2.2
7 changes: 3 additions & 4 deletions Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ source "https://rubygems.org"

gemspec

group :test do
gem "codeclimate-test-reporter", "~> 1.0.0"
gem "cucumber", "~> 1.3"
end
rspec_version = ENV.fetch('RSPEC', '3.12')

gem "rspec-core", "~> #{rspec_version}.0"
7 changes: 2 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
@@ -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

Expand Down
24 changes: 16 additions & 8 deletions json_spec.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -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"
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

0 comments on commit cbe8fbb

Please sign in to comment.