Permalink
Browse files

Bumping to 0.99.2

  • Loading branch information...
1 parent d9a8579 commit a0ae028c745ad39e3bd3ffdaeca64c3d97967cee @ryanwood ryanwood committed Apr 28, 2009
Showing with 21 additions and 8 deletions.
  1. +8 −2 History.txt
  2. +1 −1 Rakefile
  3. +0 −4 VERSION.yml
  4. +4 −1 lib/slither/section.rb
  5. BIN slither.gemspec
  6. +8 −0 spec/section_spec.rb
View
10 History.txt
@@ -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
View
2 Rakefile
@@ -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'
View
4 VERSION.yml
@@ -1,4 +0,0 @@
----
-:minor: 1
-:patch: 99
-:major: 0
View
5 lib/slither/section.rb
@@ -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
View
BIN slither.gemspec
Binary file not shown.
View
8 spec/section_spec.rb
@@ -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

0 comments on commit a0ae028

Please sign in to comment.