filesize 0.0.2 → 0.0.3

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.
Files changed (3) hide show
  1. data/filesize.gemspec +1 -1
  2. data/lib/filesize.rb +4 -0
  3. metadata +23 -41
@@ -1,7 +1,7 @@
1
1
  # -*- encoding: utf-8 -*-
2
2
  Gem::Specification.new do |s|
3
3
  s.name = "filesize"
4
- s.version = "0.0.2"
4
+ s.version = "0.0.3"
5
5
 
6
6
  s.authors = ["Dominik Honnef"]
7
7
  s.date = %q{2009-07-26}
@@ -89,6 +89,10 @@ class Filesize
89
89
  end
90
90
  end
91
91
 
92
+ def ==(other)
93
+ other.is_a?(self.class) && other.to_i == self.to_i
94
+ end
95
+
92
96
  # @return [Array<self, other>]
93
97
  # @api private
94
98
  def coerce(other)
metadata CHANGED
@@ -1,71 +1,53 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: filesize
3
- version: !ruby/object:Gem::Version
4
- prerelease: false
5
- segments:
6
- - 0
7
- - 0
8
- - 2
9
- version: 0.0.2
3
+ version: !ruby/object:Gem::Version
4
+ version: 0.0.3
5
+ prerelease:
10
6
  platform: ruby
11
- authors:
7
+ authors:
12
8
  - Dominik Honnef
13
9
  autorequire:
14
10
  bindir: bin
15
11
  cert_chain: []
16
-
17
- date: 2009-07-26 00:00:00 +02:00
18
- default_executable:
12
+ date: 2009-07-26 00:00:00.000000000 Z
19
13
  dependencies: []
20
-
21
- description: filesize is a small class for handling filesizes with both the SI and binary prefixes, allowing conversion from any size to any other size.
14
+ description: filesize is a small class for handling filesizes with both the SI and
15
+ binary prefixes, allowing conversion from any size to any other size.
22
16
  email: dominikh@fork-bomb.org
23
17
  executables: []
24
-
25
18
  extensions: []
26
-
27
- extra_rdoc_files:
19
+ extra_rdoc_files:
28
20
  - README.markdown
29
21
  - CHANGELOG
30
22
  - lib/filesize.rb
31
- files:
23
+ files:
32
24
  - README.markdown
33
25
  - CHANGELOG
34
26
  - lib/filesize.rb
35
27
  - filesize.gemspec
36
- has_rdoc: true
37
28
  homepage: http://filesize.rubyforge.org/
38
29
  licenses: []
39
-
40
30
  post_install_message:
41
31
  rdoc_options: []
42
-
43
- require_paths:
32
+ require_paths:
44
33
  - lib
45
- required_ruby_version: !ruby/object:Gem::Requirement
34
+ required_ruby_version: !ruby/object:Gem::Requirement
46
35
  none: false
47
- requirements:
48
- - - ">="
49
- - !ruby/object:Gem::Version
50
- segments:
51
- - 1
52
- - 8
53
- - 6
36
+ requirements:
37
+ - - ! '>='
38
+ - !ruby/object:Gem::Version
54
39
  version: 1.8.6
55
- required_rubygems_version: !ruby/object:Gem::Requirement
40
+ required_rubygems_version: !ruby/object:Gem::Requirement
56
41
  none: false
57
- requirements:
58
- - - ">="
59
- - !ruby/object:Gem::Version
60
- segments:
61
- - 0
62
- version: "0"
42
+ requirements:
43
+ - - ! '>='
44
+ - !ruby/object:Gem::Version
45
+ version: '0'
63
46
  requirements: []
64
-
65
47
  rubyforge_project: filesize
66
- rubygems_version: 1.3.7
48
+ rubygems_version: 1.8.23
67
49
  signing_key:
68
50
  specification_version: 3
69
- summary: filesize is a small class for handling filesizes with both the SI and binary prefixes, allowing conversion from any size to any other size.
51
+ summary: filesize is a small class for handling filesizes with both the SI and binary
52
+ prefixes, allowing conversion from any size to any other size.
70
53
  test_files: []
71
-