pfeilbr-utilitypack 0.1.4

Sign up to get free protection for your applications and to get access to all the features.
Files changed (5) hide show
  1. data/CHANGELOG +4 -0
  2. data/COPYING +18 -0
  3. data/README.textile +3 -0
  4. data/Rakefile +93 -0
  5. metadata +66 -0
data/CHANGELOG ADDED
@@ -0,0 +1,4 @@
1
+ = 0.1
2
+ == 2008-01-19
3
+ * Initial version
4
+ * Project structure in place and a bit of functionality
data/COPYING ADDED
@@ -0,0 +1,18 @@
1
+ Copyright (c) 2008 Brian Pfeil
2
+
3
+ Permission is hereby granted, free of charge, to any person obtaining a copy
4
+ of this software and associated documentation files (the "Software"), to
5
+ deal in the Software without restriction, including without limitation the
6
+ rights to use, copy, modify, merge, publish, distribute, sublicense, and/or
7
+ sell copies of the Software, and to permit persons to whom the Software is
8
+ furnished to do so, subject to the following conditions:
9
+
10
+ The above copyright notice and this permission notice shall be included in
11
+ all copies or substantial portions of the Software.
12
+
13
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL
16
+ THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER
17
+ IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN
18
+ CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
data/README.textile ADDED
@@ -0,0 +1,3 @@
1
+ h1. Utility Pack
2
+
3
+ Utility pack provides a library of common utilities for general development.
data/Rakefile ADDED
@@ -0,0 +1,93 @@
1
+ require 'rake'
2
+ require 'rake/testtask'
3
+ require 'rake/rdoctask'
4
+ require 'rake/clean'
5
+ require 'rake/gempackagetask'
6
+
7
+ # get version info from source file
8
+ $:.unshift(File.join(File.dirname(__FILE__), 'lib'))
9
+ require 'utility_pack/version'
10
+
11
+ windows = (PLATFORM =~ /win32|cygwin/)
12
+ BAT = windows ? ".bat" : ""
13
+ SUDO = windows ? "" : "sudo"
14
+
15
+ PKG_NAME = "utilitypack"
16
+ PKG_VERSION = UtilityPack::VERSION::STRING
17
+ CLEAN.include ['*.gem', 'pkg/', 'doc/rdoc']
18
+ RDOC_OPTS = ['--quiet', '--title', "Utility Pack",
19
+ "--opname", "index.html",
20
+ "--line-numbers",
21
+ "--main", "README",
22
+ "--inline-source"]
23
+
24
+ # Test Tasks ---------------------------------------------------------
25
+
26
+ desc "Run all tests"
27
+ task :test_all => [:test_units]
28
+ task :ta => [:test_all]
29
+
30
+ task :tu => [:test_units]
31
+
32
+ Rake::TestTask.new("test_units") do |t|
33
+ t.test_files = FileList['test/test*.rb']
34
+ t.verbose = false
35
+ end
36
+
37
+
38
+
39
+ desc "Packages up Utility Pack."
40
+ task :default => [:package]
41
+
42
+ desc "creates package"
43
+ task :package => [:clean]
44
+
45
+ desc "creates documentation"
46
+ task :doc => [:rdoc]
47
+
48
+ Rake::RDocTask.new do |rdoc|
49
+ rdoc.rdoc_dir = 'doc/rdoc'
50
+ rdoc.options += RDOC_OPTS
51
+ rdoc.main = "README"
52
+ rdoc.title = "Utility Pack"
53
+ rdoc.rdoc_files.add ['README', 'CHANGELOG', 'COPYING', 'lib/**/*.rb']
54
+ end
55
+
56
+ spec =
57
+ Gem::Specification.new do |s|
58
+ s.name = PKG_NAME
59
+ s.version = PKG_VERSION
60
+ s.platform = Gem::Platform::RUBY
61
+ s.has_rdoc = true
62
+ s.extra_rdoc_files = ["README", "CHANGELOG", "COPYING"]
63
+ s.rdoc_options = RDOC_OPTS
64
+ s.summary = "Library of useful utilities"
65
+ s.description = s.summary
66
+ s.author = "Brian Pfeil"
67
+ s.email = ''
68
+ s.homepage = ''
69
+ s.required_ruby_version = '>= 1.8.2'
70
+ s.files = %w(COPYING README Rakefile) +
71
+ Dir.glob("{bin,doc,test,lib,examples,extras,share,contrib}/**/*") +
72
+ Dir.glob("ext/**/*.{h,c,rb}") +
73
+ Dir.glob("examples/**/*.rb") +
74
+ Dir.glob("tools/*.rb")
75
+ s.require_path = "lib"
76
+ s.bindir = "bin"
77
+ end
78
+
79
+ Rake::GemPackageTask.new(spec) do |p|
80
+ p.need_tar = false
81
+ p.need_zip = false
82
+ p.gem_spec = spec
83
+ end
84
+
85
+ desc "installs gem"
86
+ task :install => [:package] do
87
+ sh %{#{SUDO} gem#{BAT} install pkg/#{PKG_NAME}-#{PKG_VERSION}}
88
+ end
89
+
90
+ desc "uninstalls gem"
91
+ task :uninstall => [:clean] do
92
+ sh %{#{SUDO} gem#{BAT} uninstall #{PKG_NAME} -x}
93
+ end
metadata ADDED
@@ -0,0 +1,66 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: pfeilbr-utilitypack
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.1.4
5
+ platform: ruby
6
+ authors:
7
+ - Brian Pfeil
8
+ autorequire:
9
+ bindir: bin
10
+ cert_chain: []
11
+
12
+ date: 2009-04-08 00:00:00 -07:00
13
+ default_executable:
14
+ dependencies: []
15
+
16
+ description: A library of common utilities for ruby
17
+ email: ""
18
+ executables: []
19
+
20
+ extensions: []
21
+
22
+ extra_rdoc_files:
23
+ - README.textile
24
+ - CHANGELOG
25
+ - COPYING
26
+ files:
27
+ - COPYING
28
+ - README.textile
29
+ - Rakefile
30
+ - CHANGELOG
31
+ has_rdoc: true
32
+ homepage: ""
33
+ post_install_message:
34
+ rdoc_options:
35
+ - --quiet
36
+ - --title
37
+ - Utility Pack
38
+ - --opname
39
+ - index.html
40
+ - --line-numbers
41
+ - --main
42
+ - README.textile
43
+ - --inline-source
44
+ require_paths:
45
+ - lib
46
+ required_ruby_version: !ruby/object:Gem::Requirement
47
+ requirements:
48
+ - - ">="
49
+ - !ruby/object:Gem::Version
50
+ version: 1.8.2
51
+ version:
52
+ required_rubygems_version: !ruby/object:Gem::Requirement
53
+ requirements:
54
+ - - ">="
55
+ - !ruby/object:Gem::Version
56
+ version: "0"
57
+ version:
58
+ requirements: []
59
+
60
+ rubyforge_project:
61
+ rubygems_version: 1.2.0
62
+ signing_key:
63
+ specification_version: 2
64
+ summary: A library of common utilities for ruby
65
+ test_files: []
66
+