Skip to content

Commit

Permalink
Update to Ruby 3.2 and cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
oriolgual committed Feb 9, 2023
1 parent e5f1380 commit 3756042
Show file tree
Hide file tree
Showing 9 changed files with 7 additions and 38 deletions.
2 changes: 1 addition & 1 deletion .ruby-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2.7.1
3.2.0
1 change: 1 addition & 0 deletions .tool-versions
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
ruby 3.2.1
1 change: 0 additions & 1 deletion Gemfile
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@ source 'http://rubygems.org'
# Specify your gem's dependencies in spinach.gemspec
gemspec

gem 'coveralls', require: false
gem 'pry-byebug', platforms: [:ruby]

group :docs do
Expand Down
6 changes: 2 additions & 4 deletions README.markdown
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

[![Gem Version](https://badge.fury.io/rb/spinach.svg)](https://badge.fury.io/rb/spinach)
![Tests](https://github.com/codegram/spinach/workflows/Tests/badge.svg)
[![Coverage Status](https://coveralls.io/repos/codegram/spinach/badge.png?branch=master)](https://coveralls.io/r/codegram/spinach)
![](https://ruby-gem-downloads-badge.herokuapp.com/rails)

Spinach is a high-level BDD framework that leverages the expressive
[Gherkin language][gherkin] (used by [Cucumber][cucumber]) to help you define
Expand All @@ -17,7 +15,7 @@ Conceived as an alternative to Cucumber, here are some of its design goals:
- Step reusability: In case you want to reuse steps across features, you can
always wrap those in plain ol' Ruby modules.

Spinach is tested against Ruby MRI **2.4, 2.5, 2.6 and 2.7** as well as **latest JRuby 9000**.
Spinach is tested against Ruby MRI **2.4, 2.5, 2.6, 2.7, 3.0, 3.1, 3.2** as well as **JRuby **.

## Getting started

Expand Down Expand Up @@ -380,7 +378,7 @@ You can easily contribute to Spinach. Its codebase is simple and

## License

MIT (Expat) License. Copyright 2011-2016 [Codegram Technologies](http://codegram.com)
MIT (Expat) License. Copyright 2011-2023 [Codegram Technologies](http://codegram.com)

[gherkin]: http://github.com/codegram/gherkin-ruby
[cucumber]: http://github.com/cucumber/cucumber
Expand Down
2 changes: 1 addition & 1 deletion bin/spinach
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#!/usr/bin/env ruby

begin
require "bundler/setup"
require "bundler/setup"
rescue LoadError
end

Expand Down
13 changes: 0 additions & 13 deletions features/support/env.rb
Original file line number Diff line number Diff line change
@@ -1,19 +1,6 @@
require 'minitest/autorun'
require 'minitest/spec'
require_relative 'filesystem'
require 'simplecov'

if ENV['CI'] && !defined?(Rubinius)
require 'coveralls'
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
require 'simplecov'

SimpleCov.start do
add_filter '/test/'
add_filter '/features/'
end
end


Spinach.hooks.after_scenario do |scenario|
FileUtils.rm_rf(Filesystem.dirs)
Expand Down
2 changes: 1 addition & 1 deletion lib/spinach/version.rb
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
module Spinach
# Spinach version.
VERSION = "0.11.0"
VERSION = "0.12.0"
end
5 changes: 1 addition & 4 deletions spinach.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,19 @@ require File.expand_path('../lib/spinach/version', __FILE__)

Gem::Specification.new do |gem|
gem.authors = ["Josep Jaume Rey", "Josep M. Bach", "Oriol Gual", "Marc Divins Castellvi"]
gem.email = ["[email protected]", "[email protected]",
"[email protected]", "[email protected]", "[email protected]"]
gem.email = ["[email protected]", "[email protected]", "[email protected]", "[email protected]"]
gem.description = %q{Spinach is a BDD framework on top of gherkin}
gem.summary = %q{Spinach is a BDD framework on top of gherkin}
gem.homepage = "http://github.com/codegram/spinach"
gem.license = 'MIT'

gem.add_runtime_dependency 'gherkin-ruby', '>= 0.3.2'
gem.add_runtime_dependency 'colorize'
gem.add_runtime_dependency 'json'
gem.add_development_dependency 'rake'
gem.add_development_dependency 'mocha', "~> 1.5.0"
gem.add_development_dependency 'sinatra'
gem.add_development_dependency 'capybara'
gem.add_development_dependency 'pry'
gem.add_development_dependency 'simplecov'
gem.add_development_dependency 'rspec'
gem.add_development_dependency 'minitest', '< 5.0'
gem.add_development_dependency 'fakefs', ">= 0.5.2"
Expand Down
13 changes: 0 additions & 13 deletions test/test_helper.rb
Original file line number Diff line number Diff line change
@@ -1,16 +1,3 @@
require 'simplecov'
require 'coveralls'

SimpleCov.formatter = Coveralls::SimpleCov::Formatter
if ENV['CI'] && !defined?(Rubinius)
require 'simplecov'

SimpleCov.start do
add_filter '/test/'
add_filter '/features/'
end
end

require 'minitest/autorun'
require 'minitest/spec'
require 'mocha/minitest'
Expand Down

0 comments on commit 3756042

Please sign in to comment.