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 5c8ce5f
Show file tree
Hide file tree
Showing 6 changed files with 56 additions and 16 deletions.
44 changes: 44 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
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.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 --tags 'not @fail'
- name: Cucumber (expected to fail)
run: bundle exec cucumber --tags '@fail' --wip

# rubocop:
# runs-on: ubuntu-latest
# steps:
# - uses: actions/checkout@v3
# - name: Set up Ruby
# uses: ruby/setup-ruby@v1
# with:
# ruby-version: 3.2
# bundler-cache: true
# - name: Rubocop
# run: bundle exec rubocop
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
5 changes: 0 additions & 5 deletions Gemfile
Original file line number Diff line number Diff line change
@@ -1,8 +1,3 @@
source "https://rubygems.org"

gemspec

group :test do
gem "codeclimate-test-reporter", "~> 1.0.0"
gem "cucumber", "~> 1.3"
end
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
14 changes: 8 additions & 6 deletions json_spec.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,20 +2,22 @@

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.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)/)
Expand Down

0 comments on commit 5c8ce5f

Please sign in to comment.