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 CHANGED
@@ -1,3 +1,9 @@
1
+ New 0.1_p1, 2007-08-15:
2
+
3
+ * Update to core_ex 0.6_p3.
4
+ * Improve inspection of long strings by shortening them (using '...').
5
+ * Use gem instead of require_gem.
6
+
1
7
  = New 0.1, 2007-01-14:
2
8
 
3
9
  Initial Release.
data/Rakefile CHANGED
@@ -4,5 +4,5 @@
4
4
  # Revision:: $Id$
5
5
 
6
6
  require 'rubygems'
7
- require_gem 'core_ex'
7
+ gem 'core_ex'
8
8
  load 'core_ex/rakefile_base.rf'
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = %q{unified_matchers}
3
- s.version = "0.1.5.0"
4
- s.date = %q{2007-01-14}
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.5"])
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.1
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.5
38
- tarball: http://rubyforge.iasi.roedu.net/files/ttk/core_ex-0.6.tar.gz
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
@@ -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
- require_gem 'core_ex'
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
@@ -28,6 +28,7 @@ module UnifiedMatchers
28
28
 
29
29
  class_inheritable_hash :rules, :ref_triggers
30
30
  class_inheritable_accessor :last_defined_rule, :order
31
+ self.last_defined_rule = nil
31
32
  self.rules = {}
32
33
  self.ref_triggers = {}
33
34
  self.order = []
@@ -5,6 +5,6 @@
5
5
 
6
6
  module UnifiedMatchers
7
7
 
8
- VersionId = Version.parse("dev-ruby/unified_matchers-0.1")
8
+ VersionId = Version.parse("dev-ruby/unified_matchers-0.1_p1")
9
9
 
10
10
  end # module UnifiedMatchers
@@ -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.include?(path),
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.5.0
7
- date: 2007-01-14 00:00:00 +01:00
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.5
91
+ version: 0.6.6
92
92
  version: