Permalink
Browse files

Gemifying project

  • Loading branch information...
mattt committed Sep 18, 2011
1 parent f034737 commit b5ae917cc4addc9a2b4e66c1ce6eb01b2bd4c31b
Showing with 57 additions and 0 deletions.
  1. +2 −0 .gitignore
  2. +5 −0 Gemfile
  3. +19 −0 LICENSE
  4. +11 −0 Rakefile
  5. +17 −0 glitz.gemspec
  6. 0 { → lib}/glitz.rb
  7. +3 −0 lib/glitz/version.rb
View
@@ -0,0 +1,2 @@
+*.gem
+Gemfile.lock
View
@@ -0,0 +1,5 @@
+source :rubygems
+
+group :development do
+ gem "rake"
+end
View
19 LICENSE
@@ -0,0 +1,19 @@
+Copyright (c) 2011 Mattt Thompson (http://mattt.me)
+
+Permission is hereby granted, free of charge, to any person obtaining a copy
+of this software and associated documentation files (the "Software"), to deal
+in the Software without restriction, including without limitation the rights
+to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
+copies of the Software, and to permit persons to whom the Software is
+furnished to do so, subject to the following conditions:
+
+The above copyright notice and this permission notice shall be included in
+all copies or substantial portions of the Software.
+
+THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
+IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
+FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
+AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
+LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
+OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
+THE SOFTWARE.
View
@@ -0,0 +1,11 @@
+require "bundler"
+Bundler.setup
+
+gemspec = eval(File.read("glitz.gemspec"))
+
+task :build => "#{gemspec.full_name}.gem"
+
+file "#{gemspec.full_name}.gem" => gemspec.files + ["glitz.gemspec"] do
+ system "gem build glitz.gemspec"
+ system "gem install glitz-#{Glitz::VERSION}.gem"
+end
View
@@ -0,0 +1,17 @@
+require File.expand_path("../lib/glitz/version", __FILE__)
+
+Gem::Specification.new do |s|
+ s.name = "Glitz"
+ s.authors = ["Mattt Thompson"]
+ s.email = "m@mattt.me"
+ s.homepage = "http://github.com/mattt/glitz"
+ s.version = Glitz::VERSION
+ s.platform = Gem::Platform::RUBY
+ s.summary = "Glitz"
+ s.description = "Glitz adds ANSI-colorized glamour to your terminal output"
+
+ s.required_rubygems_version = ">= 1.3.6"
+
+ s.files = Dir["{lib}/**/*.rb", "bin/*", "LICENSE", "*.md", "*.rdoc"]
+ s.require_path = 'lib'
+end
File renamed without changes.
View
@@ -0,0 +1,3 @@
+module Glitz
+ VERSION = "0.1.0"
+end

0 comments on commit b5ae917

Please sign in to comment.