unified_matchers 0.1.5.0 → 0.1.6.1
Sign up to get free protection for your applications and to get access to all the features.
- data/NEWS +6 -0
- data/Rakefile +1 -1
- data/SPEC.gemspec +3 -3
- data/SPEC.yml +3 -3
- data/lib/unified_matchers.rb +3 -3
- data/lib/unified_matchers/helpers.rb +13 -0
- data/lib/unified_matchers/unified_matcher.rb +1 -0
- data/lib/unified_matchers/version_id.rb +1 -1
- data/test/sanity/multiple-requires.yml +1 -1
- metadata +3 -3
data/NEWS
CHANGED
data/Rakefile
CHANGED
data/SPEC.gemspec
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{unified_matchers}
|
3
|
-
s.version = "0.1.
|
4
|
-
s.date = %q{2007-
|
3
|
+
s.version = "0.1.6.1"
|
4
|
+
s.date = %q{2007-08-15}
|
5
5
|
s.summary = %q{UnifiedMatchers}
|
6
6
|
s.email = ["nicolas.pouillard@gmail.com", "gaelle.champarnaud@gmail.com"]
|
7
7
|
s.homepage = %q{http://api.feydakins.org/unified_matchers}
|
@@ -9,5 +9,5 @@ Gem::Specification.new do |s|
|
|
9
9
|
s.description = %q{}
|
10
10
|
s.authors = ["Nicolas Pouillard", "Ga\303\253lle Champarnaud"]
|
11
11
|
s.files = ["lib/unified_matchers.rb", "lib/unified_matchers/assertions.rb", "lib/unified_matchers/case_equality_based_matcher.rb", "lib/unified_matchers/diff_matcher.rb", "lib/unified_matchers/equality_based_matcher.rb", "lib/unified_matchers/gnu_diff_matcher.rb", "lib/unified_matchers/helpers.rb", "lib/unified_matchers/lcs_diff_matcher.rb", "lib/unified_matchers/matcher_result.rb", "lib/unified_matchers/matcher_results.rb", "lib/unified_matchers/stream_matcher.rb", "lib/unified_matchers/strict_equality_based_matcher.rb", "lib/unified_matchers/unified_matcher.rb", "lib/unified_matchers/version_id.rb", "test/check-pkg-unified_matchers.yml", "test/check.yml", "test/fixtures", "test/functional", "test/pkg", "test/sanity", "test/sanity-suite.yml", "test/unit", "test/unit-suite.yml", "test/fixtures/bird.txt", "test/fixtures/birds.txt", "test/fixtures/my.file", "test/fixtures/pluralizer", "test/sanity/multiple-requires.yml", "test/sanity/single-requires.yml", "AUTHORS", "ChangeLog", "NEWS", "Rakefile", "README", "SPEC.gemspec", "SPEC.yml"]
|
12
|
-
s.add_dependency(%q<core_ex>, ["~> 0.6.
|
12
|
+
s.add_dependency(%q<core_ex>, ["~> 0.6.6"])
|
13
13
|
end
|
data/SPEC.yml
CHANGED
@@ -3,7 +3,7 @@ Author: The Uttk Team
|
|
3
3
|
License: Ruby License
|
4
4
|
Revision: '$Id$'
|
5
5
|
|
6
|
-
version: !feydakins.org,2006/version dev-ruby/unified_matchers-0.
|
6
|
+
version: !feydakins.org,2006/version dev-ruby/unified_matchers-0.1_p1
|
7
7
|
|
8
8
|
# XXX check also lib/unified_matchers/version_id.rb
|
9
9
|
|
@@ -34,8 +34,8 @@ pkg_files: !filelist
|
|
34
34
|
|
35
35
|
dependencies:
|
36
36
|
core_ex:
|
37
|
-
gem : ~> 0.6.
|
38
|
-
tarball: http://rubyforge.iasi.roedu.net/files/ttk/core_ex-0.
|
37
|
+
gem : ~> 0.6.6
|
38
|
+
tarball: http://rubyforge.iasi.roedu.net/files/ttk/core_ex-0.6_p3.tar.gz
|
39
39
|
vcs : svn://svn.feydakins.org/ruby_ex/trunk/core_ex
|
40
40
|
|
41
41
|
uttk_version: >= 0.3.6.1
|
data/lib/unified_matchers.rb
CHANGED
@@ -7,15 +7,15 @@ require 'pathname'
|
|
7
7
|
|
8
8
|
lib = Pathname.new(__FILE__).dirname
|
9
9
|
vendor = lib.parent + 'vendor'
|
10
|
+
$CORE_EX_VENDORS ||= []
|
11
|
+
$CORE_EX_VENDORS << vendor
|
10
12
|
unless defined? CoreEx
|
11
|
-
$CORE_EX_VENDORS ||= []
|
12
|
-
$CORE_EX_VENDORS << vendor
|
13
13
|
file = vendor + 'core_ex' + 'lib' + 'core_ex'
|
14
14
|
if file.exist?
|
15
15
|
require file.to_s
|
16
16
|
else
|
17
17
|
require 'rubygems' unless ENV['NO_GEM']
|
18
|
-
|
18
|
+
gem 'core_ex'
|
19
19
|
require 'core_ex'
|
20
20
|
end
|
21
21
|
end
|
@@ -24,6 +24,19 @@ module UnifiedMatchers
|
|
24
24
|
|
25
25
|
end # class ::Pathname
|
26
26
|
|
27
|
+
class ::String
|
28
|
+
|
29
|
+
def inspect_for_unified_matchers
|
30
|
+
l = length
|
31
|
+
if l > 20
|
32
|
+
self[0..9].inspect + "..." + self[l-10..l-1].inspect
|
33
|
+
else
|
34
|
+
inspect
|
35
|
+
end
|
36
|
+
end
|
37
|
+
|
38
|
+
end # class ::String
|
39
|
+
|
27
40
|
test_section __FILE__ do
|
28
41
|
|
29
42
|
end
|
@@ -38,7 +38,7 @@ UnifiedMatchers Sanity Multiple Requires Test Suite: !S::Suite
|
|
38
38
|
path_list = PathList[lib_dir/'(**/*).rb']
|
39
39
|
path_list.each do |_, path|
|
40
40
|
require_dependency path
|
41
|
-
assert(Dependencies.loaded.
|
41
|
+
assert(Dependencies.loaded.to_a.grep(/(^|\/)#{Regexp.quote(path)}$/).size >= 1,
|
42
42
|
"#{path} not in Dependencies.loaded #{Dependencies.loaded.inspect}")
|
43
43
|
end
|
44
44
|
end
|
metadata
CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.9.0
|
|
3
3
|
specification_version: 1
|
4
4
|
name: unified_matchers
|
5
5
|
version: !ruby/object:Gem::Version
|
6
|
-
version: 0.1.
|
7
|
-
date: 2007-
|
6
|
+
version: 0.1.6.1
|
7
|
+
date: 2007-08-15 00:00:00 +02:00
|
8
8
|
summary: UnifiedMatchers
|
9
9
|
require_paths:
|
10
10
|
- lib
|
@@ -88,5 +88,5 @@ dependencies:
|
|
88
88
|
requirements:
|
89
89
|
- - ~>
|
90
90
|
- !ruby/object:Gem::Version
|
91
|
-
version: 0.6.
|
91
|
+
version: 0.6.6
|
92
92
|
version:
|