Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

remove string hacks and upgrade highline

  • Loading branch information...
commit 252d410f2f23055283a7177b3ff0bbb38c34e1f9 1 parent 4408dd6
@saturnflyer saturnflyer authored
View
6 lib/plugins/string_extensions/lib/string_extensions.rb
@@ -4,12 +4,6 @@ class String
def symbolize
self.gsub(/[^A-Za-z0-9]+/, "_").gsub(/(^_+|_+$)/, "").underscore.to_sym
end
-
- # This is a hack. It allows our bootstrap rake task to run with a version of highline
- # that expects a parse method on String (1.6.9).
- def self.parse(txt)
- txt[/\w+/]
- end
def titlecase
self.gsub(/((?:^|\s)[a-z])/) { $1.upcase }
View
2  radiant.gemspec
@@ -31,7 +31,7 @@ a general purpose content managment system--not merely a blogging engine.}
s.add_dependency "compass", "~> 0.11.1"
s.add_dependency "delocalize", "~> 0.2.3"
s.add_dependency "haml", "~> 3.1.1"
- s.add_dependency "highline", "~> 1.6.2"
+ s.add_dependency "highline", "~> 1.6.10"
s.add_dependency "rack", "~> 1.1.1"
s.add_dependency "rack-cache", "~> 1.0.2"
s.add_dependency "rake", ">= 0.8.7"
View
6 spec/lib/core_ext/string_ext_spec.rb
@@ -8,10 +8,4 @@
str.slugify.should == expected
str.slugerize.should == expected
end
-
- it 'should parse a string by returning word text' do
- str = " test12 "
- expected = "test12"
- String.parse(str).should == expected
- end
end
Please sign in to comment.
Something went wrong with that request. Please try again.