xmp2assert 1 → 2

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 359f8dd94e42daf5ec326092ce2a5f6f0e7c2e12
4
- data.tar.gz: b8b3d51036e2e0f6747de9f5cc5b7ac6f8ba21a0
3
+ metadata.gz: 499b5b5dbee30515d03a50c57cebc85905904a2d
4
+ data.tar.gz: 90b1f2cfb97885b646aec7568750020ff5f6399d
5
5
  SHA512:
6
- metadata.gz: 8e30f7caa4f14ba03804fb9a2e5f4ed6f911d32324051d9e50130e3146fd85a233de37061e6be7e294818c018441314a8092da6b098abf0a1d8ca8d5ca15017d
7
- data.tar.gz: 3fb6f258658deec6fb473b1c57fe1925dabaf96f9213c6ec84bf4f7c541a33cc32f5cf3489249bac8e8c6de21e3641c9cee24a501e83fe096e71967931582e81
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
- def self.expandfs argv
36
- files = []
37
- argv.each do |i|
38
- p = Pathname.new i
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 klass.empty? then
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 klass.include? :'=>' then
47
+ if k.include? :'=>' then
67
48
  t.eval binding
68
49
  end
69
- if klass.include? :'>>' then
50
+ if k.include? :'>>' then
70
51
  assert_capture2e o, f
71
52
  end
72
53
  end
@@ -24,4 +24,4 @@
24
24
  # SOFTWARE.
25
25
  ;
26
26
 
27
- XMP2Assert::VERSION = 1
27
+ XMP2Assert::VERSION = 2
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: '1'
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-03 00:00:00.000000000 Z
11
+ date: 2017-04-04 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bundler