exemplor 2.6.0 → 2.7.0
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.
- data/TODO +1 -2
- data/VERSION +1 -1
- data/examples.rb +1 -0
- data/examples/check_parsing.rb +16 -0
- data/exemplor.gemspec +4 -2
- data/lib/exemplor.rb +1 -1
- metadata +4 -2
data/TODO
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
2.
|
1
|
+
2.7.0
|
data/examples.rb
CHANGED
@@ -48,6 +48,7 @@ eg { check_output_matches_expected_for :helpers }
|
|
48
48
|
eg { check_output_matches_expected_for :with_setup }
|
49
49
|
eg { check_output_matches_expected_for :checking_nil }
|
50
50
|
eg { check_output_matches_expected_for :dumping_classes }
|
51
|
+
eg { check_output_matches_expected_for :check_parsing }
|
51
52
|
|
52
53
|
eg "called with --list arg" do
|
53
54
|
list = YAML.load(run_example(:with_setup, '--list'))
|
@@ -0,0 +1,16 @@
|
|
1
|
+
require 'exemplor'
|
2
|
+
|
3
|
+
eg "with brackets" do
|
4
|
+
Check(String.new('test'))
|
5
|
+
end
|
6
|
+
|
7
|
+
eg "with brackets and is" do
|
8
|
+
Check(String.new('test')).is("test")
|
9
|
+
end
|
10
|
+
|
11
|
+
__END__
|
12
|
+
|
13
|
+
(I) with brackets:
|
14
|
+
(i) String.new('test'): test
|
15
|
+
(s) with brackets and is:
|
16
|
+
(s) String.new('test'): test
|
data/exemplor.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{exemplor}
|
8
|
-
s.version = "2.
|
8
|
+
s.version = "2.7.0"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Myles Byrne"]
|
12
|
-
s.date = %q{2009-10-
|
12
|
+
s.date = %q{2009-10-23}
|
13
13
|
s.email = %q{myles@myles.id.au}
|
14
14
|
s.extra_rdoc_files = [
|
15
15
|
"README"
|
@@ -25,6 +25,7 @@ Gem::Specification.new do |s|
|
|
25
25
|
"examples/assertion_failure.rb",
|
26
26
|
"examples/assertion_success.rb",
|
27
27
|
"examples/assertion_success_and_failure.rb",
|
28
|
+
"examples/check_parsing.rb",
|
28
29
|
"examples/check_with_disambiguation.rb",
|
29
30
|
"examples/checking_nil.rb",
|
30
31
|
"examples/dumping_classes.rb",
|
@@ -47,6 +48,7 @@ Gem::Specification.new do |s|
|
|
47
48
|
"examples/assertion_failure.rb",
|
48
49
|
"examples/assertion_success.rb",
|
49
50
|
"examples/assertion_success_and_failure.rb",
|
51
|
+
"examples/check_parsing.rb",
|
50
52
|
"examples/check_with_disambiguation.rb",
|
51
53
|
"examples/checking_nil.rb",
|
52
54
|
"examples/dumping_classes.rb",
|
data/lib/exemplor.rb
CHANGED
@@ -71,7 +71,7 @@ module Exemplor
|
|
71
71
|
def Check(value)
|
72
72
|
file, line_number = caller.first.match(/^(.+):(\d+)/).captures
|
73
73
|
line = File.read(file).map[line_number.to_i - 1]
|
74
|
-
name = line[/Check\((.+?)\)/,1]
|
74
|
+
name = line[/Check\((.+?)\)($|\.is.+)/,1]
|
75
75
|
check = Check.new(name, value)
|
76
76
|
_checks << check
|
77
77
|
check
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: exemplor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
4
|
+
version: 2.7.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Myles Byrne
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-10-
|
12
|
+
date: 2009-10-23 00:00:00 +11:00
|
13
13
|
default_executable:
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
@@ -51,6 +51,7 @@ files:
|
|
51
51
|
- examples/assertion_failure.rb
|
52
52
|
- examples/assertion_success.rb
|
53
53
|
- examples/assertion_success_and_failure.rb
|
54
|
+
- examples/check_parsing.rb
|
54
55
|
- examples/check_with_disambiguation.rb
|
55
56
|
- examples/checking_nil.rb
|
56
57
|
- examples/dumping_classes.rb
|
@@ -95,6 +96,7 @@ test_files:
|
|
95
96
|
- examples/assertion_failure.rb
|
96
97
|
- examples/assertion_success.rb
|
97
98
|
- examples/assertion_success_and_failure.rb
|
99
|
+
- examples/check_parsing.rb
|
98
100
|
- examples/check_with_disambiguation.rb
|
99
101
|
- examples/checking_nil.rb
|
100
102
|
- examples/dumping_classes.rb
|