sane 0.23.4 → 0.23.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 +1 -1
- data/lib/sane/hash_hashes.rb +17 -15
- data/lib/sane/require_relative.rb +6 -2
- metadata +81 -100
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.23.
|
1
|
+
0.23.5
|
data/lib/sane/hash_hashes.rb
CHANGED
@@ -1,16 +1,18 @@
|
|
1
|
-
# extracted from from http://blog.playlouder.com/2008/05/07/an-interesting-ruby-hash-semantics-gotcha/
|
2
|
-
|
3
|
-
|
4
|
-
|
5
|
-
|
6
|
-
|
7
|
-
|
8
|
-
|
9
|
-
|
10
|
-
|
11
|
-
|
12
|
-
|
13
|
-
|
14
|
-
|
15
|
-
|
1
|
+
# extracted from from http://replay.waybackmachine.org/20090311014545/http://blog.playlouder.com/2008/05/07/an-interesting-ruby-hash-semantics-gotcha/
|
2
|
+
|
3
|
+
# also see http://kpumuk.info/ruby-on-rails/memo-5-use-ary-uniq-method-carefully-in-ruby
|
4
|
+
|
5
|
+
if RUBY_VERSION < '1.8.7'
|
6
|
+
|
7
|
+
|
8
|
+
class Hash
|
9
|
+
def hash
|
10
|
+
inject(0) {|hash,pair| hash ^ pair.hash}
|
11
|
+
end
|
12
|
+
|
13
|
+
def eql?(other)
|
14
|
+
self == other
|
15
|
+
end
|
16
|
+
end
|
17
|
+
|
16
18
|
end
|
@@ -18,10 +18,14 @@ module Kernel
|
|
18
18
|
require absolute_feature
|
19
19
|
rescue LoadError => e
|
20
20
|
# hacky kludge in case they've changed dirs...
|
21
|
-
|
21
|
+
begin
|
22
|
+
require File.expand_path(File.join(OriginalDir,File.dirname(file), relative_feature))
|
23
|
+
rescue LoadError => ignore_me
|
24
|
+
raise e # don't mask...
|
25
|
+
end
|
22
26
|
end
|
23
27
|
|
24
28
|
end
|
25
29
|
end
|
26
30
|
|
27
|
-
end
|
31
|
+
end
|
metadata
CHANGED
@@ -1,137 +1,118 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
prerelease:
|
5
|
-
|
6
|
-
- 0
|
7
|
-
- 23
|
8
|
-
- 4
|
9
|
-
version: 0.23.4
|
4
|
+
prerelease:
|
5
|
+
version: 0.23.5
|
10
6
|
platform: ruby
|
11
7
|
authors:
|
12
|
-
- Roger Pack
|
8
|
+
- Roger Pack
|
13
9
|
autorequire:
|
14
10
|
bindir: bin
|
15
11
|
cert_chain: []
|
16
12
|
|
17
|
-
date:
|
13
|
+
date: 2011-06-11 00:00:00 -06:00
|
18
14
|
default_executable:
|
19
15
|
dependencies:
|
20
|
-
- !ruby/object:Gem::Dependency
|
21
|
-
|
22
|
-
|
23
|
-
|
24
|
-
|
25
|
-
|
26
|
-
|
27
|
-
|
28
|
-
|
29
|
-
|
30
|
-
|
31
|
-
|
32
|
-
|
33
|
-
|
34
|
-
|
35
|
-
|
36
|
-
|
37
|
-
|
38
|
-
|
39
|
-
|
40
|
-
|
41
|
-
|
42
|
-
- 0
|
43
|
-
version: "0"
|
44
|
-
type: :runtime
|
45
|
-
version_requirements: *id002
|
16
|
+
- !ruby/object:Gem::Dependency
|
17
|
+
name: os
|
18
|
+
prerelease: false
|
19
|
+
requirement: &id001 !ruby/object:Gem::Requirement
|
20
|
+
none: false
|
21
|
+
requirements:
|
22
|
+
- - ">="
|
23
|
+
- !ruby/object:Gem::Version
|
24
|
+
version: "0"
|
25
|
+
type: :runtime
|
26
|
+
version_requirements: *id001
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: andand
|
29
|
+
prerelease: false
|
30
|
+
requirement: &id002 !ruby/object:Gem::Requirement
|
31
|
+
none: false
|
32
|
+
requirements:
|
33
|
+
- - ">="
|
34
|
+
- !ruby/object:Gem::Version
|
35
|
+
version: "0"
|
36
|
+
type: :runtime
|
37
|
+
version_requirements: *id002
|
46
38
|
description: Helpers for ruby core to make it easier to work with--things that are missing from core but should arguably be there
|
47
39
|
email:
|
48
|
-
- rogerdpack@gmail.com
|
40
|
+
- rogerdpack@gmail.com
|
49
41
|
executables: []
|
50
42
|
|
51
43
|
extensions: []
|
52
44
|
|
53
45
|
extra_rdoc_files:
|
54
|
-
- ChangeLog
|
55
|
-
- README
|
56
|
-
- TODO
|
46
|
+
- ChangeLog
|
47
|
+
- README
|
48
|
+
- TODO
|
57
49
|
files:
|
58
|
-
- ChangeLog
|
59
|
-
- README
|
60
|
-
- Rakefile
|
61
|
-
- VERSION
|
62
|
-
- lib/_dbg.rb
|
63
|
-
- lib/sane.rb
|
64
|
-
- lib/sane/array_ave.rb
|
65
|
-
- lib/sane/array_blank.rb
|
66
|
-
- lib/sane/array_contain.rb
|
67
|
-
- lib/sane/array_select_bang.rb
|
68
|
-
- lib/sane/assert.rb
|
69
|
-
- lib/sane/bugs.rb
|
70
|
-
- lib/sane/contain.rb
|
71
|
-
- lib/sane/file.rb
|
72
|
-
- lib/sane/file_filename.rb
|
73
|
-
- lib/sane/file_home.rb
|
74
|
-
- lib/sane/float.rb
|
75
|
-
- lib/sane/hash_hashes.rb
|
76
|
-
- lib/sane/hash_minus_hash.rb
|
77
|
-
- lib/sane/irb_startup_options.rb
|
78
|
-
- lib/sane/map_by.rb
|
79
|
-
- lib/sane/pp.rb
|
80
|
-
- lib/sane/pps.rb
|
81
|
-
- lib/sane/require_relative.rb
|
82
|
-
- lib/sane/sane_random.rb
|
83
|
-
- lib/sane/string_blank.rb
|
84
|
-
- lib/sane/test.rb
|
85
|
-
- lib/sane/test/assertions.rb
|
86
|
-
- lib/sane/thread.rb
|
87
|
-
- spec/files/pp_after.rb
|
88
|
-
- spec/files/pp_before_hand.rb
|
89
|
-
- spec/files/test.rb
|
90
|
-
- spec/go2.rb
|
91
|
-
- spec/req_rel_bug/recreate.rb
|
92
|
-
- spec/spec.sane.rb
|
93
|
-
- spec/subdir/go.rb
|
94
|
-
- spec/subdir2/require_relative2.rb
|
95
|
-
- todo
|
96
|
-
- TODO
|
50
|
+
- ChangeLog
|
51
|
+
- README
|
52
|
+
- Rakefile
|
53
|
+
- VERSION
|
54
|
+
- lib/_dbg.rb
|
55
|
+
- lib/sane.rb
|
56
|
+
- lib/sane/array_ave.rb
|
57
|
+
- lib/sane/array_blank.rb
|
58
|
+
- lib/sane/array_contain.rb
|
59
|
+
- lib/sane/array_select_bang.rb
|
60
|
+
- lib/sane/assert.rb
|
61
|
+
- lib/sane/bugs.rb
|
62
|
+
- lib/sane/contain.rb
|
63
|
+
- lib/sane/file.rb
|
64
|
+
- lib/sane/file_filename.rb
|
65
|
+
- lib/sane/file_home.rb
|
66
|
+
- lib/sane/float.rb
|
67
|
+
- lib/sane/hash_hashes.rb
|
68
|
+
- lib/sane/hash_minus_hash.rb
|
69
|
+
- lib/sane/irb_startup_options.rb
|
70
|
+
- lib/sane/map_by.rb
|
71
|
+
- lib/sane/pp.rb
|
72
|
+
- lib/sane/pps.rb
|
73
|
+
- lib/sane/require_relative.rb
|
74
|
+
- lib/sane/sane_random.rb
|
75
|
+
- lib/sane/string_blank.rb
|
76
|
+
- lib/sane/test.rb
|
77
|
+
- lib/sane/test/assertions.rb
|
78
|
+
- lib/sane/thread.rb
|
79
|
+
- spec/files/pp_after.rb
|
80
|
+
- spec/files/pp_before_hand.rb
|
81
|
+
- spec/files/test.rb
|
82
|
+
- spec/go2.rb
|
83
|
+
- spec/req_rel_bug/recreate.rb
|
84
|
+
- spec/spec.sane.rb
|
85
|
+
- spec/subdir/go.rb
|
86
|
+
- spec/subdir2/require_relative2.rb
|
87
|
+
- todo
|
88
|
+
- TODO
|
97
89
|
has_rdoc: true
|
98
90
|
homepage: http://github.com/rogerdpack/sane_ruby
|
99
91
|
licenses: []
|
100
92
|
|
101
93
|
post_install_message:
|
102
|
-
rdoc_options:
|
103
|
-
|
94
|
+
rdoc_options: []
|
95
|
+
|
104
96
|
require_paths:
|
105
|
-
- lib
|
97
|
+
- lib
|
106
98
|
required_ruby_version: !ruby/object:Gem::Requirement
|
107
99
|
none: false
|
108
100
|
requirements:
|
109
|
-
|
110
|
-
|
111
|
-
|
112
|
-
- 0
|
113
|
-
version: "0"
|
101
|
+
- - ">="
|
102
|
+
- !ruby/object:Gem::Version
|
103
|
+
version: "0"
|
114
104
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
115
105
|
none: false
|
116
106
|
requirements:
|
117
|
-
|
118
|
-
|
119
|
-
|
120
|
-
- 0
|
121
|
-
version: "0"
|
107
|
+
- - ">="
|
108
|
+
- !ruby/object:Gem::Version
|
109
|
+
version: "0"
|
122
110
|
requirements: []
|
123
111
|
|
124
112
|
rubyforge_project:
|
125
|
-
rubygems_version: 1.
|
113
|
+
rubygems_version: 1.5.1
|
126
114
|
signing_key:
|
127
115
|
specification_version: 3
|
128
116
|
summary: Helpers for ruby core to make it easier to work with--things that are missing from core but should arguably be there
|
129
|
-
test_files:
|
130
|
-
|
131
|
-
- spec/files/pp_before_hand.rb
|
132
|
-
- spec/files/test.rb
|
133
|
-
- spec/go2.rb
|
134
|
-
- spec/req_rel_bug/recreate.rb
|
135
|
-
- spec/spec.sane.rb
|
136
|
-
- spec/subdir/go.rb
|
137
|
-
- spec/subdir2/require_relative2.rb
|
117
|
+
test_files: []
|
118
|
+
|