sane 0.16.0 → 0.16.1

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.16.0
1
+ 0.16.1
@@ -80,11 +80,13 @@ end
80
80
 
81
81
  module Kernel
82
82
  BASE_DIR = Dir.getwd
83
+
83
84
  def __DIR__
84
85
  dir = (/^(.+)?:\d+/ =~ caller[0]) ? File.expand_path(File.dirname($1), BASE_DIR) : nil
85
86
  dir += '/' if dir
86
87
  dir
87
88
  end unless defined?(__DIR__)
89
+ alias __dir__ __DIR__ unless defined?(__dir__)
88
90
  end
89
91
 
90
92
  if RUBY_VERSION >= '1.9.2'
data/sane.gemspec CHANGED
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{sane}
8
- s.version = "0.16.0"
8
+ s.version = "0.16.1"
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-12-18}
12
+ s.date = %q{2009-12-22}
13
13
  s.description = %q{Helpers for ruby core to make it easier to work with--things that are missing from core but should arguably be there}
14
14
  s.email = ["rogerdpack@gmail.com"]
15
15
  s.extra_rdoc_files = [
data/spec/spec.sane.rb CHANGED
@@ -23,6 +23,10 @@ describe Sane do
23
23
  File.delete filename
24
24
  end
25
25
 
26
+ it "should have __dir__ too" do
27
+ __dir__.should_not be_nil
28
+ end
29
+
26
30
  class A
27
31
  def go; 3; end
28
32
  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.16.0
4
+ version: 0.16.1
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-12-18 00:00:00 -07:00
12
+ date: 2009-12-22 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency