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 +1 -1
- data/lib/systeme.rb +1 -3
- data/test/parse_test.rb +4 -0
- metadata +2 -2
data/VERSION.yml
CHANGED
data/lib/systeme.rb
CHANGED
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.
|
|
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-
|
|
12
|
+
date: 2009-02-26 00:00:00 -08:00
|
|
13
13
|
default_executable:
|
|
14
14
|
dependencies: []
|
|
15
15
|
|