sane 0.21.0 → 0.21.2

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.21.0
1
+ 0.21.2
@@ -5,7 +5,7 @@
5
5
 
6
6
  require 'os'
7
7
  require 'andand'
8
- for file in Dir[File.dirname(__FILE__) + '/sane/*'] do
8
+ for file in Dir[File.dirname(__FILE__) + '/sane/*'].sort do
9
9
  require file
10
10
  end
11
11
 
@@ -0,0 +1,5 @@
1
+ class File
2
+ def self.home
3
+ File.expand_path('~') # TODO use more ENV variables [?]
4
+ end
5
+ end
@@ -154,5 +154,9 @@ describe Sane do
154
154
  it "should be able to require from a subdir" do
155
155
  require_relative 'subdir/go.rb'
156
156
  end
157
-
157
+
158
+ it "should have a File.home method" do
159
+ assert File.home == File.expand_path('~')
160
+ end
161
+
158
162
  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.21.0
4
+ version: 0.21.2
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: 2010-01-19 00:00:00 -07:00
12
+ date: 2010-02-01 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -58,6 +58,7 @@ files:
58
58
  - lib/sane/contain.rb
59
59
  - lib/sane/file.rb
60
60
  - lib/sane/file_filename.rb
61
+ - lib/sane/file_home.rb
61
62
  - lib/sane/float.rb
62
63
  - lib/sane/hash_hashes.rb
63
64
  - lib/sane/hash_minus_hash.rb
@@ -72,6 +73,7 @@ files:
72
73
  - lib/sane/test/assertions.rb
73
74
  - spec/files/pp_after.rb
74
75
  - spec/files/pp_before_hand.rb
76
+ - spec/files/test.rb
75
77
  - spec/go2.rb
76
78
  - spec/spec.sane.rb
77
79
  - spec/subdir/go.rb