Permalink
Browse files

Left debug code in...

  • Loading branch information...
1 parent 465f89f commit a826bbf8ce0e29525e97964b24e5eadcc0d24112 Matt Mongeau committed Nov 11, 2009
Showing with 6 additions and 5 deletions.
  1. +1 −1 Rakefile
  2. +1 −1 alchemist.gemspec
  3. +1 −3 lib/alchemist.rb
  4. +3 −0 test/alchemist_test.rb
View
@@ -6,7 +6,7 @@ PKG_FILES = %w(Rakefile) +
gem_spec = Gem::Specification.new do |gem_spec|
gem_spec.name = 'alchemist'
- gem_spec.version = '0.0.8'
+ gem_spec.version = '0.0.9'
gem_spec.summary = 'Conversions... like you\'ve never seen them before!'
gem_spec.description = 'Conversions... like you\'ve never seen them before!!'
gem_spec.email = 'matt@toastyapps.com'
View
@@ -1,7 +1,7 @@
--- !ruby/object:Gem::Specification
name: alchemist
version: !ruby/object:Gem::Version
- version: 0.0.8
+ version: 0.0.9
platform: ruby
authors:
- Matthew Mongeau
View
@@ -437,6 +437,4 @@ def self.parse_prefix(unit)
class Numeric
include Alchemist
-end
-
-puts 5.angstroms.inspect
+end
View
@@ -43,6 +43,9 @@ def test_comparison
def test_register
Alchemist.register(:distance, [:beard_second, :beard_seconds], 5.angstroms)
assert_equal( 1.beard_second, 5.angstroms)
+ # Alchemist.register(:temperature, :yeti, [Proc.new{|t| t + 1}, Proc.new{|t| t - 1}])
+ # puts 0.kelvin.to.yeti
+ # assert_equal( 1.yeti, 0.kelvin)
end
end

0 comments on commit a826bbf

Please sign in to comment.