inexact_equality_warning 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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ea8cdeed34206e0912c4358b86f589cb8e7ceb6a
4
- data.tar.gz: bc341733ed61489d9306ae8edbd1578be2e1635c
3
+ metadata.gz: 1fdf230e228ecfc65aae426f688c1ce57c6daf75
4
+ data.tar.gz: eb6a5930512426f4d54bdf834aa62c7773eaf0cc
5
5
  SHA512:
6
- metadata.gz: 486390cded551301cfd5ef1ef5aec45169a1dbc3849da13a28c0a0a11d5d4383077847a3e76439f30de15b0d29fae34273106f4c016949c96232a0ee5c901620
7
- data.tar.gz: cb39f55449f5b519afa88f6abd43002a8d94a64593055abf7972a913ceae011b7210b2f91100418b1d759f2e4f61ac6f0e6045fb4b6fdf1ea8f080d18ae78bd6
6
+ metadata.gz: 983093d86f156615cbfea8fa1570c7ca65b186e3c6fe4743d51860efe1fe4fb1f859bb882ab028a3a34e9aa231f33a9f5af9c12c9413dd028155a4ba69a0bfb3
7
+ data.tar.gz: 1cfdbe46636596ccbe3d76a0d703d224c5c843c25d00a056b9c65a26f0e6f0f60faa0b93cf31f71dfd43b6f458e506a8145c595c19a1eeae639fb9d3bae73ce4
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |gem|
2
2
  gem.name = "inexact_equality_warning"
3
- gem.version = "0.0.2"
3
+ gem.version = "0.0.3"
4
4
  gem.authors = ["Adam Prescott"]
5
5
  gem.email = ["adam@aprescott.com"]
6
6
  gem.description = "Warn when comparing floats for equality."
@@ -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 { |klass| klass.prepend(EqualityWarning) }
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.2
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.2.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.