visionmedia-rext 0.0.5 → 0.0.6

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/History.rdoc CHANGED
@@ -1,4 +1,8 @@
1
1
 
2
+ === 0.0.6 / 2009-04-01
3
+
4
+ * Added String#from
5
+
2
6
  === 0.0.5 / 2009-04-01
3
7
 
4
8
  * Added Object#indifferent_hash [#3]
data/README.rdoc CHANGED
@@ -55,6 +55,7 @@ Below are the methods currently provided by Rext.
55
55
  - singular?
56
56
  - first
57
57
  - last
58
+ - from
58
59
  - file
59
60
  - files
60
61
  - path
@@ -201,4 +201,16 @@ class String
201
201
  self[-n, n]
202
202
  end
203
203
 
204
+ ##
205
+ # All characters after +n+.
206
+ #
207
+ # === Examples
208
+ #
209
+ # '.css'.from(1) #=> css
210
+ #
211
+
212
+ def from n
213
+ self[n, length]
214
+ end
215
+
204
216
  end
data/lib/rext/version.rb CHANGED
@@ -1,4 +1,4 @@
1
1
 
2
2
  module Rext
3
- VERSION = '0.0.5'
3
+ VERSION = '0.0.6'
4
4
  end
data/rext.gemspec CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rext}
5
- s.version = "0.0.5"
5
+ s.version = "0.0.6"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 1.2") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["TJ Holowaychuk"]
data/spec/string_spec.rb CHANGED
@@ -105,6 +105,12 @@ describe String do
105
105
  end
106
106
  end
107
107
 
108
+ describe "#from" do
109
+ it "should return all characters from n" do
110
+ 'cookies'.from(3).should == 'kies'
111
+ end
112
+ end
113
+
108
114
  describe "#camelize" do
109
115
  it "should camel-case a string, leaving the first character lower by default" do
110
116
  'some_foo_bar'.camelize.should == 'someFooBar'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: visionmedia-rext
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.5
4
+ version: 0.0.6
5
5
  platform: ruby
6
6
  authors:
7
7
  - TJ Holowaychuk