exemplor 2010.2.0 → 3000.1.0
Sign up to get free protection for your applications and to get access to all the features.
- data/README.md +221 -0
- data/Rakefile +8 -4
- data/TODO +13 -6
- data/VERSION +1 -1
- data/examples.rb +62 -51
- data/examples/assertion_failure.rb +3 -5
- data/examples/assertion_success.rb +2 -3
- data/examples/assertion_success_and_failure.rb +8 -12
- data/examples/assertion_success_and_info.rb +8 -11
- data/examples/check_parsing.rb +8 -17
- data/examples/checking_nil.rb +6 -5
- data/examples/failure_halts_execution.rb +3 -5
- data/examples/foobar.rb +9 -0
- data/examples/helpers.rb +1 -1
- data/examples/{with_checks.rb → multi_show.rb} +3 -3
- data/examples/no_checks_non_string.rb +1 -1
- data/examples/{check_with_disambiguation.rb → show_with_disambiguation.rb} +2 -2
- data/examples/{dumping_classes.rb → showing_classes.rb} +1 -1
- data/examples/simple_show.rb +15 -0
- data/examples/ten_percent_failures.rb +10 -10
- data/examples/with_setup.rb +5 -7
- data/lib/checker.rb +30 -10
- data/lib/environment.rb +32 -23
- data/lib/examples.rb +2 -1
- data/lib/exemplor.rb +2 -1
- data/lib/result_printer.rb +40 -21
- data/vendor/orderedhash-0.0.6/gemspec.rb +37 -0
- data/vendor/orderedhash-0.0.6/install.rb +213 -0
- data/vendor/orderedhash-0.0.6/lib/orderedautohash.rb +25 -0
- data/vendor/orderedhash-0.0.6/lib/orderedhash.rb +200 -0
- data/vendor/term-ansicolor-1.0.5/CHANGES +28 -0
- data/vendor/term-ansicolor-1.0.5/COPYING +340 -0
- data/vendor/term-ansicolor-1.0.5/README +137 -0
- data/vendor/term-ansicolor-1.0.5/Rakefile +88 -0
- data/vendor/term-ansicolor-1.0.5/VERSION +1 -0
- data/vendor/term-ansicolor-1.0.5/bin/cdiff +19 -0
- data/vendor/term-ansicolor-1.0.5/bin/decolor +12 -0
- data/vendor/term-ansicolor-1.0.5/examples/example.rb +90 -0
- data/vendor/term-ansicolor-1.0.5/install.rb +15 -0
- data/vendor/term-ansicolor-1.0.5/lib/term/ansicolor.rb +102 -0
- data/vendor/term-ansicolor-1.0.5/lib/term/ansicolor/version.rb +10 -0
- data/vendor/term-ansicolor-1.0.5/tests/ansicolor_test.rb +66 -0
- metadata +34 -41
- data/README +0 -152
@@ -0,0 +1,88 @@
|
|
1
|
+
begin
|
2
|
+
require 'rake/gempackagetask'
|
3
|
+
rescue LoadError
|
4
|
+
end
|
5
|
+
require 'rake/clean'
|
6
|
+
require 'rbconfig'
|
7
|
+
include Config
|
8
|
+
|
9
|
+
PKG_NAME = 'term-ansicolor'
|
10
|
+
PKG_VERSION = File.read('VERSION').chomp
|
11
|
+
PKG_FILES = FileList['**/*'].exclude(/(CVS|\.svn|pkg|coverage|doc)/)
|
12
|
+
CLEAN.include 'coverage', 'doc'
|
13
|
+
|
14
|
+
desc "Installing library"
|
15
|
+
task :install do
|
16
|
+
ruby 'install.rb'
|
17
|
+
end
|
18
|
+
|
19
|
+
desc "Creating documentation"
|
20
|
+
task :doc do
|
21
|
+
ruby 'make_doc.rb'
|
22
|
+
end
|
23
|
+
|
24
|
+
|
25
|
+
if defined? Gem
|
26
|
+
spec = Gem::Specification.new do |s|
|
27
|
+
s.name = PKG_NAME
|
28
|
+
s.version = PKG_VERSION
|
29
|
+
s.summary = "Ruby library that colors strings using ANSI escape sequences"
|
30
|
+
s.description = ""
|
31
|
+
|
32
|
+
s.files = PKG_FILES.to_a.sort
|
33
|
+
|
34
|
+
s.require_path = 'lib'
|
35
|
+
|
36
|
+
s.has_rdoc = true
|
37
|
+
s.extra_rdoc_files << 'README'
|
38
|
+
s.executables << 'cdiff' << 'decolor'
|
39
|
+
s.rdoc_options << '--main' << 'README' << '--title' << 'Term::ANSIColor'
|
40
|
+
s.test_files = Dir['tests/*.rb']
|
41
|
+
|
42
|
+
s.author = "Florian Frank"
|
43
|
+
s.email = "flori@ping.de"
|
44
|
+
s.homepage = "http://flori.github.com/#{PKG_NAME}"
|
45
|
+
s.rubyforge_project = PKG_NAME
|
46
|
+
end
|
47
|
+
|
48
|
+
Rake::GemPackageTask.new(spec) do |pkg|
|
49
|
+
pkg.need_tar = true
|
50
|
+
pkg.package_files += PKG_FILES
|
51
|
+
end
|
52
|
+
end
|
53
|
+
|
54
|
+
desc m = "Writing version information for #{PKG_VERSION}"
|
55
|
+
task :version do
|
56
|
+
puts m
|
57
|
+
File.open(File.join('lib', 'term', 'ansicolor', 'version.rb'), 'w') do |v|
|
58
|
+
v.puts <<EOT
|
59
|
+
module Term
|
60
|
+
module ANSIColor
|
61
|
+
# Term::ANSIColor version
|
62
|
+
VERSION = '#{PKG_VERSION}'
|
63
|
+
VERSION_ARRAY = VERSION.split(/\\./).map { |x| x.to_i } # :nodoc:
|
64
|
+
VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
|
65
|
+
VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
|
66
|
+
VERSION_BUILD = VERSION_ARRAY[2] # :nodoc:
|
67
|
+
end
|
68
|
+
end
|
69
|
+
EOT
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
desc "Run tests"
|
74
|
+
task :tests do
|
75
|
+
sh 'testrb -Ilib tests/*.rb'
|
76
|
+
end
|
77
|
+
task :test => :tests
|
78
|
+
|
79
|
+
desc "Run tests with coverage"
|
80
|
+
task :coverage do
|
81
|
+
sh 'rcov -Ilib tests/*.rb'
|
82
|
+
end
|
83
|
+
|
84
|
+
desc "Default"
|
85
|
+
task :default => [ :version ]
|
86
|
+
|
87
|
+
desc "Prepare a release"
|
88
|
+
task :release => [ :clean, :version, :package ]
|
@@ -0,0 +1 @@
|
|
1
|
+
1.0.5
|
@@ -0,0 +1,19 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
#
|
3
|
+
## Little unix filter that colorizes diff output.
|
4
|
+
#
|
5
|
+
|
6
|
+
require 'term/ansicolor'
|
7
|
+
|
8
|
+
include Term::ANSIColor
|
9
|
+
|
10
|
+
ARGF.each do |line|
|
11
|
+
STDOUT.print(
|
12
|
+
case line
|
13
|
+
when /^\+/ then green { line }
|
14
|
+
when /^-/ then red { line }
|
15
|
+
when /^(@@|diff)/ then blue { line }
|
16
|
+
else line
|
17
|
+
end
|
18
|
+
)
|
19
|
+
end
|
@@ -0,0 +1,90 @@
|
|
1
|
+
require 'term/ansicolor'
|
2
|
+
|
3
|
+
# Use this trick to work around namespace cluttering that
|
4
|
+
# happens if you just include Term::ANSIColor:
|
5
|
+
|
6
|
+
class Color
|
7
|
+
extend Term::ANSIColor
|
8
|
+
end
|
9
|
+
|
10
|
+
print Color.red, Color.bold, "No Namespace cluttering:", Color.clear, "\n"
|
11
|
+
print Color.green + "green" + Color.clear, "\n"
|
12
|
+
print Color.on_red(Color.green("green")), "\n"
|
13
|
+
print Color.yellow { Color.on_black { "yellow on_black" } }, "\n\n"
|
14
|
+
|
15
|
+
# Or shortcut Term::ANSIColor by assignment:
|
16
|
+
c = Term::ANSIColor
|
17
|
+
|
18
|
+
print c.red, c.bold, "No Namespace cluttering (alternative):", c.clear, "\n"
|
19
|
+
print c.green + "green" + c.clear, "\n"
|
20
|
+
print c.on_red(c.green("green")), "\n"
|
21
|
+
print c.yellow { c.on_black { "yellow on_black" } }, "\n\n"
|
22
|
+
|
23
|
+
# Anyway, I don't define any of Term::ANSIColor's methods in this example
|
24
|
+
# and I want to keep it short:
|
25
|
+
include Term::ANSIColor
|
26
|
+
|
27
|
+
print red, bold, "Usage as constants:", reset, "\n"
|
28
|
+
print clear, "clear", reset, reset, "reset", reset,
|
29
|
+
bold, "bold", reset, dark, "dark", reset,
|
30
|
+
underscore, "underscore", reset, blink, "blink", reset,
|
31
|
+
negative, "negative", reset, concealed, "concealed", reset, "|\n",
|
32
|
+
black, "black", reset, red, "red", reset, green, "green", reset,
|
33
|
+
yellow, "yellow", reset, blue, "blue", reset, magenta, "magenta", reset,
|
34
|
+
cyan, "cyan", reset, white, "white", reset, "|\n",
|
35
|
+
on_black, "on_black", reset, on_red, "on_red", reset,
|
36
|
+
on_green, "on_green", reset, on_yellow, "on_yellow", reset,
|
37
|
+
on_blue, "on_blue", reset, on_magenta, "on_magenta", reset,
|
38
|
+
on_cyan, "on_cyan", reset, on_white, "on_white", reset, "|\n\n"
|
39
|
+
|
40
|
+
print red, bold, "Usage as unary argument methods:", reset, "\n"
|
41
|
+
print clear("clear"), reset("reset"), bold("bold"), dark("dark"),
|
42
|
+
underscore("underscore"), blink("blink"), negative("negative"),
|
43
|
+
concealed("concealed"), "|\n",
|
44
|
+
black("black"), red("red"), green("green"), yellow("yellow"),
|
45
|
+
blue("blue"), magenta("magenta"), cyan("cyan"), white("white"), "|\n",
|
46
|
+
on_black("on_black"), on_red("on_red"), on_green("on_green"),#
|
47
|
+
on_yellow("on_yellow"), on_blue("on_blue"), on_magenta("on_magenta"),
|
48
|
+
on_cyan("on_cyan"), on_white("on_white"), "|\n\n"
|
49
|
+
|
50
|
+
print red { bold { "Usage as block forms:" } }, "\n"
|
51
|
+
print clear { "clear" }, reset { "reset" }, bold { "bold" },
|
52
|
+
dark { "dark" }, underscore { "underscore" }, blink { "blink" },
|
53
|
+
negative { "negative" }, concealed { "concealed" }, "|\n",
|
54
|
+
black { "black" }, red { "red" }, green { "green" },
|
55
|
+
yellow { "yellow" }, blue { "blue" }, magenta { "magenta" },
|
56
|
+
cyan { "cyan" }, white { "white" }, "|\n",
|
57
|
+
on_black { "on_black" }, on_red { "on_red" }, on_green { "on_green" },
|
58
|
+
on_yellow { "on_yellow" }, on_blue { "on_blue" },
|
59
|
+
on_magenta { "on_magenta" }, on_cyan { "on_cyan" },
|
60
|
+
on_white { "on_white" }, "|\n\n"
|
61
|
+
|
62
|
+
# Usage as Mixin into String or its Subclasses
|
63
|
+
class String
|
64
|
+
include Term::ANSIColor
|
65
|
+
end
|
66
|
+
|
67
|
+
print "Usage as String Mixins:".red.bold, "\n"
|
68
|
+
print "clear".clear, "reset".reset, "bold".bold, "dark".dark,
|
69
|
+
"underscore".underscore, "blink".blink, "negative".negative,
|
70
|
+
"concealed".concealed, "|\n",
|
71
|
+
"black".black, "red".red, "green".green, "yellow".yellow,
|
72
|
+
"blue".blue, "magenta".magenta, "cyan".cyan, "white".white, "|\n",
|
73
|
+
"on_black".on_black, "on_red".on_red, "on_green".on_green,
|
74
|
+
"on_yellow".on_yellow, "on_blue".on_blue, "on_magenta".on_magenta,
|
75
|
+
"on_cyan".on_cyan, "on_white".on_white, "|\n\n"
|
76
|
+
|
77
|
+
symbols = Term::ANSIColor::attributes
|
78
|
+
print red { bold { "All supported attributes = " } },
|
79
|
+
blue { symbols.inspect }, "\n\n"
|
80
|
+
|
81
|
+
print "Send symbols to strings:".send(:red).send(:bold), "\n"
|
82
|
+
print symbols[12, 8].map { |c| c.to_s.send(c) }, "\n\n"
|
83
|
+
|
84
|
+
print red { bold { "Make strings monochromatic again:" } }, "\n"
|
85
|
+
print [
|
86
|
+
"red".red,
|
87
|
+
"not red anymore".red.uncolored,
|
88
|
+
uncolored { "not red anymore".red },
|
89
|
+
uncolored("not red anymore".red)
|
90
|
+
].map { |x| x + "\n" }
|
@@ -0,0 +1,15 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'rbconfig'
|
4
|
+
include Config
|
5
|
+
require 'fileutils'
|
6
|
+
include FileUtils::Verbose
|
7
|
+
|
8
|
+
destdir = "#{ENV['DESTDIR']}"
|
9
|
+
libdir = CONFIG["sitelibdir"]
|
10
|
+
dest = destdir + File.join(libdir, 'term')
|
11
|
+
mkdir_p dest
|
12
|
+
install 'lib/term/ansicolor.rb', dest
|
13
|
+
dest = destdir + File.join(libdir, 'term', 'ansicolor')
|
14
|
+
mkdir_p dest
|
15
|
+
install 'lib/term/ansicolor/version.rb', dest
|
@@ -0,0 +1,102 @@
|
|
1
|
+
require 'term/ansicolor/version'
|
2
|
+
|
3
|
+
module Term
|
4
|
+
# The ANSIColor module can be used for namespacing and mixed into your own
|
5
|
+
# classes.
|
6
|
+
module ANSIColor
|
7
|
+
# :stopdoc:
|
8
|
+
ATTRIBUTES = [
|
9
|
+
[ :clear , 0 ],
|
10
|
+
[ :reset , 0 ], # synonym for :clear
|
11
|
+
[ :bold , 1 ],
|
12
|
+
[ :dark , 2 ],
|
13
|
+
[ :italic , 3 ], # not widely implemented
|
14
|
+
[ :underline , 4 ],
|
15
|
+
[ :underscore , 4 ], # synonym for :underline
|
16
|
+
[ :blink , 5 ],
|
17
|
+
[ :rapid_blink , 6 ], # not widely implemented
|
18
|
+
[ :negative , 7 ], # no reverse because of String#reverse
|
19
|
+
[ :concealed , 8 ],
|
20
|
+
[ :strikethrough, 9 ], # not widely implemented
|
21
|
+
[ :black , 30 ],
|
22
|
+
[ :red , 31 ],
|
23
|
+
[ :green , 32 ],
|
24
|
+
[ :yellow , 33 ],
|
25
|
+
[ :blue , 34 ],
|
26
|
+
[ :magenta , 35 ],
|
27
|
+
[ :cyan , 36 ],
|
28
|
+
[ :white , 37 ],
|
29
|
+
[ :on_black , 40 ],
|
30
|
+
[ :on_red , 41 ],
|
31
|
+
[ :on_green , 42 ],
|
32
|
+
[ :on_yellow , 43 ],
|
33
|
+
[ :on_blue , 44 ],
|
34
|
+
[ :on_magenta , 45 ],
|
35
|
+
[ :on_cyan , 46 ],
|
36
|
+
[ :on_white , 47 ],
|
37
|
+
]
|
38
|
+
|
39
|
+
ATTRIBUTE_NAMES = ATTRIBUTES.transpose.first
|
40
|
+
# :startdoc:
|
41
|
+
|
42
|
+
# Returns true, if the coloring function of this module
|
43
|
+
# is switched on, false otherwise.
|
44
|
+
def self.coloring?
|
45
|
+
@coloring
|
46
|
+
end
|
47
|
+
|
48
|
+
# Turns the coloring on or off globally, so you can easily do
|
49
|
+
# this for example:
|
50
|
+
# Term::ANSIColor::coloring = STDOUT.isatty
|
51
|
+
def self.coloring=(val)
|
52
|
+
@coloring = val
|
53
|
+
end
|
54
|
+
self.coloring = true
|
55
|
+
|
56
|
+
ATTRIBUTES.each do |c, v|
|
57
|
+
eval %Q{
|
58
|
+
def #{c}(string = nil)
|
59
|
+
result = ''
|
60
|
+
result << "\e[#{v}m" if Term::ANSIColor.coloring?
|
61
|
+
if block_given?
|
62
|
+
result << yield
|
63
|
+
elsif string
|
64
|
+
result << string
|
65
|
+
elsif respond_to?(:to_str)
|
66
|
+
result << to_str
|
67
|
+
else
|
68
|
+
return result #only switch on
|
69
|
+
end
|
70
|
+
result << "\e[0m" if Term::ANSIColor.coloring?
|
71
|
+
result
|
72
|
+
end
|
73
|
+
}
|
74
|
+
end
|
75
|
+
|
76
|
+
# Regular expression that is used to scan for ANSI-sequences while
|
77
|
+
# uncoloring strings.
|
78
|
+
COLORED_REGEXP = /\e\[(?:[34][0-7]|[0-9])?m/
|
79
|
+
|
80
|
+
# Returns an uncolored version of the string, that is all
|
81
|
+
# ANSI-sequences are stripped from the string.
|
82
|
+
def uncolored(string = nil) # :yields:
|
83
|
+
if block_given?
|
84
|
+
yield.gsub(COLORED_REGEXP, '')
|
85
|
+
elsif string
|
86
|
+
string.gsub(COLORED_REGEXP, '')
|
87
|
+
elsif respond_to?(:to_str)
|
88
|
+
to_str.gsub(COLORED_REGEXP, '')
|
89
|
+
else
|
90
|
+
''
|
91
|
+
end
|
92
|
+
end
|
93
|
+
|
94
|
+
module_function
|
95
|
+
|
96
|
+
# Returns an array of all Term::ANSIColor attributes as symbols.
|
97
|
+
def attributes
|
98
|
+
ATTRIBUTE_NAMES
|
99
|
+
end
|
100
|
+
extend self
|
101
|
+
end
|
102
|
+
end
|
@@ -0,0 +1,10 @@
|
|
1
|
+
module Term
|
2
|
+
module ANSIColor
|
3
|
+
# Term::ANSIColor version
|
4
|
+
VERSION = '1.0.5'
|
5
|
+
VERSION_ARRAY = VERSION.split(/\./).map { |x| x.to_i } # :nodoc:
|
6
|
+
VERSION_MAJOR = VERSION_ARRAY[0] # :nodoc:
|
7
|
+
VERSION_MINOR = VERSION_ARRAY[1] # :nodoc:
|
8
|
+
VERSION_BUILD = VERSION_ARRAY[2] # :nodoc:
|
9
|
+
end
|
10
|
+
end
|
@@ -0,0 +1,66 @@
|
|
1
|
+
#!/usr/bin/env ruby
|
2
|
+
|
3
|
+
require 'test/unit'
|
4
|
+
require 'term/ansicolor'
|
5
|
+
|
6
|
+
class String
|
7
|
+
include Term::ANSIColor
|
8
|
+
end
|
9
|
+
|
10
|
+
class Color
|
11
|
+
extend Term::ANSIColor
|
12
|
+
end
|
13
|
+
|
14
|
+
class ANSIColorTest < Test::Unit::TestCase
|
15
|
+
include Term::ANSIColor
|
16
|
+
|
17
|
+
def setup
|
18
|
+
@string = "red"
|
19
|
+
@string_red = "\e[31mred\e[0m"
|
20
|
+
@string_red_on_green = "\e[42m\e[31mred\e[0m\e[0m"
|
21
|
+
end
|
22
|
+
|
23
|
+
attr_reader :string, :string_red, :string_red_on_green
|
24
|
+
|
25
|
+
def test_red
|
26
|
+
assert_equal string_red, string.red
|
27
|
+
assert_equal string_red, Color.red(string)
|
28
|
+
assert_equal string_red, Color.red { string }
|
29
|
+
assert_equal string_red, Term::ANSIColor.red { string }
|
30
|
+
assert_equal string_red, red { string }
|
31
|
+
end
|
32
|
+
|
33
|
+
def test_red_on_green
|
34
|
+
assert_equal string_red_on_green, string.red.on_green
|
35
|
+
assert_equal string_red_on_green, Color.on_green(Color.red(string))
|
36
|
+
assert_equal string_red_on_green, Color.on_green { Color.red { string } }
|
37
|
+
assert_equal string_red_on_green,
|
38
|
+
Term::ANSIColor.on_green { Term::ANSIColor.red { string } }
|
39
|
+
assert_equal string_red_on_green, on_green { red { string } }
|
40
|
+
end
|
41
|
+
|
42
|
+
|
43
|
+
def test_uncolored
|
44
|
+
assert_equal string, string_red.uncolored
|
45
|
+
assert_equal string, Color.uncolored(string_red)
|
46
|
+
assert_equal string, Color.uncolored { string_red }
|
47
|
+
assert_equal string, Term::ANSIColor.uncolored { string_red }
|
48
|
+
assert_equal string, uncolored { string }
|
49
|
+
end
|
50
|
+
|
51
|
+
def test_attributes
|
52
|
+
foo = 'foo'
|
53
|
+
for (a, _) in Term::ANSIColor.attributes
|
54
|
+
assert_not_equal foo, foo_colored = foo.__send__(a)
|
55
|
+
assert_equal foo, foo_colored.uncolored
|
56
|
+
assert_not_equal foo, foo_colored = Color.__send__(a, foo)
|
57
|
+
assert_equal foo, Color.uncolored(foo_colored)
|
58
|
+
assert_not_equal foo, foo_colored = Color.__send__(a) { foo }
|
59
|
+
assert_equal foo, Color.uncolored { foo_colored }
|
60
|
+
assert_not_equal foo, foo_colored = Term::ANSIColor.__send__(a) { foo }
|
61
|
+
assert_equal foo, Term::ANSIColor.uncolored { foo_colored }
|
62
|
+
assert_not_equal foo, foo_colored = __send__(a) { foo }
|
63
|
+
assert_equal foo, uncolored { foo }
|
64
|
+
end
|
65
|
+
end
|
66
|
+
end
|
metadata
CHANGED
@@ -3,10 +3,10 @@ name: exemplor
|
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease: false
|
5
5
|
segments:
|
6
|
-
-
|
7
|
-
-
|
6
|
+
- 3000
|
7
|
+
- 1
|
8
8
|
- 0
|
9
|
-
version:
|
9
|
+
version: 3000.1.0
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Myles Byrne
|
@@ -14,37 +14,10 @@ autorequire:
|
|
14
14
|
bindir: bin
|
15
15
|
cert_chain: []
|
16
16
|
|
17
|
-
date: 2010-
|
17
|
+
date: 2010-04-29 00:00:00 -05:00
|
18
18
|
default_executable:
|
19
|
-
dependencies:
|
20
|
-
|
21
|
-
name: orderedhash
|
22
|
-
prerelease: false
|
23
|
-
requirement: &id001 !ruby/object:Gem::Requirement
|
24
|
-
requirements:
|
25
|
-
- - ">="
|
26
|
-
- !ruby/object:Gem::Version
|
27
|
-
segments:
|
28
|
-
- 0
|
29
|
-
- 0
|
30
|
-
- 6
|
31
|
-
version: 0.0.6
|
32
|
-
type: :runtime
|
33
|
-
version_requirements: *id001
|
34
|
-
- !ruby/object:Gem::Dependency
|
35
|
-
name: term-ansicolor
|
36
|
-
prerelease: false
|
37
|
-
requirement: &id002 !ruby/object:Gem::Requirement
|
38
|
-
requirements:
|
39
|
-
- - ">="
|
40
|
-
- !ruby/object:Gem::Version
|
41
|
-
segments:
|
42
|
-
- 1
|
43
|
-
- 0
|
44
|
-
- 3
|
45
|
-
version: 1.0.3
|
46
|
-
type: :runtime
|
47
|
-
version_requirements: *id002
|
19
|
+
dependencies: []
|
20
|
+
|
48
21
|
description:
|
49
22
|
email: myles@myles.id.au
|
50
23
|
executables: []
|
@@ -52,11 +25,11 @@ executables: []
|
|
52
25
|
extensions: []
|
53
26
|
|
54
27
|
extra_rdoc_files:
|
55
|
-
- README
|
28
|
+
- README.md
|
56
29
|
- TODO
|
57
30
|
files:
|
58
31
|
- .gitignore
|
59
|
-
- README
|
32
|
+
- README.md
|
60
33
|
- Rakefile
|
61
34
|
- TODO
|
62
35
|
- VERSION
|
@@ -67,16 +40,18 @@ files:
|
|
67
40
|
- examples/assertion_success_and_failure.rb
|
68
41
|
- examples/assertion_success_and_info.rb
|
69
42
|
- examples/check_parsing.rb
|
70
|
-
- examples/check_with_disambiguation.rb
|
71
43
|
- examples/checking_nil.rb
|
72
|
-
- examples/dumping_classes.rb
|
73
44
|
- examples/failure_halts_execution.rb
|
45
|
+
- examples/foobar.rb
|
74
46
|
- examples/helpers.rb
|
47
|
+
- examples/multi_show.rb
|
75
48
|
- examples/no_checks.rb
|
76
49
|
- examples/no_checks_non_string.rb
|
77
50
|
- examples/oneliner.rb
|
51
|
+
- examples/show_with_disambiguation.rb
|
52
|
+
- examples/showing_classes.rb
|
53
|
+
- examples/simple_show.rb
|
78
54
|
- examples/ten_percent_failures.rb
|
79
|
-
- examples/with_checks.rb
|
80
55
|
- examples/with_setup.rb
|
81
56
|
- lib/checker.rb
|
82
57
|
- lib/command.rb
|
@@ -85,6 +60,22 @@ files:
|
|
85
60
|
- lib/exemplor.rb
|
86
61
|
- lib/ext.rb
|
87
62
|
- lib/result_printer.rb
|
63
|
+
- vendor/orderedhash-0.0.6/gemspec.rb
|
64
|
+
- vendor/orderedhash-0.0.6/install.rb
|
65
|
+
- vendor/orderedhash-0.0.6/lib/orderedautohash.rb
|
66
|
+
- vendor/orderedhash-0.0.6/lib/orderedhash.rb
|
67
|
+
- vendor/term-ansicolor-1.0.5/CHANGES
|
68
|
+
- vendor/term-ansicolor-1.0.5/COPYING
|
69
|
+
- vendor/term-ansicolor-1.0.5/README
|
70
|
+
- vendor/term-ansicolor-1.0.5/Rakefile
|
71
|
+
- vendor/term-ansicolor-1.0.5/VERSION
|
72
|
+
- vendor/term-ansicolor-1.0.5/bin/cdiff
|
73
|
+
- vendor/term-ansicolor-1.0.5/bin/decolor
|
74
|
+
- vendor/term-ansicolor-1.0.5/examples/example.rb
|
75
|
+
- vendor/term-ansicolor-1.0.5/install.rb
|
76
|
+
- vendor/term-ansicolor-1.0.5/lib/term/ansicolor.rb
|
77
|
+
- vendor/term-ansicolor-1.0.5/lib/term/ansicolor/version.rb
|
78
|
+
- vendor/term-ansicolor-1.0.5/tests/ansicolor_test.rb
|
88
79
|
has_rdoc: true
|
89
80
|
homepage: http://github.com/quackingduck/exemplor
|
90
81
|
licenses: []
|
@@ -122,14 +113,16 @@ test_files:
|
|
122
113
|
- examples/assertion_success_and_failure.rb
|
123
114
|
- examples/assertion_success_and_info.rb
|
124
115
|
- examples/check_parsing.rb
|
125
|
-
- examples/check_with_disambiguation.rb
|
126
116
|
- examples/checking_nil.rb
|
127
|
-
- examples/dumping_classes.rb
|
128
117
|
- examples/failure_halts_execution.rb
|
118
|
+
- examples/foobar.rb
|
129
119
|
- examples/helpers.rb
|
120
|
+
- examples/multi_show.rb
|
130
121
|
- examples/no_checks.rb
|
131
122
|
- examples/no_checks_non_string.rb
|
132
123
|
- examples/oneliner.rb
|
124
|
+
- examples/show_with_disambiguation.rb
|
125
|
+
- examples/showing_classes.rb
|
126
|
+
- examples/simple_show.rb
|
133
127
|
- examples/ten_percent_failures.rb
|
134
|
-
- examples/with_checks.rb
|
135
128
|
- examples/with_setup.rb
|