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 CHANGED
@@ -1 +1 @@
1
- 0.1.1
1
+ 0.1.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{info_unit}
8
- s.version = "0.1.1"
8
+ s.version = "0.1.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["David James"]
@@ -23,9 +23,9 @@ class InfoUnit
23
23
  def to_hash
24
24
  if @unit && @number
25
25
  {
26
- :number => @number,
27
- :unit => @unit,
28
- :bytes => bytes,
26
+ 'number' => @number,
27
+ 'unit' => @unit,
28
+ 'bytes' => bytes,
29
29
  }
30
30
  else
31
31
  {}
@@ -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
- :number => 100,
19
- :unit => 'KB',
20
- :bytes => bytes,
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
- :number => 27,
37
- :unit => 'MB',
38
- :bytes => bytes,
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
- :number => 2.3,
55
- :unit => 'MB',
56
- :bytes => bytes,
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
- :number => 1.01,
73
- :unit => 'KB',
74
- :bytes => bytes,
72
+ 'number' => 1.01,
73
+ 'unit' => 'KB',
74
+ 'bytes' => bytes,
75
75
  }
76
76
  end
77
77
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: info_unit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.1
4
+ version: 0.1.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - David James