commit f07073131b13d944117183911b2eb2ff1f574fd9 Author: magnolia-fan Date: Thu Jun 30 20:19:19 2011 +0400 Initial commit 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