sane 0.25.2 → 0.25.3
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/ChangeLog +1 -1
- data/VERSION +1 -1
- data/lib/sane/string.rb +10 -0
- data/spec/spec.sane.rb +7 -0
- metadata +3 -3
data/ChangeLog
CHANGED
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.25.
|
1
|
+
0.25.3
|
data/lib/sane/string.rb
CHANGED
data/spec/spec.sane.rb
CHANGED
@@ -202,4 +202,11 @@ describe Sane do
|
|
202
202
|
[2].sample.should == 2
|
203
203
|
end
|
204
204
|
|
205
|
+
it 'should have String#last' do
|
206
|
+
'abc'.last(2).should == 'bc'
|
207
|
+
'abc'.last(3).should == 'abc'
|
208
|
+
'abc'.last(1).should == 'c'
|
209
|
+
'abc'.last(0).should == '' # this is feeling weird now...
|
210
|
+
'abc'.last(44).should == 'abc'
|
211
|
+
end
|
205
212
|
end
|
metadata
CHANGED
@@ -2,7 +2,7 @@
|
|
2
2
|
name: sane
|
3
3
|
version: !ruby/object:Gem::Version
|
4
4
|
prerelease:
|
5
|
-
version: 0.25.
|
5
|
+
version: 0.25.3
|
6
6
|
platform: ruby
|
7
7
|
authors:
|
8
8
|
- Roger Pack
|
@@ -10,7 +10,7 @@ autorequire:
|
|
10
10
|
bindir: bin
|
11
11
|
cert_chain: []
|
12
12
|
|
13
|
-
date:
|
13
|
+
date: 2012-03-13 00:00:00 Z
|
14
14
|
dependencies:
|
15
15
|
- !ruby/object:Gem::Dependency
|
16
16
|
name: os
|
@@ -101,7 +101,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
101
101
|
requirements: []
|
102
102
|
|
103
103
|
rubyforge_project:
|
104
|
-
rubygems_version: 1.8.
|
104
|
+
rubygems_version: 1.8.15
|
105
105
|
signing_key:
|
106
106
|
specification_version: 3
|
107
107
|
summary: Helpers for ruby core to make it easier to work with--things that are missing from core but should arguably be there
|