minitest_visible 0.1.0 → 0.1.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +4 -4
- data/README.md +9 -0
- data/lib/minitest_visible.rb +4 -0
- data/lib/minitest_visible/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 5ada91a454e6dd8ce8428397e1a624e867d09339
|
4
|
+
data.tar.gz: cc79c1ab2b28698c6de0be4b3963bf603f8eddf0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 8194e10b11a6b55cf974aa895b8414376e3b27dba0e1e1a0e7902d2600ba44d6eec3e42b1f6bb2a828f4b2f02dcc93869416e815be2f13f244cd6303306210f5
|
7
|
+
data.tar.gz: c9d47d3d9455f51447233d2723f3e9b25b614f19922e249f65495ba684ac8a1445d3b63f3217288fc6b83d667fb41fd1ccd3195e18fb7f0aaf795492f0fef5fe
|
data/README.md
CHANGED
@@ -78,6 +78,15 @@ While this is a bit more ceremony than is desirable, test files have a fair bit
|
|
78
78
|
of boilerplate stuff as it is. The template folder has the file xyzzy_test.rb
|
79
79
|
which is my template for creating test files. Copy, rename and use as you wish.
|
80
80
|
|
81
|
+
## Compatibility
|
82
|
+
|
83
|
+
The API of this gem is new compared to how it was under versions before 0.1.0.
|
84
|
+
Code using the older API will continue to work and tests will not suddenly
|
85
|
+
break (at least not due to minitest_visible). However, test files using the
|
86
|
+
obsolete API will now generate the following warning:
|
87
|
+
|
88
|
+
The track method is deprecated. Use include MinitestVisible instead.
|
89
|
+
|
81
90
|
## Contributing
|
82
91
|
|
83
92
|
1. Fork it
|
data/lib/minitest_visible.rb
CHANGED
@@ -14,6 +14,10 @@ module MinitestVisible
|
|
14
14
|
puts "MiniTest version = #{MiniTest::Unit::VERSION}"
|
15
15
|
end
|
16
16
|
|
17
|
+
unless defined? $minitest_visible_once_per_file
|
18
|
+
$minitest_visible_once_per_file = nil
|
19
|
+
end
|
20
|
+
|
17
21
|
if $minitest_visible_once_per_file != file
|
18
22
|
puts "\nRunning test file: #{File.split(file)[1]}"
|
19
23
|
$minitest_visible_once_per_file = file
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: minitest_visible
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Peter Camilleri
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2016-
|
11
|
+
date: 2016-03-22 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|