Skip to content

Commit

Permalink
Add character method and argument-less nbsp.
Browse files Browse the repository at this point in the history
git-svn-id: svn+ssh://rubyforge.org/var/svn/erector/trunk@191 4b8798b9-51f2-4387-91b1-b04f834b421f
  • Loading branch information
jkingdon committed Jul 28, 2008
1 parent 19a88ed commit 2af6fa8
Show file tree
Hide file tree
Showing 9 changed files with 18,406 additions and 2 deletions.
2 changes: 2 additions & 0 deletions History.txt
Expand Up @@ -7,6 +7,8 @@
* Deprecate fake_erbout
* Better handling for file with .html.rb extension.
* Fix overwriting issue when using Rails helpers
* New method Widget#character
* Widget#nbsp without arguments now outputs a single non-breaking space.

=== 0.3.110 / 2008-05-29

Expand Down
11 changes: 11 additions & 0 deletions Rakefile
Expand Up @@ -87,3 +87,14 @@ desc "Updates the dependencies to run the build. This task uses Git."
task(:update_dependencies) do
system "cd spec/rails_root/vendor/rails_versions/edge; git pull origin"
end

desc "Regenerate unicode.rb from UnicodeData.txt from unicode.org. Only needs to be run when there is a new version of the Unicode specification"
task(:build_unicode) do
require 'lib/erector/unicode_builder'
builder = Erector::UnicodeBuilder.new(
File.open("/usr/lib/perl5/5.8.8/unicore/UnicodeData.txt"),
File.open("lib/erector/unicode.rb", "w")
)
builder.generate
end

1 change: 1 addition & 0 deletions lib/erector.rb
Expand Up @@ -6,6 +6,7 @@
require "#{dir}/erector/doc"
require "#{dir}/erector/raw_string"
require "#{dir}/erector/widget"
require "#{dir}/erector/unicode"
require "#{dir}/erector/widgets"
if Object.const_defined?(:RAILS_ROOT)
require "#{dir}/erector/rails"
Expand Down

0 comments on commit 2af6fa8

Please sign in to comment.