inexact_equality_warning 0.0.2 → 0.0.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/inexact_equality_warning.gemspec +1 -1
- data/lib/inexact_equality_warning.rb +3 -1
- metadata +12 -12
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1fdf230e228ecfc65aae426f688c1ce57c6daf75
|
4
|
+
data.tar.gz: eb6a5930512426f4d54bdf834aa62c7773eaf0cc
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 983093d86f156615cbfea8fa1570c7ca65b186e3c6fe4743d51860efe1fe4fb1f859bb882ab028a3a34e9aa231f33a9f5af9c12c9413dd028155a4ba69a0bfb3
|
7
|
+
data.tar.gz: 1cfdbe46636596ccbe3d76a0d703d224c5c843c25d00a056b9c65a26f0e6f0f60faa0b93cf31f71dfd43b6f458e506a8145c595c19a1eeae639fb9d3bae73ce4
|
@@ -7,4 +7,6 @@ module EqualityWarning
|
|
7
7
|
end
|
8
8
|
|
9
9
|
# classes that are leaf nodes of all subclasses of Numeric
|
10
|
-
[Fixnum, Float, Bignum, Rational, Complex].each
|
10
|
+
[Fixnum, Float, Bignum, Rational, Complex].each do |klass|
|
11
|
+
klass.class_eval { prepend(EqualityWarning) }
|
12
|
+
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: inexact_equality_warning
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Adam Prescott
|
@@ -14,14 +14,14 @@ dependencies:
|
|
14
14
|
name: rspec
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- -
|
17
|
+
- - '>='
|
18
18
|
- !ruby/object:Gem::Version
|
19
19
|
version: '3.0'
|
20
20
|
type: :development
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- -
|
24
|
+
- - '>='
|
25
25
|
- !ruby/object:Gem::Version
|
26
26
|
version: '3.0'
|
27
27
|
description: Warn when comparing floats for equality.
|
@@ -31,15 +31,15 @@ executables: []
|
|
31
31
|
extensions: []
|
32
32
|
extra_rdoc_files: []
|
33
33
|
files:
|
34
|
-
- ".rspec"
|
35
|
-
- ".travis.yml"
|
36
|
-
- Gemfile
|
37
|
-
- LICENSE
|
38
|
-
- README.md
|
39
|
-
- inexact_equality_warning.gemspec
|
40
34
|
- lib/inexact_equality_warning.rb
|
41
35
|
- spec/inexact_equality_warning_spec.rb
|
42
36
|
- spec/spec_helper.rb
|
37
|
+
- inexact_equality_warning.gemspec
|
38
|
+
- .rspec
|
39
|
+
- .travis.yml
|
40
|
+
- LICENSE
|
41
|
+
- Gemfile
|
42
|
+
- README.md
|
43
43
|
homepage: https://github.com/aprescott/ruby-inexact_equality_warning
|
44
44
|
licenses:
|
45
45
|
- MIT
|
@@ -50,17 +50,17 @@ require_paths:
|
|
50
50
|
- lib
|
51
51
|
required_ruby_version: !ruby/object:Gem::Requirement
|
52
52
|
requirements:
|
53
|
-
- -
|
53
|
+
- - '>='
|
54
54
|
- !ruby/object:Gem::Version
|
55
55
|
version: 2.0.0
|
56
56
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
57
57
|
requirements:
|
58
|
-
- -
|
58
|
+
- - '>='
|
59
59
|
- !ruby/object:Gem::Version
|
60
60
|
version: '0'
|
61
61
|
requirements: []
|
62
62
|
rubyforge_project:
|
63
|
-
rubygems_version: 2.
|
63
|
+
rubygems_version: 2.0.3
|
64
64
|
signing_key:
|
65
65
|
specification_version: 4
|
66
66
|
summary: You do not want to compare floating point numbers for equality.
|