xmp2assert 1 → 2
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/exe/xmpcheck.rb +7 -26
- data/lib/xmp2assert/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: 499b5b5dbee30515d03a50c57cebc85905904a2d
|
4
|
+
data.tar.gz: 90b1f2cfb97885b646aec7568750020ff5f6399d
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4fad80ca13043b9d11e1048fb023c3c5327260526ba8d7fa9578b11d2d883799b83a8e0d15208681260998547f14934a5493dc35f330ff700b4c2f9cbfb78df5
|
7
|
+
data.tar.gz: 335f6ec8854569273212213b4635b6aba37ef37b037371ae52dc90892dbf70a09ed822e8b6635da6f7ab3ca4fb7db3b4bbd355011ed9be11fa1850b92a43b18d
|
data/exe/xmpcheck.rb
CHANGED
@@ -32,41 +32,22 @@ require 'xmp2assert'
|
|
32
32
|
class TC_Main < Test::Unit::TestCase
|
33
33
|
include XMP2Assert::Assertions
|
34
34
|
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
if p.directory? then
|
40
|
-
files += expandfs p.children # recur
|
41
|
-
else
|
42
|
-
files << p
|
43
|
-
end
|
44
|
-
end
|
45
|
-
|
46
|
-
files.map! do |i|
|
47
|
-
XMP2Assert::Quasifile.new i
|
48
|
-
end
|
49
|
-
|
50
|
-
return files
|
51
|
-
end
|
52
|
-
private_class_method :expandfs
|
53
|
-
|
54
|
-
a = expandfs ARGV
|
55
|
-
p a
|
56
|
-
a.each do |f|
|
57
|
-
klass = XMP2Assert::Classifier.classify f
|
35
|
+
ARGV.each do |i|
|
36
|
+
p = Pathname.new i
|
37
|
+
f = XMP2Assert::Quasifile.new p
|
38
|
+
k = XMP2Assert::Classifier.classify f
|
58
39
|
|
59
|
-
if
|
40
|
+
if k.empty? then
|
60
41
|
test f.__FILE__ do
|
61
42
|
pend "no tests for #{f.__FILE__}"
|
62
43
|
end
|
63
44
|
else
|
64
45
|
test f.__FILE__ do
|
65
46
|
t, o = XMP2Assert::Converter.convert f
|
66
|
-
if
|
47
|
+
if k.include? :'=>' then
|
67
48
|
t.eval binding
|
68
49
|
end
|
69
|
-
if
|
50
|
+
if k.include? :'>>' then
|
70
51
|
assert_capture2e o, f
|
71
52
|
end
|
72
53
|
end
|
data/lib/xmp2assert/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: xmp2assert
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: '
|
4
|
+
version: '2'
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Urabe, Shyouhei
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-04-
|
11
|
+
date: 2017-04-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|