sane 0.9.4 → 0.9.5

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.4
1
+ 0.9.5
@@ -5,7 +5,7 @@ if RUBY_PLATFORM =~ /mingw|mswin/
5
5
  class << self
6
6
  undef :executable?
7
7
  def executable? *args
8
- File.stat(*args).executable?
8
+ File.stat(*args).executable? rescue nil
9
9
  end
10
10
  end
11
11
  end
@@ -1,15 +1,15 @@
1
1
  # Generated by jeweler
2
- # DO NOT EDIT THIS FILE
3
- # Instead, edit Jeweler::Tasks in Rakefile, and run `rake gemspec`
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in rakefile, and run the gemspec command
4
4
  # -*- encoding: utf-8 -*-
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sane}
8
- s.version = "0.9.4"
8
+ s.version = "0.9.5"
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"]
12
- s.date = %q{2009-11-12}
12
+ s.date = %q{2009-11-17}
13
13
  s.description = %q{Helper methods for ruby to make it easier to work with out of the box--things that are missing from core but should be there}
14
14
  s.email = ["rogerdpack@gmail.com"]
15
15
  s.extra_rdoc_files = [
@@ -61,3 +61,4 @@ Gem::Specification.new do |s|
61
61
  s.add_dependency(%q<hash_set_operators>, [">= 0"])
62
62
  end
63
63
  end
64
+
@@ -78,8 +78,12 @@ describe TestSane do
78
78
  end
79
79
  end
80
80
 
81
- it "should have good looking floats" do
82
- assert( (1.1 - 0.9).inspect == '0.20000000000000007000' )
81
+ it "should have good looking float#inspect" do
82
+ assert( (1.1 - 0.9).inspect.include? '0.2000000' ) # 0.20000000000000006661 or something close to it
83
+ end
84
+
85
+ it "should return false if you call File.executable? non_existent_file" do
86
+ assert !File.executable?('nonexistent')
83
87
  end
84
88
 
85
89
 
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.4
4
+ version: 0.9.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Roger Pack
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-11-12 00:00:00 -07:00
12
+ date: 2009-11-17 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency