Skip to content

Commit 3756042

Browse files
committed
Update to Ruby 3.2 and cleaning up
1 parent e5f1380 commit 3756042

File tree

9 files changed

+7
-38
lines changed

9 files changed

+7
-38
lines changed

.ruby-version

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2.7.1
1+
3.2.0

.tool-versions

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
ruby 3.2.1

Gemfile

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,6 @@ source 'http://rubygems.org'
33
# Specify your gem's dependencies in spinach.gemspec
44
gemspec
55

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

98
group :docs do

README.markdown

Lines changed: 2 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,6 @@
22

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

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

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

2220
## Getting started
2321

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

381379
## License
382380

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

385383
[gherkin]: http://github.com/codegram/gherkin-ruby
386384
[cucumber]: http://github.com/cucumber/cucumber

bin/spinach

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#!/usr/bin/env ruby
22

33
begin
4-
require "bundler/setup"
4+
require "bundler/setup"
55
rescue LoadError
66
end
77

features/support/env.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,6 @@
11
require 'minitest/autorun'
22
require 'minitest/spec'
33
require_relative 'filesystem'
4-
require 'simplecov'
5-
6-
if ENV['CI'] && !defined?(Rubinius)
7-
require 'coveralls'
8-
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
9-
require 'simplecov'
10-
11-
SimpleCov.start do
12-
add_filter '/test/'
13-
add_filter '/features/'
14-
end
15-
end
16-
174

185
Spinach.hooks.after_scenario do |scenario|
196
FileUtils.rm_rf(Filesystem.dirs)

lib/spinach/version.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
module Spinach
22
# Spinach version.
3-
VERSION = "0.11.0"
3+
VERSION = "0.12.0"
44
end

spinach.gemspec

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,22 +3,19 @@ require File.expand_path('../lib/spinach/version', __FILE__)
33

44
Gem::Specification.new do |gem|
55
gem.authors = ["Josep Jaume Rey", "Josep M. Bach", "Oriol Gual", "Marc Divins Castellvi"]
6-
7-
6+
87
gem.description = %q{Spinach is a BDD framework on top of gherkin}
98
gem.summary = %q{Spinach is a BDD framework on top of gherkin}
109
gem.homepage = "http://github.com/codegram/spinach"
1110
gem.license = 'MIT'
1211

1312
gem.add_runtime_dependency 'gherkin-ruby', '>= 0.3.2'
1413
gem.add_runtime_dependency 'colorize'
15-
gem.add_runtime_dependency 'json'
1614
gem.add_development_dependency 'rake'
1715
gem.add_development_dependency 'mocha', "~> 1.5.0"
1816
gem.add_development_dependency 'sinatra'
1917
gem.add_development_dependency 'capybara'
2018
gem.add_development_dependency 'pry'
21-
gem.add_development_dependency 'simplecov'
2219
gem.add_development_dependency 'rspec'
2320
gem.add_development_dependency 'minitest', '< 5.0'
2421
gem.add_development_dependency 'fakefs', ">= 0.5.2"

test/test_helper.rb

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,3 @@
1-
require 'simplecov'
2-
require 'coveralls'
3-
4-
SimpleCov.formatter = Coveralls::SimpleCov::Formatter
5-
if ENV['CI'] && !defined?(Rubinius)
6-
require 'simplecov'
7-
8-
SimpleCov.start do
9-
add_filter '/test/'
10-
add_filter '/features/'
11-
end
12-
end
13-
141
require 'minitest/autorun'
152
require 'minitest/spec'
163
require 'mocha/minitest'

0 commit comments

Comments
 (0)