minitest-ok 0.3.0 → 0.3.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +12 -0
- data/Rakefile +6 -3
- data/lib/minitest/ok.rb +3 -3
- data/test/minitest/ok_test.rb +2 -2
- data/test/test_helper.rb +2 -2
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 67c3d366a946d973e09f4c7b444009531c174f3c
|
4
|
+
data.tar.gz: 926cb6753f06a72825e1d8d9144dcafcedf1bfc1
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: f4295a3a39519adb857ae9e19a68b2ddf61e744561a1894253b4383782027e1a8417e999559a39dea301bc9bf016fb93d280f6802aa9ef8b522f3f1c595927e2
|
7
|
+
data.tar.gz: df827fb533a5a239f25c13991e76d805a807bf3b01606acc2a0aeae7d765393c3b1be87a7c225d5699951f70a66114db4da2f64346b83c7b1c0001e924bcf801
|
data/README.md
CHANGED
@@ -138,6 +138,18 @@ $License: MIT License $
|
|
138
138
|
|
139
139
|
## History
|
140
140
|
|
141
|
+
### 2018-11-13: Release 0.3.1
|
142
|
+
|
143
|
+
* [bugfix] add change history to README.
|
144
|
+
* [bugfix] update copyright year.
|
145
|
+
|
146
|
+
|
147
|
+
### 2018-11-12: Release 0.3.0
|
148
|
+
|
149
|
+
* [bugfix] `ok {}` shows filename and lineno correctly error happened.
|
150
|
+
* [change] `ok {} == nil` calls `assert_nil()` instead of `assert_equal()`.
|
151
|
+
* [bugfix] update test script to run successfully on recent ruby.
|
152
|
+
|
141
153
|
|
142
154
|
### 2016-09-07: Release 0.2.0
|
143
155
|
|
data/Rakefile
CHANGED
@@ -39,18 +39,21 @@ desc "edit files (for release preparation)"
|
|
39
39
|
task :edit do
|
40
40
|
rel = ENV['rel'] or
|
41
41
|
raise "ERROR: 'rel' environment variable expected."
|
42
|
+
copyright = "copyright(c) 2015-2018 kuwata-lab.com all rights reserved"
|
42
43
|
filenames = Dir[*%w[lib/**/*.rb test/**/*_test.rb test/test_helper.rb *.gemspec]]
|
43
44
|
filenames.each do |fname|
|
44
45
|
File.open(fname, 'r+', encoding: 'utf-8') do |f|
|
45
46
|
content = f.read()
|
46
|
-
x = content
|
47
|
-
|
47
|
+
x = content
|
48
|
+
x = x.gsub(/\$Release:.*?\$/, "$Release: #{rel} $")
|
49
|
+
x = x.gsub(/\$Copyright:.*?\$/, "$Copyright: #{copyright} $")
|
50
|
+
if x == content
|
48
51
|
puts "[_] #{fname}"
|
49
52
|
else
|
50
53
|
puts "[C] #{fname}"
|
51
54
|
f.rewind()
|
52
55
|
f.truncate(0)
|
53
|
-
f.write(
|
56
|
+
f.write(x)
|
54
57
|
end
|
55
58
|
end
|
56
59
|
end
|
data/lib/minitest/ok.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
|
3
3
|
###
|
4
|
-
### $Release: 0.3.
|
5
|
-
### $Copyright: copyright(c) 2015 kuwata-lab.com all rights reserved $
|
4
|
+
### $Release: 0.3.1 $
|
5
|
+
### $Copyright: copyright(c) 2015-2018 kuwata-lab.com all rights reserved $
|
6
6
|
### $License: MIT License $
|
7
7
|
###
|
8
8
|
|
@@ -59,7 +59,7 @@ module Minitest
|
|
59
59
|
|
60
60
|
module Ok
|
61
61
|
|
62
|
-
VERSION = '$Release: 0.3.
|
62
|
+
VERSION = '$Release: 0.3.1 $'.split()[1]
|
63
63
|
|
64
64
|
|
65
65
|
class Msg < Proc # :nodoc:
|
data/test/minitest/ok_test.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
|
3
3
|
###
|
4
|
-
### $Release: 0.3.
|
5
|
-
### $Copyright: copyright(c) 2015 kuwata-lab.com all rights reserved $
|
4
|
+
### $Release: 0.3.1 $
|
5
|
+
### $Copyright: copyright(c) 2015-2018 kuwata-lab.com all rights reserved $
|
6
6
|
### $License: MIT License $
|
7
7
|
###
|
8
8
|
|
data/test/test_helper.rb
CHANGED
@@ -1,8 +1,8 @@
|
|
1
1
|
# -*- coding: utf-8 -*-
|
2
2
|
|
3
3
|
###
|
4
|
-
### $Release: 0.3.
|
5
|
-
### $Copyright: copyright(c) 2015 kuwata-lab.com all rights reserved $
|
4
|
+
### $Release: 0.3.1 $
|
5
|
+
### $Copyright: copyright(c) 2015-2018 kuwata-lab.com all rights reserved $
|
6
6
|
### $License: MIT License $
|
7
7
|
###
|
8
8
|
|