Skip to content

Commit

Permalink
Replace underscores with spaces and titleize sheet names.
Browse files Browse the repository at this point in the history
  • Loading branch information
Alan Larkin committed Oct 31, 2010
1 parent a6283f3 commit 27fbef1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion lib/to_xls.rb
Expand Up @@ -8,7 +8,7 @@ def to_xls(options = {})

each do |key, value|
sheet = book.create_worksheet
sheet.name = key.to_s
sheet.name = key.to_s.gsub('_', ' ').titleize
value.to_xls({ :sheet => sheet }.merge(options[key] || {}))
end

Expand Down
4 changes: 2 additions & 2 deletions to_xls.gemspec
@@ -1,6 +1,6 @@
Gem::Specification.new do |s|
s.name = %q{to_xls}
s.version = "0.2.0"
s.name = %q{al-to_xls}
s.version = "0.2.1"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Enrique Garcia Cota", "Francisco de Juan", "Alan Larkin"]
Expand Down

0 comments on commit 27fbef1

Please sign in to comment.