Permalink
Browse files

Gem packaging stuffins

  • Loading branch information...
1 parent 9511a8d commit 3be6cf5ad812537197d5eecee9b77627b5089bb3 Tony Arcieri committed Jun 8, 2009
Showing with 110 additions and 1 deletion.
  1. +1 −0 .gitignore
  2. +3 −0 CHANGES
  3. +58 −0 LICENSE
  4. +10 −1 README.textile
  5. +6 −0 lib/load_glob.rb
  6. +26 −0 load_glob.gemspec
  7. +6 −0 tasks/gem.rake
View
@@ -0,0 +1 @@
+pkg
View
@@ -0,0 +1,3 @@
+0.1.0:
+
+* Initial release
View
58 LICENSE
@@ -0,0 +1,58 @@
+Ruby is copyrighted free software by Yukihiro Matsumoto <matz@netlab.co.jp>.
+You can redistribute it and/or modify it under either the terms of the GPL
+(see COPYING.txt file), or the conditions below:
+
+ 1. You may make and give away verbatim copies of the source form of the
+ software without restriction, provided that you duplicate all of the
+ original copyright notices and associated disclaimers.
+
+ 2. You may modify your copy of the software in any way, provided that
+ you do at least ONE of the following:
+
+ a) place your modifications in the Public Domain or otherwise
+ make them Freely Available, such as by posting said
+ modifications to Usenet or an equivalent medium, or by allowing
+ the author to include your modifications in the software.
+
+ b) use the modified software only within your corporation or
+ organization.
+
+ c) rename any non-standard executables so the names do not conflict
+ with standard executables, which must also be provided.
+
+ d) make other distribution arrangements with the author.
+
+ 3. You may distribute the software in object code or executable
+ form, provided that you do at least ONE of the following:
+
+ a) distribute the executables and library files of the software,
+ together with instructions (in the manual page or equivalent)
+ on where to get the original distribution.
+
+ b) accompany the distribution with the machine-readable source of
+ the software.
+
+ c) give non-standard executables non-standard names, with
+ instructions on where to get the original software distribution.
+
+ d) make other distribution arrangements with the author.
+
+ 4. You may modify and include the part of the software into any other
+ software (possibly commercial). But some files in the distribution
+ are not written by the author, so that they are not under this terms.
+
+ They are gc.c(partly), utils.c(partly), regex.[ch], st.[ch] and some
+ files under the ./missing directory. See each file for the copying
+ condition.
+
+ 5. The scripts and library files supplied as input to or produced as
+ output from the software do not automatically fall under the
+ copyright of the software, but belong to whomever generated them,
+ and may be sold commercially, and may be aggregated with this
+ software.
+
+ 6. THIS SOFTWARE IS PROVIDED "AS IS" AND WITHOUT ANY EXPRESS OR
+ IMPLIED WARRANTIES, INCLUDING, WITHOUT LIMITATION, THE IMPLIED
+ WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
+ PURPOSE.
+
View
@@ -15,7 +15,12 @@ which will enumerate the files in the given glob, determining the proper
order to load them in. So, to load all the Ruby files under the 'lib'
directory, just do:
- <code>load_glob 'lib/**/*.rb'</code>
+ <code>
+ require 'rubygems'
+ require 'load_glob'
+
+ load_glob 'lib/**/*.rb'
+ </code>
If the dependencies are unresolvable, it will throw the first unresolvable
NameError.
@@ -48,3 +53,7 @@ Or by email: tony@medioh.com
The Github issue tracker is here:
http://github.com/tarcieri/load_glob/issues
+
+h2. License
+
+MIT (see the LICENSE file for details)
View
@@ -1,3 +1,9 @@
+#--
+# Copyright (C)2009 Tony Arcieri
+# You can redistribute this under the terms of the MIT license
+# See file LICENSE for details
+#++
+
module LoadGlob
# Load all files matching the given glob, handling dependencies between
# the files gracefully
View
@@ -0,0 +1,26 @@
+require 'rubygems'
+
+GEMSPEC = Gem::Specification.new do |s|
+ s.name = "load_glob"
+ s.version = "0.1.0"
+ s.authors = "Tony Arcieri"
+ s.email = "tony@medioh.com"
+ s.date = "2009-06-08"
+ s.summary = "Load all files matching a given glob, resolving dependencies automagically"
+ s.platform = Gem::Platform::RUBY
+
+ # Gem contents
+ s.files = Dir.glob("{lib,spec}/**/*") + ['Rakefile', 'load_glob.gemspec']
+
+ # RubyForge info
+ s.homepage = "http://github.com/tarcieri/load_glob"
+ s.rubyforge_project = "codeforpeople"
+
+ # RDoc settings
+ s.has_rdoc = true
+ s.rdoc_options = %w(--title load_glob --main README.textile --line-numbers)
+ s.extra_rdoc_files = ["LICENSE", "README.textile", "CHANGES"]
+
+ # Extensions
+ s.extensions = FileList["ext/**/extconf.rb"].to_a
+end
View
@@ -0,0 +1,6 @@
+require 'rake/gempackagetask'
+load File.dirname(__FILE__) + '/../load_glob.gemspec'
+
+Rake::GemPackageTask.new(GEMSPEC) do |pkg|
+ pkg.need_tar = true
+end

0 comments on commit 3be6cf5

Please sign in to comment.