farski-systeme 0.4.0 → 0.4.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
data/VERSION.yml CHANGED
@@ -1,4 +1,4 @@
1
1
  ---
2
2
  :minor: 4
3
- :patch: 0
3
+ :patch: 1
4
4
  :major: 0
data/lib/systeme.rb CHANGED
@@ -29,6 +29,4 @@ module Systeme
29
29
  end
30
30
  end
31
31
 
32
- Numeric.send :include, Systeme
33
-
34
- puts Systeme.parse('1m')
32
+ Numeric.send :include, Systeme
data/test/parse_test.rb CHANGED
@@ -1,6 +1,10 @@
1
1
  require File.dirname(__FILE__) + '/test_helper'
2
2
 
3
3
  class ParseTest < Test::Unit::TestCase
4
+ should "return nil if there are not digit in the string" do
5
+ assert_nil Systeme.parse('')
6
+ end
7
+
4
8
  should "parse a single base unit string" do
5
9
  assert_equal 1, Systeme.parse('1m')
6
10
  assert_equal 1, Systeme.parse('1 meter')
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: farski-systeme
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.4.0
4
+ version: 0.4.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Kalafarski
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-02-25 00:00:00 -08:00
12
+ date: 2009-02-26 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies: []
15
15