From f07073131b13d944117183911b2eb2ff1f574fd9 Mon Sep 17 00:00:00 2001 From: magnolia-fan Date: Thu, 30 Jun 2011 20:19:19 +0400 Subject: [PATCH] Initial commit --- Rakefile | 15 +++++++++++++++ lib/subzero.rb | 5 +++++ subzero.gemspec | 15 +++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 Rakefile create mode 100644 lib/subzero.rb create mode 100644 subzero.gemspec diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..5235cfe --- /dev/null +++ b/Rakefile @@ -0,0 +1,15 @@ +require "rubygems" + +spec = Gem::Specification.new do |s| + + s.name = "subzero" + s.version = "0.1.0" + s.summary = "Totally awesome gem that extends Fixnum functionality" + s.description = "Adds one magic method to Fixnum class. Guest what method is it?" + s.authors = ["Gregory Eremin"] + s.email = "chez@vim.me" + s.homepage = "https://github.com/magnolia-fan/subzero" + + s.require_paths = ["lib"] + +end \ No newline at end of file diff --git a/lib/subzero.rb b/lib/subzero.rb new file mode 100644 index 0000000..6681965 --- /dev/null +++ b/lib/subzero.rb @@ -0,0 +1,5 @@ +class Fixnum + def subzero? + self < 0 + end +end diff --git a/subzero.gemspec b/subzero.gemspec new file mode 100644 index 0000000..5d94b18 --- /dev/null +++ b/subzero.gemspec @@ -0,0 +1,15 @@ +Gem::Specification.new do |s| + + s.name = %q{subzero} + s.version = "0.1.0" + + s.authors = ["Gregory Eremin"] + s.date = %q{2011-06-30} + s.email = %q{chez@vim.me} + s.files = ["lib/subzero.rb"] + s.homepage = %q{https://github.com/magnolia-fan/subzero} + s.require_paths = ["lib"] + s.summary = %q{Totally awesome gem that extends Fixnum functionality} + s.description = %q{Adds one magic method to Fixnum class. Guest what method is it?} + +end \ No newline at end of file