whitestone 1.0.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.gitignore +1 -0
- data/Gemfile +4 -0
- data/LICENSE +16 -0
- data/README.txt +78 -0
- data/Rakefile +1 -0
- data/bin/whitestone +263 -0
- data/doc/README-snippets.rdoc +58 -0
- data/doc/whitestone.markdown +806 -0
- data/etc/aliases +5 -0
- data/etc/examples/example_1.rb +51 -0
- data/etc/examples/example_2.rb +51 -0
- data/etc/extra_tests/basic.rb +56 -0
- data/etc/extra_tests/error_should_not_also_fail.rb +17 -0
- data/etc/extra_tests/output_examples.rb +108 -0
- data/etc/extra_tests/output_examples_code.rb +38 -0
- data/etc/extra_tests/raise.rb +4 -0
- data/etc/extra_tests/realistic_example.rb +94 -0
- data/etc/extra_tests/specification_error.rb +8 -0
- data/etc/extra_tests/stop.rb +16 -0
- data/etc/extra_tests/terminate_suite.rb +56 -0
- data/etc/run-output-examples +1 -0
- data/etc/run-unit-tests +1 -0
- data/etc/ws +1 -0
- data/lib/whitestone.rb +710 -0
- data/lib/whitestone/assertion_classes.rb +418 -0
- data/lib/whitestone/auto.rb +20 -0
- data/lib/whitestone/custom_assertions.rb +252 -0
- data/lib/whitestone/include.rb +14 -0
- data/lib/whitestone/output.rb +335 -0
- data/lib/whitestone/support.rb +29 -0
- data/lib/whitestone/version.rb +3 -0
- data/test/_setup.rb +5 -0
- data/test/custom_assertions.rb +120 -0
- data/test/insulation.rb +202 -0
- data/test/whitestone_test.rb +616 -0
- data/whitestone.gemspec +31 -0
- metadata +125 -0
data/whitestone.gemspec
ADDED
@@ -0,0 +1,31 @@
|
|
1
|
+
# -*- encoding: utf-8 -*-
|
2
|
+
$:.push File.expand_path("../lib", __FILE__)
|
3
|
+
require "whitestone/version"
|
4
|
+
|
5
|
+
Gem::Specification.new do |s|
|
6
|
+
s.name = "whitestone"
|
7
|
+
s.version = Whitestone::VERSION
|
8
|
+
s.authors = ["Gavin Sinclair"]
|
9
|
+
s.email = ["gsinclair@gmail.com"]
|
10
|
+
s.homepage = "http://gsinclair.github.com/whitestone.html"
|
11
|
+
s.summary = "Succinct and simple unit testing"
|
12
|
+
s.description = <<-EOF
|
13
|
+
Unit testing library with colourful, helpful error messages,
|
14
|
+
small testing code footprint, good debugger integration.
|
15
|
+
(Derivative work of Dfect/Detest.)
|
16
|
+
EOF
|
17
|
+
|
18
|
+
s.rubyforge_project = ""
|
19
|
+
|
20
|
+
s.files = `git ls-files`.split("\n")
|
21
|
+
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
22
|
+
s.executables = `git ls-files -- bin/*`.split("\n").map{ |f| File.basename(f) }
|
23
|
+
s.require_paths = ["lib"]
|
24
|
+
|
25
|
+
s.add_runtime_dependency "col", ">= 1.0.1"
|
26
|
+
s.add_runtime_dependency "differ", "~> 0.1"
|
27
|
+
|
28
|
+
s.add_development_dependency "bundler"
|
29
|
+
|
30
|
+
s.required_ruby_version = '>= 1.8.6' # Not sure about this.
|
31
|
+
end
|
metadata
ADDED
@@ -0,0 +1,125 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: whitestone
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
prerelease:
|
5
|
+
version: 1.0.0
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Gavin Sinclair
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
|
13
|
+
date: 2012-01-01 00:00:00 Z
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: col
|
17
|
+
prerelease: false
|
18
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
19
|
+
none: false
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 1.0.1
|
24
|
+
type: :runtime
|
25
|
+
version_requirements: *id001
|
26
|
+
- !ruby/object:Gem::Dependency
|
27
|
+
name: differ
|
28
|
+
prerelease: false
|
29
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
30
|
+
none: false
|
31
|
+
requirements:
|
32
|
+
- - ~>
|
33
|
+
- !ruby/object:Gem::Version
|
34
|
+
version: "0.1"
|
35
|
+
type: :runtime
|
36
|
+
version_requirements: *id002
|
37
|
+
- !ruby/object:Gem::Dependency
|
38
|
+
name: bundler
|
39
|
+
prerelease: false
|
40
|
+
requirement: &id003 !ruby/object:Gem::Requirement
|
41
|
+
none: false
|
42
|
+
requirements:
|
43
|
+
- - ">="
|
44
|
+
- !ruby/object:Gem::Version
|
45
|
+
version: "0"
|
46
|
+
type: :development
|
47
|
+
version_requirements: *id003
|
48
|
+
description: " Unit testing library with colourful, helpful error messages,\n small testing code footprint, good debugger integration.\n (Derivative work of Dfect/Detest.)\n"
|
49
|
+
email:
|
50
|
+
- gsinclair@gmail.com
|
51
|
+
executables:
|
52
|
+
- whitestone
|
53
|
+
extensions: []
|
54
|
+
|
55
|
+
extra_rdoc_files: []
|
56
|
+
|
57
|
+
files:
|
58
|
+
- .gitignore
|
59
|
+
- Gemfile
|
60
|
+
- LICENSE
|
61
|
+
- README.txt
|
62
|
+
- Rakefile
|
63
|
+
- bin/whitestone
|
64
|
+
- doc/README-snippets.rdoc
|
65
|
+
- doc/whitestone.markdown
|
66
|
+
- etc/aliases
|
67
|
+
- etc/examples/example_1.rb
|
68
|
+
- etc/examples/example_2.rb
|
69
|
+
- etc/extra_tests/basic.rb
|
70
|
+
- etc/extra_tests/error_should_not_also_fail.rb
|
71
|
+
- etc/extra_tests/output_examples.rb
|
72
|
+
- etc/extra_tests/output_examples_code.rb
|
73
|
+
- etc/extra_tests/raise.rb
|
74
|
+
- etc/extra_tests/realistic_example.rb
|
75
|
+
- etc/extra_tests/specification_error.rb
|
76
|
+
- etc/extra_tests/stop.rb
|
77
|
+
- etc/extra_tests/terminate_suite.rb
|
78
|
+
- etc/run-output-examples
|
79
|
+
- etc/run-unit-tests
|
80
|
+
- etc/ws
|
81
|
+
- lib/whitestone.rb
|
82
|
+
- lib/whitestone/assertion_classes.rb
|
83
|
+
- lib/whitestone/auto.rb
|
84
|
+
- lib/whitestone/custom_assertions.rb
|
85
|
+
- lib/whitestone/include.rb
|
86
|
+
- lib/whitestone/output.rb
|
87
|
+
- lib/whitestone/support.rb
|
88
|
+
- lib/whitestone/version.rb
|
89
|
+
- test/_setup.rb
|
90
|
+
- test/custom_assertions.rb
|
91
|
+
- test/insulation.rb
|
92
|
+
- test/whitestone_test.rb
|
93
|
+
- whitestone.gemspec
|
94
|
+
homepage: http://gsinclair.github.com/whitestone.html
|
95
|
+
licenses: []
|
96
|
+
|
97
|
+
post_install_message:
|
98
|
+
rdoc_options: []
|
99
|
+
|
100
|
+
require_paths:
|
101
|
+
- lib
|
102
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
103
|
+
none: false
|
104
|
+
requirements:
|
105
|
+
- - ">="
|
106
|
+
- !ruby/object:Gem::Version
|
107
|
+
version: 1.8.6
|
108
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
109
|
+
none: false
|
110
|
+
requirements:
|
111
|
+
- - ">="
|
112
|
+
- !ruby/object:Gem::Version
|
113
|
+
version: "0"
|
114
|
+
requirements: []
|
115
|
+
|
116
|
+
rubyforge_project: ""
|
117
|
+
rubygems_version: 1.8.11
|
118
|
+
signing_key:
|
119
|
+
specification_version: 3
|
120
|
+
summary: Succinct and simple unit testing
|
121
|
+
test_files:
|
122
|
+
- test/_setup.rb
|
123
|
+
- test/custom_assertions.rb
|
124
|
+
- test/insulation.rb
|
125
|
+
- test/whitestone_test.rb
|