utility_belt 1.0.3 → 1.0.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,3 +1,12 @@
1
+ # fix by Bob Hutchison:
2
+ class String
3
+ unless public_method_defined? :blank?
4
+ def blank?
5
+ self !~ /\S/
6
+ end
7
+ end
8
+ end
9
+
1
10
  # TODO: upgrade these to take either regexes or strings
2
11
 
3
12
  # http://gilesbowkett.blogspot.com/2006/12/smalltalk-cleverness-translated-into.html
@@ -0,0 +1,8 @@
1
+ require "lib/language_greps"
2
+ describe "language greps" do
3
+
4
+ it "should handle String#blank?" do
5
+ "".should be_blank
6
+ end
7
+
8
+ end
@@ -1,4 +1,4 @@
1
- require "string_to_proc"
1
+ require "lib/string_to_proc"
2
2
  describe "String to Proc" do
3
3
 
4
4
  before(:all) do
data/utility_belt.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  require 'rubygems'
2
2
  SPEC = Gem::Specification.new do |s|
3
3
  s.name = "utility_belt"
4
- s.version = "1.0.3"
4
+ s.version = "1.0.4"
5
5
  s.author = "Giles Bowkett"
6
6
  s.email = "gilesb@gmail.com"
7
7
  s.homepage = "http://utilitybelt.rubyforge.org"
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: utility_belt
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.3
4
+ version: 1.0.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Giles Bowkett
@@ -9,7 +9,7 @@ autorequire: utility_belt
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2007-12-11 00:00:00 -08:00
12
+ date: 2007-12-12 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -85,6 +85,7 @@ files:
85
85
  - Rakefile
86
86
  - README
87
87
  - test
88
+ - test/language_greps_spec.rb
88
89
  - test/string_to_proc_spec.rb
89
90
  - test/utility_belt_spec.rb
90
91
  - utility_belt.gemspec