Skip to content

Commit c2a3542

Browse files
havenwoodpkuczynski
authored andcommitted
Update tf for compatibility with new Gems and Rubies (#9)
1 parent 2ebae21 commit c2a3542

29 files changed

+32
-19
lines changed

.travis.yml

+5-3
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,11 @@ rvm:
55
- 1.9.3
66
- 2.0.0
77
- 2.1.0
8-
- 2.2.6
9-
- 2.3.3
10-
- 2.4.0
8+
- 2.2.10
9+
- 2.3.8
10+
- 2.4.5
11+
- 2.5.3
12+
- 2.6.1
1113
before_script:
1214
- sudo apt-get update
1315
- sudo apt-get install bash zsh

CHANGELOG.md

+9
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
# Changelog
22

3+
## 0.4.5
4+
date: 2019-02-18
5+
- ensure old Rubies load the Minitest gem
6+
- add a Travis badge
7+
- update ruby versions
8+
- update Minitest for version 5 changes
9+
- fix file executable permissions
10+
- remove deprecated RubyGem option that's ignored
11+
312
## 0.4.4
413
date: 2017-01-21
514

Gemfile

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
1-
#ruby=2.4.0
1+
#ruby=2.6.1
22
#ruby-gemset=tf
33
source 'https://rubygems.org'
44

55
gemspec
66

7-
gem 'minitest' if RUBY_VERSION < "1.9.1"
7+
gem 'minitest' if RUBY_VERSION < "1.9.3"

LICENSE

100755100644
File mode changed.

README.md

100755100644
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Testing Framework [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/mpapis/tf)
1+
# Testing Framework [![Code Climate](https://codeclimate.com/badge.png)](https://codeclimate.com/github/mpapis/tf) [![Build Status](https://travis-ci.org/rvm/tf.svg?branch=master)](https://travis-ci.org/rvm/tf)
22

33
TF is a pluggable framework for testing shell scripts (at least now).
44
TF also is an umbrella which incorporates (eventually) multiple gems, each of which provides additional functionality
@@ -18,7 +18,7 @@ Filename has to end with `_comment_test.sh`
1818
Example test file:
1919

2020
## User comments start with double #
21-
## command can be writen in one line with multiple tests:
21+
## command can be written in one line with multiple tests:
2222
true # status=0; match=/^$/
2323
## or tests can be placed in following lines:
2424
false

lib/plugins/tf/comment_test_input.rb

100755100644
File mode changed.

lib/plugins/tf/env_arr_test.rb

100755100644
File mode changed.

lib/plugins/tf/env_match_test.rb

100755100644
File mode changed.

lib/plugins/tf/env_type_test.rb

100755100644
File mode changed.

lib/plugins/tf/error_summary_output.rb

100755100644
File mode changed.

lib/plugins/tf/output_match_test.rb

100755100644
File mode changed.

lib/plugins/tf/stats_output.rb

100755100644
File mode changed.

lib/plugins/tf/status_test.rb

100755100644
File mode changed.

lib/plugins/tf/text_output.rb

100755100644
File mode changed.

lib/tf/active_patches.rb

100755100644
File mode changed.

lib/tf/environment.rb

100755100644
File mode changed.

lib/tf/plugins.rb

100755100644
File mode changed.

test/comment/bash_comment_test.sh

100644100755
File mode changed.

test/comment/zsh_comment_test.sh

100644100755
File mode changed.

test/unit/comment_test_input.rb

100755100644
+4-2
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,9 @@
1+
gem 'minitest'
2+
13
require 'minitest/autorun'
24
require 'plugins/tf/comment_test_input'
35

4-
class TestCommentTestInput < MiniTest::Unit::TestCase
6+
class TestCommentTestInput < Minitest::Test
57
def setup
68
@test = TF::CommentTestInput
79
@file1 = Tempfile.new(['','_comment_test.sh'])
@@ -12,7 +14,7 @@ def teardown
1214
@file1.unlink
1315
@file2.unlink
1416
end
15-
17+
1618
def file_open file, &block
1719
file.open
1820
block.call

test/unit/env_arr_test.rb

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'minitest/autorun'
22
require 'plugins/tf/env_arr_test'
33

4-
class TestEnvArrTest < MiniTest::Unit::TestCase
4+
class TestEnvArrTest < Minitest::Test
55
def setup
66
@test = TF::EnvArrTest.new
77
end

test/unit/env_match_test.rb

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'minitest/autorun'
22
require 'plugins/tf/env_match_test'
33

4-
class TestEnvMatchTest < MiniTest::Unit::TestCase
4+
class TestEnvMatchTest < Minitest::Test
55
def setup
66
@test = TF::EnvMatchTest.new
77
end

test/unit/env_type_test.rb

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'minitest/autorun'
22
require 'plugins/tf/env_type_test'
33

4-
class TestEnvTypeTest < MiniTest::Unit::TestCase
4+
class TestEnvTypeTest < Minitest::Test
55
def setup
66
@test = TF::EnvTypeTest.new
77
end

test/unit/environment_test.rb

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
require 'minitest/autorun'
22

3-
class TestEnvironment < MiniTest::Unit::TestCase
3+
class TestEnvironment < Minitest::Test
44
def setup
55
@test = TF::Environment
66
end

test/unit/error_summary_output.rb

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'minitest/autorun'
22
require 'plugins/tf/error_summary_output'
33

4-
class TestErrorSummaryOutput < MiniTest::Unit::TestCase
4+
class TestErrorSummaryOutput < Minitest::Test
55
def setup
66
@test = TF::ErrorSummaryOutput.new self
77
@outputs = []

test/unit/output_match_test.rb

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'minitest/autorun'
22
require 'plugins/tf/output_match_test'
33

4-
class TestOutputMatchTest < MiniTest::Unit::TestCase
4+
class TestOutputMatchTest < Minitest::Test
55
def setup
66
@test = TF::OutputMatchTest.new
77
end

test/unit/stats_output.rb

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'minitest/autorun'
22
require 'plugins/tf/stats_output'
33

4-
class TestStatsOutput < MiniTest::Unit::TestCase
4+
class TestStatsOutput < Minitest::Test
55
def setup
66
@test = TF::StatsOutput.new
77
end

test/unit/status_test.rb

100755100644
+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
require 'minitest/autorun'
22
require 'plugins/tf/status_test'
33

4-
class TestStatusTest < MiniTest::Unit::TestCase
4+
class TestStatusTest < Minitest::Test
55
def setup
66
@test = TF::StatusTest.new
77
end

tf.gemspec

100755100644
+2-2
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
Gem::Specification.new do |s|
22
s.name = "tf"
3-
s.version = "0.4.4"
3+
s.version = "0.4.5"
44
s.summary = "Testing Framework"
55
s.email = "[email protected]"
66
s.homepage = "http://github.com/mpapis/tf"
77
s.license = "Apache-2.0"
88
s.description = "Testing Framework solely based on plugins. For now only tests using Bash."
9-
s.has_rdoc = false
109
s.author = "Michal Papis"
1110
s.add_dependency('session','~> 3.1')
11+
s.add_development_dependency('minitest', '~> 5')
1212
s.files = Dir.glob("lib/**/*") + %w( bin/tf LICENSE README.md )
1313
s.executables = %w( tf )
1414
end

0 commit comments

Comments
 (0)