diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..0136fbe --- /dev/null +++ b/.gitignore @@ -0,0 +1,19 @@ +*.gem +*.rbc +.bundle +.config +.yardoc +Gemfile.lock +InstalledFiles +_yardoc +coverage +doc/ +lib/bundler/man +pkg +rdoc +spec/reports +test/tmp +test/version_tmp +tmp +*.sw? +.sw? diff --git a/Gemfile b/Gemfile new file mode 100644 index 0000000..c7ee44f --- /dev/null +++ b/Gemfile @@ -0,0 +1,3 @@ +source 'https://rubygems.org' + +gemspec # acme-leeway diff --git a/README.md b/README.md new file mode 100644 index 0000000..87d8167 --- /dev/null +++ b/README.md @@ -0,0 +1,30 @@ +# Acme::Leeway + +When your figures are closely inspected, wouldn't you rest more easily given a little leeway? + +## Installation + +Install it with: + + $ gem install acme-leeway + +## Usage + +No one will know you fudged the numbers: + + [7] pry(main)> 73.inspect + => "133" + [8] pry(main)> 73.inspect + => "111" + [9] pry(main)> 73.inspect + => "111" + [10] pry(main)> 73.inspect + => "81" + +## Contributing + +1. Fork it +2. Create your feature branch (`git checkout -b my-new-feature`) +3. Commit your changes (`git commit -am 'Add some feature'`) +4. Push to the branch (`git push origin my-new-feature`) +5. Create new Pull Request diff --git a/Rakefile b/Rakefile new file mode 100644 index 0000000..2995527 --- /dev/null +++ b/Rakefile @@ -0,0 +1 @@ +require "bundler/gem_tasks" diff --git a/acme-leeway.gemspec b/acme-leeway.gemspec new file mode 100644 index 0000000..19f74aa --- /dev/null +++ b/acme-leeway.gemspec @@ -0,0 +1,24 @@ +# coding: utf-8 +lib = File.expand_path('../lib', __FILE__) +$LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib) +require 'acme/leeway/version' + +Gem::Specification.new do |spec| + spec.name = "acme-leeway" + spec.version = Acme::Leeway::VERSION + spec.authors = ["Tad Hosford"] + spec.email = ["tad.hosford@gmail.com"] + spec.description = %q{ Sometimes the real numbers just aren't good enough. + Require this module and make every number you inspect + appear just a bit more impressive. + } + spec.summary = %q{ If only my wallet worked this way. } + spec.homepage = "https://github.com/rthbound/acme-leeway" + spec.license = "MIT" + + spec.files = `git ls-files`.split($/) + spec.require_paths = ["lib"] + + spec.add_development_dependency "bundler", "~> 1.3" + spec.add_development_dependency "rake" +end diff --git a/lib/acme/leeway.rb b/lib/acme/leeway.rb new file mode 100644 index 0000000..ab7c5d0 --- /dev/null +++ b/lib/acme/leeway.rb @@ -0,0 +1,11 @@ +require "acme/leeway/version" + +module Acme + module Leeway + class ::Fixnum + def inspect + "#{to_s(rand(7..9))}" + end + end + end +end diff --git a/lib/acme/leeway/version.rb b/lib/acme/leeway/version.rb new file mode 100644 index 0000000..f65cfd8 --- /dev/null +++ b/lib/acme/leeway/version.rb @@ -0,0 +1,5 @@ +module Acme + module Leeway + VERSION = "0.0.1" + end +end