devver-construct 1.0.0

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