bee 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
@@ -0,0 +1,46 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # Copyright 2006 Michel Casabianca <casa@sweetohm.net>
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ require 'test/unit'
18
+ $:.unshift(File.join(File.dirname(__FILE__), '..', 'bin'))
19
+ load 'bee'
20
+
21
+ class TestBeeConsoleFormatter < Test::Unit::TestCase
22
+
23
+ def test_format_target_default
24
+ expected = "#{'-'*72} TEST --"
25
+ formatter = Bee::ConsoleFormatter.new(nil)
26
+ target = Bee::Target.new({ 'target' => 'TEST' }, nil)
27
+ actual = formatter.format_target(target)
28
+ assert_equal(expected, actual)
29
+ end
30
+
31
+ def test_format_target
32
+ expected = "\e[1;31;42m#{'#'*64} TEST ##\e[0m"
33
+ style = {
34
+ :line_character => '#',
35
+ :line_length => 72,
36
+ :target_style => :bright,
37
+ :target_foreground => :red,
38
+ :target_background => :green
39
+ }
40
+ formatter = Bee::ConsoleFormatter.new(style)
41
+ target = Bee::Target.new({ 'target' => 'TEST' }, nil)
42
+ actual = formatter.format_target(target)
43
+ assert_equal(expected, actual)
44
+ end
45
+
46
+ end
@@ -0,0 +1,27 @@
1
+ #!/usr/bin/env ruby
2
+
3
+ # Copyright 2006 Michel Casabianca <casa@sweetohm.net>
4
+ #
5
+ # Licensed under the Apache License, Version 2.0 (the "License");
6
+ # you may not use this file except in compliance with the License.
7
+ # You may obtain a copy of the License at
8
+ #
9
+ # http://www.apache.org/licenses/LICENSE-2.0
10
+ #
11
+ # Unless required by applicable law or agreed to in writing, software
12
+ # distributed under the License is distributed on an "AS IS" BASIS,
13
+ # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14
+ # See the License for the specific language governing permissions and
15
+ # limitations under the License.
16
+
17
+ # Script that runs all tests in current directory (and subdirectories)
18
+ # in a single test suite.
19
+
20
+ require 'find'
21
+
22
+ Find.find('.') do |path|
23
+ file = File.split(path)[1]
24
+ if File.file?(path) and file =~ /^tc_.+\.rb$/
25
+ require path[0, path.rindex('.')]
26
+ end
27
+ end
metadata ADDED
@@ -0,0 +1,71 @@
1
+ --- !ruby/object:Gem::Specification
2
+ rubygems_version: 0.9.0
3
+ specification_version: 1
4
+ name: bee
5
+ version: !ruby/object:Gem::Version
6
+ version: 0.1.0
7
+ date: 2006-11-02 00:00:00 +01:00
8
+ summary: Build tool
9
+ require_paths:
10
+ - lib
11
+ email: michel.casabianca@gmail.com
12
+ homepage: http://bee.rubyforge.org
13
+ rubyforge_project:
14
+ description:
15
+ autorequire: bee
16
+ default_executable: bee
17
+ bindir: bin
18
+ has_rdoc: true
19
+ required_ruby_version: !ruby/object:Gem::Version::Requirement
20
+ requirements:
21
+ - - ">"
22
+ - !ruby/object:Gem::Version
23
+ version: 0.0.0
24
+ version:
25
+ platform: ruby
26
+ signing_key:
27
+ cert_chain:
28
+ post_install_message: Enjoy!
29
+ authors:
30
+ - Michel Casabianca
31
+ files:
32
+ - bin/bee
33
+ - bin/beedoc
34
+ - doc/html
35
+ - doc/png
36
+ - doc/yml
37
+ - doc/html/documentation.html
38
+ - doc/html/quickstart.html
39
+ - doc/png/style.png
40
+ - doc/yml/#releases.yml#
41
+ - doc/yml/menu.yml
42
+ - doc/yml/releases.yml
43
+ - doc/yml/todo.yml
44
+ - lib/bee.rb
45
+ - lib/beedoc.rb
46
+ - test/tc_bee_consoleformatter.rb
47
+ - test/ts_bee.rb
48
+ - README
49
+ test_files:
50
+ - test/ts_bee.rb
51
+ rdoc_options: []
52
+
53
+ extra_rdoc_files:
54
+ - README
55
+ executables:
56
+ - bee
57
+ - beedoc
58
+ extensions: []
59
+
60
+ requirements: []
61
+
62
+ dependencies:
63
+ - !ruby/object:Gem::Dependency
64
+ name: rubyzip
65
+ version_requirement:
66
+ version_requirements: !ruby/object:Gem::Version::Requirement
67
+ requirements:
68
+ - - ">"
69
+ - !ruby/object:Gem::Version
70
+ version: 0.0.0
71
+ version: