sane 0.25.6 → 0.25.7
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.
- checksums.yaml +7 -0
- data/ChangeLog +3 -0
- data/README +2 -0
- data/Rakefile +1 -1
- data/VERSION +1 -1
- data/lib/sane/irb_startup_options.rb +10 -10
- data/spec/spec.sane.rb +1 -15
- metadata +16 -38
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3e2029bc76b90e80ba6e34d92ab0e21be63bfe2e
|
4
|
+
data.tar.gz: 450b6a0a764619b3aea88f76c36d41545cc883df
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 25696671ecadc186ae7a7f062db40e8a3d187009bb162b7ca4fca1fcb53d8f2bbfc50bce6796cbe5828b1094e5f1bbd7758fdaeffa85da91410d2ef5f58502e7
|
7
|
+
data.tar.gz: 9353f751a2deb6804611931a9f83579b4722060ae7de252d7b593f6c589ffd19713ebe8373576a5047a2b716b9dc288e263efee2edbc89f468825d7131fa534a
|
data/ChangeLog
CHANGED
data/README
CHANGED
@@ -21,4 +21,6 @@ enumerable-extra
|
|
21
21
|
>> [1,2,3].map(:to_s) # applies it automatically! far less ugly than [1,2,3].map &:to_s
|
22
22
|
=> ["1", "2", "3"]
|
23
23
|
|
24
|
+
and Thread.abort_on_exception=true # kill program if a child thread dies--alert you earlier!
|
25
|
+
|
24
26
|
Don't leave home without these!
|
data/Rakefile
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.25.
|
1
|
+
0.25.7
|
@@ -1,15 +1,15 @@
|
|
1
1
|
if defined? IRB
|
2
|
-
|
3
|
-
begin
|
4
|
-
require 'irb/completion'
|
5
2
|
# this one can fail if readline isn't installed
|
6
|
-
|
7
|
-
|
8
|
-
|
3
|
+
|
4
|
+
begin
|
5
|
+
require 'irb/completion'
|
9
6
|
# this one can fail if readline isn't installed
|
7
|
+
rescue Exception
|
8
|
+
end
|
9
|
+
begin
|
10
10
|
IRB.conf[:AUTO_INDENT] = true
|
11
11
|
IRB.conf[:PROMPT_MODE] = :SIMPLE
|
12
12
|
#require 'irb/ext/save-history' # this one might mess with peoples' local settings of it tho...
|
13
|
-
rescue Exception
|
14
|
-
# guess this was some *other* IRB module? defined elsewhere?
|
15
|
-
end
|
16
|
-
|
13
|
+
rescue Exception
|
14
|
+
# guess this was some *other* IRB module? defined elsewhere?
|
15
|
+
end
|
16
|
+
|
17
17
|
end
|
data/spec/spec.sane.rb
CHANGED
@@ -10,20 +10,6 @@ rescue LoadError
|
|
10
10
|
end
|
11
11
|
require 'fileutils'
|
12
12
|
|
13
|
-
|
14
|
-
class Object
|
15
|
-
alias :yes :should # a.yes == [3]
|
16
|
-
def yes!
|
17
|
-
self
|
18
|
-
end
|
19
|
-
end
|
20
|
-
|
21
|
-
class FalseClass
|
22
|
-
def yes!
|
23
|
-
raise 'failed' # a.true!
|
24
|
-
end
|
25
|
-
end
|
26
|
-
|
27
13
|
describe Sane do
|
28
14
|
|
29
15
|
before do
|
@@ -109,7 +95,7 @@ describe Sane do
|
|
109
95
|
["1"].collect_by(:to_i).should == [1]
|
110
96
|
a = ["1"]
|
111
97
|
a.map_by!(:to_i)
|
112
|
-
a.
|
98
|
+
a.should == [1]
|
113
99
|
a == [1]
|
114
100
|
end
|
115
101
|
|
metadata
CHANGED
@@ -1,50 +1,30 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: sane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.25.
|
5
|
-
prerelease:
|
4
|
+
version: 0.25.7
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Roger Pack
|
9
|
-
autorequire:
|
8
|
+
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2014-06-06 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: os
|
16
|
-
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
|
-
requirements:
|
19
|
-
- - ! '>='
|
20
|
-
- !ruby/object:Gem::Version
|
21
|
-
version: '0'
|
22
|
-
type: :runtime
|
23
|
-
prerelease: false
|
24
15
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
16
|
requirements:
|
27
|
-
- -
|
17
|
+
- - '>='
|
28
18
|
- !ruby/object:Gem::Version
|
29
19
|
version: '0'
|
30
|
-
- !ruby/object:Gem::Dependency
|
31
|
-
name: os
|
32
20
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
21
|
requirements:
|
35
|
-
- -
|
22
|
+
- - '>='
|
36
23
|
- !ruby/object:Gem::Version
|
37
24
|
version: '0'
|
38
|
-
type: :runtime
|
39
25
|
prerelease: false
|
40
|
-
|
41
|
-
|
42
|
-
requirements:
|
43
|
-
- - ! '>='
|
44
|
-
- !ruby/object:Gem::Version
|
45
|
-
version: '0'
|
46
|
-
description: Helpers for ruby core classes to make life easier-i.e. things that are
|
47
|
-
missing from core but should be there <sigh>
|
26
|
+
type: :runtime
|
27
|
+
description: Helpers for ruby core classes to make life easier-i.e. things that are missing from core but should be there <sigh>
|
48
28
|
email:
|
49
29
|
- rogerdpack@gmail.com
|
50
30
|
executables: []
|
@@ -99,27 +79,25 @@ files:
|
|
99
79
|
- spec/subdir2/require_relative2.rb
|
100
80
|
homepage: http://github.com/rogerdpack/sane
|
101
81
|
licenses: []
|
102
|
-
|
82
|
+
metadata: {}
|
83
|
+
post_install_message:
|
103
84
|
rdoc_options: []
|
104
85
|
require_paths:
|
105
86
|
- lib
|
106
87
|
required_ruby_version: !ruby/object:Gem::Requirement
|
107
|
-
none: false
|
108
88
|
requirements:
|
109
|
-
- -
|
89
|
+
- - '>='
|
110
90
|
- !ruby/object:Gem::Version
|
111
91
|
version: '0'
|
112
92
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
113
|
-
none: false
|
114
93
|
requirements:
|
115
|
-
- -
|
94
|
+
- - '>='
|
116
95
|
- !ruby/object:Gem::Version
|
117
96
|
version: '0'
|
118
97
|
requirements: []
|
119
|
-
rubyforge_project:
|
120
|
-
rubygems_version:
|
121
|
-
signing_key:
|
122
|
-
specification_version:
|
123
|
-
summary: Helpers for ruby core classes to make life easier-i.e. things that are missing
|
124
|
-
from core but should be there <sigh>
|
98
|
+
rubyforge_project:
|
99
|
+
rubygems_version: 2.2.2
|
100
|
+
signing_key:
|
101
|
+
specification_version: 4
|
102
|
+
summary: Helpers for ruby core classes to make life easier-i.e. things that are missing from core but should be there <sigh>
|
125
103
|
test_files: []
|