test-construct 1.2.0
Sign up to get free protection for your applications and to get access to all the features.
- data/.devver/hooks/build +11 -0
- data/.devver/hooks/install_dependencies +3 -0
- data/.devver/hooks/notify +50 -0
- data/.devver/hooks/prepare_database +1 -0
- data/History.txt +4 -0
- data/README.markdown +144 -0
- data/Rakefile +36 -0
- data/bin/construct +8 -0
- data/bugs/issue-0127c8c6ba1d31b5488f4551f8d869e57d53956d.yaml +29 -0
- data/bugs/issue-404e5da7b128e5b34e7a33fbcd56603618010d92.yaml +22 -0
- data/bugs/issue-50798912193be32b1dc610d949a557b3860d96fd.yaml +23 -0
- data/bugs/issue-5a10ec7298127df3c62255ea59e01dcf831ff1d3.yaml +22 -0
- data/bugs/issue-67f704f8b7190ccc1157eec007c3d584779dc805.yaml +18 -0
- data/bugs/issue-881ae950569b6ca718fae0060f2751710b972fd2.yaml +22 -0
- data/bugs/issue-bc8dfdf3834bb84b1d942ab2a90ac8c82b4389fb.yaml +22 -0
- data/bugs/issue-d05e9a907202348d47c4bf92062c1f4673dcae68.yaml +18 -0
- data/bugs/issue-f30a3db19d917f8e72ca8689e099ef0cb2681fd3.yaml +20 -0
- data/bugs/project.yaml +16 -0
- data/construct.gemspec +40 -0
- data/geminstaller.yml +7 -0
- data/lib/construct.rb +68 -0
- data/lib/construct/helpers.rb +29 -0
- data/lib/construct/path_extensions.rb +52 -0
- data/tasks/ann.rake +80 -0
- data/tasks/bones.rake +20 -0
- data/tasks/gem.rake +201 -0
- data/tasks/git.rake +40 -0
- data/tasks/notes.rake +27 -0
- data/tasks/post_load.rake +34 -0
- data/tasks/rdoc.rake +51 -0
- data/tasks/rubyforge.rake +55 -0
- data/tasks/setup.rb +292 -0
- data/tasks/spec.rake +54 -0
- data/tasks/svn.rake +47 -0
- data/tasks/test.rake +40 -0
- data/tasks/zentest.rake +36 -0
- data/test-construct.gemspec +39 -0
- data/test/construct_test.rb +469 -0
- data/test/test_helper.rb +35 -0
- metadata +114 -0
data/test/test_helper.rb
ADDED
@@ -0,0 +1,35 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'test/unit'
|
3
|
+
|
4
|
+
class Test::Unit::TestCase
|
5
|
+
|
6
|
+
def self.testing(name)
|
7
|
+
@group = name
|
8
|
+
yield
|
9
|
+
@group = nil
|
10
|
+
end
|
11
|
+
|
12
|
+
def self.test(name, &block)
|
13
|
+
name.extend(Squish)
|
14
|
+
test_name = @group ? "test for '#{@group}': #{name.squish}".to_sym : "test: #{name.squish}".to_sym
|
15
|
+
defined = instance_method(test_name) rescue false
|
16
|
+
raise "#{test_name} is already defined in #{self}" if defined
|
17
|
+
define_method(test_name, &block)
|
18
|
+
end
|
19
|
+
|
20
|
+
end
|
21
|
+
|
22
|
+
module Squish
|
23
|
+
|
24
|
+
def squish
|
25
|
+
dup.extend(Squish).squish!
|
26
|
+
end
|
27
|
+
|
28
|
+
# Performs a destructive squish. See String#squish.
|
29
|
+
def squish!
|
30
|
+
strip!
|
31
|
+
gsub!(/\s+/, ' ')
|
32
|
+
self
|
33
|
+
end
|
34
|
+
|
35
|
+
end
|
metadata
ADDED
@@ -0,0 +1,114 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: test-construct
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 1.2.0
|
5
|
+
platform: ruby
|
6
|
+
authors:
|
7
|
+
- Ben Brinckerhoff (ben@devver.net) and Avdi Grimm (avdi@devver.net)
|
8
|
+
autorequire:
|
9
|
+
bindir: bin
|
10
|
+
cert_chain: []
|
11
|
+
|
12
|
+
date: 2010-01-22 00:00:00 -05:00
|
13
|
+
default_executable:
|
14
|
+
dependencies:
|
15
|
+
- !ruby/object:Gem::Dependency
|
16
|
+
name: bones
|
17
|
+
type: :development
|
18
|
+
version_requirement:
|
19
|
+
version_requirements: !ruby/object:Gem::Requirement
|
20
|
+
requirements:
|
21
|
+
- - ">="
|
22
|
+
- !ruby/object:Gem::Version
|
23
|
+
version: 2.5.1
|
24
|
+
version:
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: jeremymcanally-pending
|
27
|
+
type: :development
|
28
|
+
version_requirement:
|
29
|
+
version_requirements: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - ~>
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: "0.1"
|
34
|
+
version:
|
35
|
+
description: ""
|
36
|
+
email: ben@devver.net, avdi@devver.net
|
37
|
+
executables:
|
38
|
+
- construct
|
39
|
+
extensions: []
|
40
|
+
|
41
|
+
extra_rdoc_files:
|
42
|
+
- History.txt
|
43
|
+
- bin/construct
|
44
|
+
files:
|
45
|
+
- .devver/hooks/build
|
46
|
+
- .devver/hooks/install_dependencies
|
47
|
+
- .devver/hooks/notify
|
48
|
+
- .devver/hooks/prepare_database
|
49
|
+
- History.txt
|
50
|
+
- README.markdown
|
51
|
+
- Rakefile
|
52
|
+
- bin/construct
|
53
|
+
- bugs/issue-0127c8c6ba1d31b5488f4551f8d869e57d53956d.yaml
|
54
|
+
- bugs/issue-404e5da7b128e5b34e7a33fbcd56603618010d92.yaml
|
55
|
+
- bugs/issue-50798912193be32b1dc610d949a557b3860d96fd.yaml
|
56
|
+
- bugs/issue-5a10ec7298127df3c62255ea59e01dcf831ff1d3.yaml
|
57
|
+
- bugs/issue-67f704f8b7190ccc1157eec007c3d584779dc805.yaml
|
58
|
+
- bugs/issue-881ae950569b6ca718fae0060f2751710b972fd2.yaml
|
59
|
+
- bugs/issue-bc8dfdf3834bb84b1d942ab2a90ac8c82b4389fb.yaml
|
60
|
+
- bugs/issue-d05e9a907202348d47c4bf92062c1f4673dcae68.yaml
|
61
|
+
- bugs/issue-f30a3db19d917f8e72ca8689e099ef0cb2681fd3.yaml
|
62
|
+
- bugs/project.yaml
|
63
|
+
- construct.gemspec
|
64
|
+
- geminstaller.yml
|
65
|
+
- lib/construct.rb
|
66
|
+
- lib/construct/helpers.rb
|
67
|
+
- lib/construct/path_extensions.rb
|
68
|
+
- tasks/ann.rake
|
69
|
+
- tasks/bones.rake
|
70
|
+
- tasks/gem.rake
|
71
|
+
- tasks/git.rake
|
72
|
+
- tasks/notes.rake
|
73
|
+
- tasks/post_load.rake
|
74
|
+
- tasks/rdoc.rake
|
75
|
+
- tasks/rubyforge.rake
|
76
|
+
- tasks/setup.rb
|
77
|
+
- tasks/spec.rake
|
78
|
+
- tasks/svn.rake
|
79
|
+
- tasks/test.rake
|
80
|
+
- tasks/zentest.rake
|
81
|
+
- test-construct.gemspec
|
82
|
+
- test/construct_test.rb
|
83
|
+
- test/test_helper.rb
|
84
|
+
has_rdoc: true
|
85
|
+
homepage: http://github.com/devver/construct
|
86
|
+
licenses: []
|
87
|
+
|
88
|
+
post_install_message:
|
89
|
+
rdoc_options:
|
90
|
+
- --main
|
91
|
+
- README.markdown
|
92
|
+
require_paths:
|
93
|
+
- lib
|
94
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
95
|
+
requirements:
|
96
|
+
- - ">="
|
97
|
+
- !ruby/object:Gem::Version
|
98
|
+
version: "0"
|
99
|
+
version:
|
100
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
101
|
+
requirements:
|
102
|
+
- - ">="
|
103
|
+
- !ruby/object:Gem::Version
|
104
|
+
version: "0"
|
105
|
+
version:
|
106
|
+
requirements: []
|
107
|
+
|
108
|
+
rubyforge_project: test-construct
|
109
|
+
rubygems_version: 1.3.5
|
110
|
+
signing_key:
|
111
|
+
specification_version: 3
|
112
|
+
summary: Construct is a DSL for creating temporary files and directories during testing.
|
113
|
+
test_files:
|
114
|
+
- test/construct_test.rb
|