info_unit 0.1.1 → 0.1.2
Sign up to get free protection for your applications and to get access to all the features.
- data/VERSION +1 -1
- data/info_unit.gemspec +1 -1
- data/lib/info_unit.rb +3 -3
- data/spec/info_unit_spec.rb +12 -12
- metadata +1 -1
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.1.
|
1
|
+
0.1.2
|
data/info_unit.gemspec
CHANGED
data/lib/info_unit.rb
CHANGED
data/spec/info_unit_spec.rb
CHANGED
@@ -15,9 +15,9 @@ describe "InfoUnit" do
|
|
15
15
|
x.unit.should == 'KB'
|
16
16
|
x.bytes.should == bytes
|
17
17
|
x.to_hash.should == {
|
18
|
-
|
19
|
-
|
20
|
-
|
18
|
+
'number' => 100,
|
19
|
+
'unit' => 'KB',
|
20
|
+
'bytes' => bytes,
|
21
21
|
}
|
22
22
|
end
|
23
23
|
end
|
@@ -33,9 +33,9 @@ describe "InfoUnit" do
|
|
33
33
|
x.unit.should == 'MB'
|
34
34
|
x.bytes.should == bytes
|
35
35
|
x.to_hash.should == {
|
36
|
-
|
37
|
-
|
38
|
-
|
36
|
+
'number' => 27,
|
37
|
+
'unit' => 'MB',
|
38
|
+
'bytes' => bytes,
|
39
39
|
}
|
40
40
|
end
|
41
41
|
end
|
@@ -51,9 +51,9 @@ describe "InfoUnit" do
|
|
51
51
|
x.unit.should == 'MB'
|
52
52
|
x.bytes.should == bytes
|
53
53
|
x.to_hash.should == {
|
54
|
-
|
55
|
-
|
56
|
-
|
54
|
+
'number' => 2.3,
|
55
|
+
'unit' => 'MB',
|
56
|
+
'bytes' => bytes,
|
57
57
|
}
|
58
58
|
end
|
59
59
|
end
|
@@ -69,9 +69,9 @@ describe "InfoUnit" do
|
|
69
69
|
x.unit.should == 'KB'
|
70
70
|
x.bytes.should == bytes
|
71
71
|
x.to_hash.should == {
|
72
|
-
|
73
|
-
|
74
|
-
|
72
|
+
'number' => 1.01,
|
73
|
+
'unit' => 'KB',
|
74
|
+
'bytes' => bytes,
|
75
75
|
}
|
76
76
|
end
|
77
77
|
end
|