mcmire-matchy 0.4.1 → 0.4.2
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +0 -1
- data/Rakefile +3 -0
- data/lib/matchy.rb +8 -2
- data/lib/matchy/version.rb +1 -7
- data/mcmire-matchy.gemspec +87 -0
- metadata +3 -4
- data/VERSION +0 -1
data/.gitignore
CHANGED
data/Rakefile
CHANGED
@@ -1,9 +1,12 @@
|
|
1
1
|
require 'rubygems'
|
2
2
|
require 'rake'
|
3
3
|
|
4
|
+
require File.dirname(__FILE__) + '/lib/matchy/version'
|
5
|
+
|
4
6
|
begin
|
5
7
|
require 'jeweler'
|
6
8
|
Jeweler::Tasks.new do |gem|
|
9
|
+
gem.version = Matchy::VERSION
|
7
10
|
gem.name = "mcmire-matchy"
|
8
11
|
gem.summary = %Q{RSpec-esque matchers for use in Test::Unit}
|
9
12
|
gem.description = %Q{RSpec-esque matchers for use in Test::Unit}
|
data/lib/matchy.rb
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
$:.unshift(File.dirname(__FILE__)) unless
|
2
2
|
$:.include?(File.dirname(__FILE__)) || $:.include?(File.expand_path(File.dirname(__FILE__)))
|
3
3
|
|
4
|
-
require 'test/unit'
|
4
|
+
require 'test/unit/assertions'
|
5
5
|
|
6
6
|
require 'matchy/expectation_builder'
|
7
7
|
require 'matchy/modals'
|
@@ -15,5 +15,11 @@ require 'matchy/built_in/truth_expectations'
|
|
15
15
|
require 'matchy/built_in/operator_expectations'
|
16
16
|
require 'matchy/built_in/change_expectations'
|
17
17
|
|
18
|
-
|
18
|
+
if Object.const_defined?(:Protest)
|
19
|
+
Protest::TestCase.send(:include, Matchy::Expectations::TestCaseExtensions)
|
20
|
+
else
|
21
|
+
require 'test/unit'
|
22
|
+
Test::Unit::TestCase.send(:include, Matchy::Expectations::TestCaseExtensions)
|
23
|
+
end
|
24
|
+
|
19
25
|
include Matchy::CustomMatcher
|
data/lib/matchy/version.rb
CHANGED
@@ -0,0 +1,87 @@
|
|
1
|
+
# Generated by jeweler
|
2
|
+
# DO NOT EDIT THIS FILE DIRECTLY
|
3
|
+
# Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
|
4
|
+
# -*- encoding: utf-8 -*-
|
5
|
+
|
6
|
+
Gem::Specification.new do |s|
|
7
|
+
s.name = %q{mcmire-matchy}
|
8
|
+
s.version = "0.4.2"
|
9
|
+
|
10
|
+
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
+
s.authors = ["Jeremy McAnally"]
|
12
|
+
s.date = %q{2010-01-08}
|
13
|
+
s.description = %q{RSpec-esque matchers for use in Test::Unit}
|
14
|
+
s.email = ["jeremy@entp.com"]
|
15
|
+
s.extra_rdoc_files = [
|
16
|
+
"README.rdoc"
|
17
|
+
]
|
18
|
+
s.files = [
|
19
|
+
".gitignore",
|
20
|
+
"History.txt",
|
21
|
+
"License.txt",
|
22
|
+
"Manifest.txt",
|
23
|
+
"PostInstall.txt",
|
24
|
+
"README.rdoc",
|
25
|
+
"Rakefile",
|
26
|
+
"config/hoe.rb",
|
27
|
+
"config/requirements.rb",
|
28
|
+
"countloc.rb",
|
29
|
+
"lib/matchy.rb",
|
30
|
+
"lib/matchy/built_in/change_expectations.rb",
|
31
|
+
"lib/matchy/built_in/enumerable_expectations.rb",
|
32
|
+
"lib/matchy/built_in/error_expectations.rb",
|
33
|
+
"lib/matchy/built_in/operator_expectations.rb",
|
34
|
+
"lib/matchy/built_in/truth_expectations.rb",
|
35
|
+
"lib/matchy/custom_matcher.rb",
|
36
|
+
"lib/matchy/expectation_builder.rb",
|
37
|
+
"lib/matchy/matcher_builder.rb",
|
38
|
+
"lib/matchy/modals.rb",
|
39
|
+
"lib/matchy/version.rb",
|
40
|
+
"mcmire-matchy.gemspec",
|
41
|
+
"setup.rb",
|
42
|
+
"tasks/deployment.rake",
|
43
|
+
"tasks/environment.rake",
|
44
|
+
"test/all.rb",
|
45
|
+
"test/ruby1.9.compatibility_tests.rb",
|
46
|
+
"test/test_change_expectation.rb",
|
47
|
+
"test/test_custom_matcher.rb",
|
48
|
+
"test/test_enumerable_expectations.rb",
|
49
|
+
"test/test_error_expectations.rb",
|
50
|
+
"test/test_expectation_builder.rb",
|
51
|
+
"test/test_helper.rb",
|
52
|
+
"test/test_matcher_builder.rb",
|
53
|
+
"test/test_modals.rb",
|
54
|
+
"test/test_operator_expectations.rb",
|
55
|
+
"test/test_truth_expectations.rb"
|
56
|
+
]
|
57
|
+
s.homepage = %q{http://github.com/mcmire/matchy}
|
58
|
+
s.rdoc_options = ["--charset=UTF-8"]
|
59
|
+
s.require_paths = ["lib"]
|
60
|
+
s.rubygems_version = %q{1.3.5}
|
61
|
+
s.summary = %q{RSpec-esque matchers for use in Test::Unit}
|
62
|
+
s.test_files = [
|
63
|
+
"test/all.rb",
|
64
|
+
"test/ruby1.9.compatibility_tests.rb",
|
65
|
+
"test/test_change_expectation.rb",
|
66
|
+
"test/test_custom_matcher.rb",
|
67
|
+
"test/test_enumerable_expectations.rb",
|
68
|
+
"test/test_error_expectations.rb",
|
69
|
+
"test/test_expectation_builder.rb",
|
70
|
+
"test/test_helper.rb",
|
71
|
+
"test/test_matcher_builder.rb",
|
72
|
+
"test/test_modals.rb",
|
73
|
+
"test/test_operator_expectations.rb",
|
74
|
+
"test/test_truth_expectations.rb"
|
75
|
+
]
|
76
|
+
|
77
|
+
if s.respond_to? :specification_version then
|
78
|
+
current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
|
79
|
+
s.specification_version = 3
|
80
|
+
|
81
|
+
if Gem::Version.new(Gem::RubyGemsVersion) >= Gem::Version.new('1.2.0') then
|
82
|
+
else
|
83
|
+
end
|
84
|
+
else
|
85
|
+
end
|
86
|
+
end
|
87
|
+
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: mcmire-matchy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.4.
|
4
|
+
version: 0.4.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Jeremy McAnally
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2010-01-
|
12
|
+
date: 2010-01-08 00:00:00 -06:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|
@@ -30,7 +30,6 @@ files:
|
|
30
30
|
- PostInstall.txt
|
31
31
|
- README.rdoc
|
32
32
|
- Rakefile
|
33
|
-
- VERSION
|
34
33
|
- config/hoe.rb
|
35
34
|
- config/requirements.rb
|
36
35
|
- countloc.rb
|
@@ -45,7 +44,7 @@ files:
|
|
45
44
|
- lib/matchy/matcher_builder.rb
|
46
45
|
- lib/matchy/modals.rb
|
47
46
|
- lib/matchy/version.rb
|
48
|
-
- matchy.gemspec
|
47
|
+
- mcmire-matchy.gemspec
|
49
48
|
- setup.rb
|
50
49
|
- tasks/deployment.rake
|
51
50
|
- tasks/environment.rake
|
data/VERSION
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
0.4.1
|