kelredd-repository 0.2.2 → 0.2.3
Sign up to get free protection for your applications and to get access to all the features.
- data/lib/repository/file_system/helpers.rb +2 -2
- data/lib/repository/version.rb +1 -1
- metadata +2 -2
@@ -6,8 +6,8 @@ module Repository
|
|
6
6
|
def abbrev_file_size(size_in_bytes)
|
7
7
|
value = size_in_bytes
|
8
8
|
FILE_SIZE_ABBREVS.each do |abbrev|
|
9
|
-
return value.to_s + ' ' + abbrev if value <
|
10
|
-
value /=
|
9
|
+
return value.to_s + ' ' + abbrev if value < 1024 || abbrev == FILE_SIZE_ABBREVS.last
|
10
|
+
value /= 1024
|
11
11
|
end
|
12
12
|
end
|
13
13
|
|
data/lib/repository/version.rb
CHANGED
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: kelredd-repository
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.2.
|
4
|
+
version: 0.2.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Kelredd
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2009-
|
12
|
+
date: 2009-06-02 00:00:00 -07:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|