tryouts 2.1.1 → 2.2.0.pre.RC1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.rdoc +1 -1
- metadata +20 -35
- data/.gitignore +0 -1
- data/CHANGES.txt +0 -35
- data/VERSION.yml +0 -4
- data/try/step1_try.rb +0 -51
- data/try/step2_try.rb +0 -59
- data/try/step3_try.rb +0 -19
- data/try/step4_try.rb +0 -6
- data/tryouts.gemspec +0 -54
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA256:
|
3
|
+
metadata.gz: dbbfffa0cddd9a7e3e7515a9d48a4574041f9c98c5896d5abba268f8583b3efc
|
4
|
+
data.tar.gz: ad85207912aeb782ea679c4298c1beeac8837ef1e42e9ecefc51a5fda832ca25
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: f0b5b32c5ec3c48f0cde12963cfdefc7202284c13b464b11d4fbd2cbc24f928e8147471a653d7f345bcdad509fec94a458c2a007362236c1970c4f304766f405
|
7
|
+
data.tar.gz: 96a95e649151dd3b815bd8993e9ea2ad2133616a968a6254a5e4930b7ebe39acebff3b8d086b009bf8755b6872198f516a8f2a7f352a023b892e2d3622c8fe9e
|
data/README.rdoc
CHANGED
@@ -45,7 +45,7 @@ For real world examples, see the Gibbler[http://github.com/delano/gibbler/tree/m
|
|
45
45
|
All code before the first test definition is assumed to be setup code. All code after the last definition is assumed to be cleanup code. Here is an example:
|
46
46
|
|
47
47
|
|
48
|
-
# This is called
|
48
|
+
# This is called before all tests
|
49
49
|
require 'gibbler'
|
50
50
|
Gibbler.digest_type = Digest::SHA256
|
51
51
|
|
metadata
CHANGED
@@ -1,77 +1,62 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: tryouts
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.
|
5
|
-
prerelease:
|
4
|
+
version: 2.2.0.pre.RC1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Delano Mandelbaum
|
9
|
-
autorequire:
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2024-04-03 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: sysinfo
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '='
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 0.
|
19
|
+
version: 0.9.0.pre.RC1
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - '='
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 0.
|
26
|
+
version: 0.9.0.pre.RC1
|
30
27
|
description: Don't waste your time writing tests
|
31
28
|
email: delano@solutious.com
|
32
29
|
executables:
|
33
30
|
- try
|
34
31
|
extensions: []
|
35
|
-
extra_rdoc_files:
|
36
|
-
- LICENSE.txt
|
37
|
-
- README.rdoc
|
32
|
+
extra_rdoc_files: []
|
38
33
|
files:
|
39
|
-
- .gitignore
|
40
|
-
- CHANGES.txt
|
41
34
|
- LICENSE.txt
|
42
35
|
- README.rdoc
|
43
36
|
- Rakefile
|
44
|
-
- VERSION.yml
|
45
37
|
- bin/try
|
46
38
|
- lib/tryouts.rb
|
47
|
-
- try/step1_try.rb
|
48
|
-
- try/step2_try.rb
|
49
|
-
- try/step3_try.rb
|
50
|
-
- try/step4_try.rb
|
51
|
-
- tryouts.gemspec
|
52
39
|
homepage: http://github.com/delano/tryouts
|
53
|
-
licenses:
|
54
|
-
|
55
|
-
|
56
|
-
|
40
|
+
licenses:
|
41
|
+
- MIT
|
42
|
+
metadata: {}
|
43
|
+
post_install_message:
|
44
|
+
rdoc_options: []
|
57
45
|
require_paths:
|
58
46
|
- lib
|
59
47
|
required_ruby_version: !ruby/object:Gem::Requirement
|
60
|
-
none: false
|
61
48
|
requirements:
|
62
|
-
- -
|
49
|
+
- - ">="
|
63
50
|
- !ruby/object:Gem::Version
|
64
|
-
version: '
|
51
|
+
version: '3.1'
|
65
52
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
66
|
-
none: false
|
67
53
|
requirements:
|
68
|
-
- -
|
54
|
+
- - ">"
|
69
55
|
- !ruby/object:Gem::Version
|
70
|
-
version:
|
56
|
+
version: 1.3.1
|
71
57
|
requirements: []
|
72
|
-
|
73
|
-
|
74
|
-
|
75
|
-
specification_version: 3
|
58
|
+
rubygems_version: 3.3.26
|
59
|
+
signing_key:
|
60
|
+
specification_version: 4
|
76
61
|
summary: Don't waste your time writing tests
|
77
62
|
test_files: []
|
data/.gitignore
DELETED
@@ -1 +0,0 @@
|
|
1
|
-
pkg
|
data/CHANGES.txt
DELETED
@@ -1,35 +0,0 @@
|
|
1
|
-
TRYOUTS, CHANGES
|
2
|
-
|
3
|
-
#### 2.1.0 (2011-02-12) ###############################
|
4
|
-
|
5
|
-
* CHANGE: Default output is less verbose (eg. PASS/FAIL/SKIP)
|
6
|
-
* CHANGE: -q now prints nothing to STDOUT. Check $?. If 0, all tests pass
|
7
|
-
otherwise it contains the number of tests that failed.
|
8
|
-
* ADDED: -v option for increased output.
|
9
|
-
|
10
|
-
|
11
|
-
#### 2.0.4 (2011-01-06) ###############################
|
12
|
-
|
13
|
-
* ADDED: -q option for reduced output.
|
14
|
-
|
15
|
-
#### 2.0.3 (2010-11-03) ###############################
|
16
|
-
|
17
|
-
* FIXED: Print test value not expected value twice!
|
18
|
-
|
19
|
-
#### 2.0.2 (2010-11-03) ###############################
|
20
|
-
|
21
|
-
* FIXED: Properly skip test cases with commented out expectations (i.e ##=>)
|
22
|
-
* CHANGE: Revised CLI output. Print output for each test case as it's running.
|
23
|
-
|
24
|
-
|
25
|
-
#### 2.0.1.002 (2010-07-21) ###############################
|
26
|
-
|
27
|
-
* FIXED: clean error (bad value for range). Didn't run tryouts. Bad Delano!
|
28
|
-
|
29
|
-
#### 2.0.1 (2010-07-21) ###############################
|
30
|
-
|
31
|
-
* FIXED: Fix range of lines executed for clean, was double executing most test defs
|
32
|
-
|
33
|
-
#### 2.0.0 (2010-07-19) ###############################
|
34
|
-
|
35
|
-
Initial 2.0 release.
|
data/VERSION.yml
DELETED
data/try/step1_try.rb
DELETED
@@ -1,51 +0,0 @@
|
|
1
|
-
require 'rubygems'
|
2
|
-
require 'hexoid'
|
3
|
-
|
4
|
-
POOP = 1
|
5
|
-
|
6
|
-
# TEST 1: test matches result with expectation
|
7
|
-
a = 1 + 1
|
8
|
-
#=> 2
|
9
|
-
|
10
|
-
|
11
|
-
## TEST 2: comments, tests, and expectations can
|
12
|
-
## contain multiple lines
|
13
|
-
a = 1
|
14
|
-
b = 2
|
15
|
-
a + b
|
16
|
-
# => 3
|
17
|
-
# => 2 + 1
|
18
|
-
|
19
|
-
# TEST 3: test expectation type matters
|
20
|
-
'foo'.class
|
21
|
-
#=> String
|
22
|
-
|
23
|
-
|
24
|
-
# TEST 4: instance variables can be used in expectations
|
25
|
-
@a = 1
|
26
|
-
@a
|
27
|
-
#=> @a
|
28
|
-
|
29
|
-
|
30
|
-
# TEST 5: test ignores blank lines before expectations
|
31
|
-
@a += 1
|
32
|
-
'foo'
|
33
|
-
|
34
|
-
|
35
|
-
#=> 'foo'
|
36
|
-
|
37
|
-
|
38
|
-
# TEST 6: test allows whiny expectation markers for textmate users *sigh*
|
39
|
-
'foo'
|
40
|
-
# => 'foo'
|
41
|
-
|
42
|
-
|
43
|
-
# TEST 7: test expectations can be commented out
|
44
|
-
'foo'
|
45
|
-
##=> 'this would fail'
|
46
|
-
|
47
|
-
x = raise rescue 'foo'
|
48
|
-
#=> 'foo'
|
49
|
-
|
50
|
-
|
51
|
-
|
data/try/step2_try.rb
DELETED
@@ -1,59 +0,0 @@
|
|
1
|
-
# run me with
|
2
|
-
# ruby -rubygems -Ilib step1_tryouts.rb
|
3
|
-
|
4
|
-
|
5
|
-
## some addition
|
6
|
-
a = 1
|
7
|
-
b = 2
|
8
|
-
a + b + 1
|
9
|
-
# => 4
|
10
|
-
|
11
|
-
|
12
|
-
# multiple expectations
|
13
|
-
'foo' + 'bar'
|
14
|
-
#=> 'foobar'
|
15
|
-
#=> :foobar.to_s
|
16
|
-
|
17
|
-
|
18
|
-
# test ignores comments before expectations
|
19
|
-
'foo'
|
20
|
-
# ignored comment
|
21
|
-
# ignored comment
|
22
|
-
#=> 'foo'
|
23
|
-
|
24
|
-
|
25
|
-
## test uses helper methods
|
26
|
-
## ( #foo is defined on top of file )
|
27
|
-
#foo()
|
28
|
-
##=> foo
|
29
|
-
|
30
|
-
|
31
|
-
#begin
|
32
|
-
# raise
|
33
|
-
#rescue
|
34
|
-
# 'foo'
|
35
|
-
#end
|
36
|
-
##=> 'foo'
|
37
|
-
|
38
|
-
## test handles multiple code lines
|
39
|
-
## only only tests last line against expectation
|
40
|
-
#str = ""
|
41
|
-
#str << 'foo'
|
42
|
-
#str << 'bar'
|
43
|
-
#str
|
44
|
-
##=> 'foobar'
|
45
|
-
##
|
46
|
-
### test failure
|
47
|
-
##'this fails'
|
48
|
-
###=> 'expectation not met'
|
49
|
-
#
|
50
|
-
|
51
|
-
|
52
|
-
#
|
53
|
-
# require 'pathname'
|
54
|
-
# require Pathname(__FILE__).dirname.parent + 'lib/nofw'
|
55
|
-
#
|
56
|
-
# # test failure
|
57
|
-
# 'this fails'
|
58
|
-
# #=> 'expectation not met'
|
59
|
-
#
|
data/try/step3_try.rb
DELETED
data/try/step4_try.rb
DELETED
data/tryouts.gemspec
DELETED
@@ -1,54 +0,0 @@
|
|
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 = "tryouts"
|
8
|
-
s.version = "2.1.1"
|
9
|
-
|
10
|
-
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
|
-
s.authors = ["Delano Mandelbaum"]
|
12
|
-
s.date = "2012-04-30"
|
13
|
-
s.description = "Don't waste your time writing tests"
|
14
|
-
s.email = "delano@solutious.com"
|
15
|
-
s.executables = ["try"]
|
16
|
-
s.extra_rdoc_files = [
|
17
|
-
"LICENSE.txt",
|
18
|
-
"README.rdoc"
|
19
|
-
]
|
20
|
-
s.files = [
|
21
|
-
".gitignore",
|
22
|
-
"CHANGES.txt",
|
23
|
-
"LICENSE.txt",
|
24
|
-
"README.rdoc",
|
25
|
-
"Rakefile",
|
26
|
-
"VERSION.yml",
|
27
|
-
"bin/try",
|
28
|
-
"lib/tryouts.rb",
|
29
|
-
"try/step1_try.rb",
|
30
|
-
"try/step2_try.rb",
|
31
|
-
"try/step3_try.rb",
|
32
|
-
"try/step4_try.rb",
|
33
|
-
"tryouts.gemspec"
|
34
|
-
]
|
35
|
-
s.homepage = "http://github.com/delano/tryouts"
|
36
|
-
s.rdoc_options = ["--charset=UTF-8"]
|
37
|
-
s.require_paths = ["lib"]
|
38
|
-
s.rubyforge_project = "tryouts"
|
39
|
-
s.rubygems_version = "1.8.22"
|
40
|
-
s.summary = "Don't waste your time writing tests"
|
41
|
-
|
42
|
-
if s.respond_to? :specification_version then
|
43
|
-
s.specification_version = 3
|
44
|
-
|
45
|
-
if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
|
46
|
-
s.add_runtime_dependency(%q<sysinfo>, [">= 0.7.3"])
|
47
|
-
else
|
48
|
-
s.add_dependency(%q<sysinfo>, [">= 0.7.3"])
|
49
|
-
end
|
50
|
-
else
|
51
|
-
s.add_dependency(%q<sysinfo>, [">= 0.7.3"])
|
52
|
-
end
|
53
|
-
end
|
54
|
-
|