Skip to content

Commit

Permalink
Bumping to 0.99.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanwood committed Apr 28, 2009
1 parent d9a8579 commit a0ae028
Show file tree
Hide file tree
Showing 6 changed files with 21 additions and 8 deletions.
10 changes: 8 additions & 2 deletions History.txt
Original file line number Diff line number Diff line change
@@ -1,10 +1,16 @@
== 0.99.0 / 2009-04-14

== 0.99.2 / 2009-04-28

* Initial Release
* Added better support for float formatting
* Added the money_with_implied_decimal type

== 0.99.1 / 2009-04-22

* Make the missing method build a column i.e. body.record_type 1
* Prevent duplicate column names
* Better error messages
* Implement custom padding (spaces (default), zero)

== 0.99.0 / 2009-04-14

* Initial Release
2 changes: 1 addition & 1 deletion Rakefile
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ PROJ.name = 'slither'
PROJ.authors = 'Ryan Wood'
PROJ.email = 'ryan.wood@gmail.com'
PROJ.url = 'http://github.com/ryanwood/slither'
PROJ.version = '0.99.1'
PROJ.version = '0.99.2'
PROJ.exclude = %w(\.git .gitignore ^tasks \.eprj ^pkg)
PROJ.readme_file = 'README.rdoc'

Expand Down
4 changes: 0 additions & 4 deletions VERSION.yml

This file was deleted.

5 changes: 4 additions & 1 deletion lib/slither/section.rb
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,10 @@ def template(name)
end

def format(data)
row = ''
# raise( ColumnMismatchError,
# "The '#{@name}' section has #{@columns.size} column(s) defined, but there are #{data.size} column(s) provided in the data."
# ) unless @columns.size == data.size
row = ''
@columns.each do |column|
row += column.format(data[column.name])
end
Expand Down
Binary file modified slither.gemspec
Binary file not shown.
8 changes: 8 additions & 0 deletions spec/section_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,14 @@
@section.column(:name, 10, :align => :left)
@section.format(@data).should == " 3Ryan "
end

# it "should raise an error if the data and column definitions aren't the same size" do
# @section.column(:id, 5)
# lambda { @section.format(@data) }.should raise_error(
# Slither::ColumnMismatchError,
# "The 'body' section has 1 column(s) defined, but there are 2 column(s) provided in the data."
# )
# end
end

describe "when parsing a file" do
Expand Down

0 comments on commit a0ae028

Please sign in to comment.