sane 0.9.3 → 0.9.4

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.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.9.3
1
+ 0.9.4
@@ -0,0 +1,7 @@
1
+ if RUBY_VERSION < '1.9.2'
2
+ class Float
3
+ def inspect
4
+ "%.20f" % self # big!
5
+ end
6
+ end
7
+ end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sane}
8
- s.version = "0.9.3"
8
+ s.version = "0.9.4"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Roger Pack"]
@@ -26,6 +26,7 @@ Gem::Specification.new do |s|
26
26
  "lib/sane/add_regexes.rb",
27
27
  "lib/sane/bugs.rb",
28
28
  "lib/sane/enumerable-extra.rb",
29
+ "lib/sane/float.rb",
29
30
  "lib/sane/hash_hashes.rb",
30
31
  "lib/sane/hash_set_operators_bug_fix.rb",
31
32
  "lib/sane/irb_startup_options.rb",
@@ -77,6 +77,10 @@ describe TestSane do
77
77
  refute OS.windows?
78
78
  end
79
79
  end
80
+
81
+ it "should have good looking floats" do
82
+ assert( (1.1 - 0.9).inspect == '0.20000000000000007000' )
83
+ end
80
84
 
81
85
 
82
86
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sane
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.3
4
+ version: 0.9.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Pack
@@ -62,6 +62,7 @@ files:
62
62
  - lib/sane/add_regexes.rb
63
63
  - lib/sane/bugs.rb
64
64
  - lib/sane/enumerable-extra.rb
65
+ - lib/sane/float.rb
65
66
  - lib/sane/hash_hashes.rb
66
67
  - lib/sane/hash_set_operators_bug_fix.rb
67
68
  - lib/sane/irb_startup_options.rb