bbuckley-foo 0.2.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- data/VERSION.yml +4 -0
- data/lib/foo.rb +21 -0
- data/test/foo_test.rb +29 -0
- data/test/test_helper.rb +10 -0
- metadata +57 -0
data/VERSION.yml
ADDED
data/lib/foo.rb
ADDED
data/test/foo_test.rb
ADDED
|
@@ -0,0 +1,29 @@
|
|
|
1
|
+
require File.dirname(__FILE__) + '/test_helper'
|
|
2
|
+
|
|
3
|
+
class FooTest < Test::Unit::TestCase
|
|
4
|
+
should "be creatable without arguments" do
|
|
5
|
+
assert Buckley::Foo.new
|
|
6
|
+
end
|
|
7
|
+
|
|
8
|
+
should "be creatable with :to_foo syntax" do
|
|
9
|
+
assert_equal Buckley::Foo, 1.to_foo.class
|
|
10
|
+
end
|
|
11
|
+
|
|
12
|
+
context "An Array with two elements" do
|
|
13
|
+
setup { @array = [2,3] }
|
|
14
|
+
|
|
15
|
+
should "should know its size to be 0" do
|
|
16
|
+
assert_equal 2, @array.size
|
|
17
|
+
end
|
|
18
|
+
end
|
|
19
|
+
|
|
20
|
+
context "a Foo object" do
|
|
21
|
+
setup { @foo = Buckley::Foo.new }
|
|
22
|
+
|
|
23
|
+
should "print out nicely" do
|
|
24
|
+
assert_equal "A Foo object", @foo.to_s
|
|
25
|
+
end
|
|
26
|
+
|
|
27
|
+
end
|
|
28
|
+
|
|
29
|
+
end
|
data/test/test_helper.rb
ADDED
metadata
ADDED
|
@@ -0,0 +1,57 @@
|
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
|
2
|
+
name: bbuckley-foo
|
|
3
|
+
version: !ruby/object:Gem::Version
|
|
4
|
+
version: 0.2.1
|
|
5
|
+
platform: ruby
|
|
6
|
+
authors:
|
|
7
|
+
- Brian K. Buckley
|
|
8
|
+
autorequire:
|
|
9
|
+
bindir: bin
|
|
10
|
+
cert_chain: []
|
|
11
|
+
|
|
12
|
+
date: 2009-02-23 00:00:00 -08:00
|
|
13
|
+
default_executable:
|
|
14
|
+
dependencies: []
|
|
15
|
+
|
|
16
|
+
description: utilities for all things foo
|
|
17
|
+
email: briankbuckley@gmail.com
|
|
18
|
+
executables: []
|
|
19
|
+
|
|
20
|
+
extensions: []
|
|
21
|
+
|
|
22
|
+
extra_rdoc_files: []
|
|
23
|
+
|
|
24
|
+
files:
|
|
25
|
+
- VERSION.yml
|
|
26
|
+
- lib/foo.rb
|
|
27
|
+
- test/foo_test.rb
|
|
28
|
+
- test/test_helper.rb
|
|
29
|
+
has_rdoc: true
|
|
30
|
+
homepage: http://github.com/bbuckley/foo
|
|
31
|
+
post_install_message:
|
|
32
|
+
rdoc_options:
|
|
33
|
+
- --inline-source
|
|
34
|
+
- --charset=UTF-8
|
|
35
|
+
require_paths:
|
|
36
|
+
- lib
|
|
37
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
|
38
|
+
requirements:
|
|
39
|
+
- - ">="
|
|
40
|
+
- !ruby/object:Gem::Version
|
|
41
|
+
version: "0"
|
|
42
|
+
version:
|
|
43
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
|
44
|
+
requirements:
|
|
45
|
+
- - ">="
|
|
46
|
+
- !ruby/object:Gem::Version
|
|
47
|
+
version: "0"
|
|
48
|
+
version:
|
|
49
|
+
requirements: []
|
|
50
|
+
|
|
51
|
+
rubyforge_project:
|
|
52
|
+
rubygems_version: 1.2.0
|
|
53
|
+
signing_key:
|
|
54
|
+
specification_version: 2
|
|
55
|
+
summary: everything foo
|
|
56
|
+
test_files: []
|
|
57
|
+
|