utility_belt 1.0.3 → 1.0.4
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/lib/language_greps.rb +9 -0
- data/test/language_greps_spec.rb +8 -0
- data/test/string_to_proc_spec.rb +1 -1
- data/utility_belt.gemspec +1 -1
- metadata +3 -2
data/lib/language_greps.rb
CHANGED
@@ -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
|
data/test/string_to_proc_spec.rb
CHANGED
data/utility_belt.gemspec
CHANGED
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.
|
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-
|
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
|