Skip to content

Commit

Permalink
Release 0.3.11.1
Browse files Browse the repository at this point in the history
  • Loading branch information
aslakhellesoy committed Jun 5, 2009
1 parent 30fd042 commit deb04b4
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 8 deletions.
5 changes: 5 additions & 0 deletions History.txt
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
== 0.3.12 (In Git)

=== Changed Features
* The data returned from Table#hashes and similar methods are frozen. Dup if you need to modify. (Aslak Hellesøy)

== 0.3.11 2009-06-05

This release just fixes a tiny bug in the formatter to fix an incompatibility
Expand Down
2 changes: 1 addition & 1 deletion cucumber.gemspec
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

Gem::Specification.new do |s|
s.name = %q{cucumber}
s.version = "0.3.11"
s.version = "0.3.11.1"

s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
s.authors = ["Aslak Helles\303\270y"]
Expand Down
12 changes: 6 additions & 6 deletions lib/cucumber/ast/table.rb
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ def transpose
def hashes
@hashes ||= cells_rows[1..-1].map do |row|
row.to_hash
end
end.freeze
end

# Converts this table into a Hash where the first column is
Expand Down Expand Up @@ -198,7 +198,7 @@ def has_text?(text)
def cells_rows
@rows ||= cell_matrix.map do |cell_row|
@cells_class.new(self, cell_row)
end
end.freeze
end

def headers
Expand Down Expand Up @@ -230,7 +230,7 @@ def col_width(col)
def columns
@columns ||= cell_matrix.transpose.map do |cell_row|
@cells_class.new(self, cell_row)
end
end.freeze
end

def cell_matrix
Expand All @@ -243,7 +243,7 @@ def cell_matrix
col += 1
@cell_class.new(raw_cell, self, row, col, line)
end
end
end.freeze
end

# Represents a row of cells or columns of cells
Expand All @@ -268,7 +268,7 @@ def to_sexp #:nodoc:
end

def to_hash #:nodoc:
@to_hash ||= @table.to_hash(self)
@to_hash ||= @table.to_hash(self).freeze
end

def value(n) #:nodoc:
Expand Down Expand Up @@ -326,7 +326,7 @@ def to_sexp #:nodoc:
private

def col_width
@col_width ||= @table.__send__(:col_width, @col)
@col_width ||= @table.__send__(:col_width, @col).freeze
end
end
end
Expand Down
2 changes: 1 addition & 1 deletion lib/cucumber/version.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ class VERSION #:nodoc:
MAJOR = 0
MINOR = 3
TINY = 11
PATCH = nil # Set to nil for official release
PATCH = 1 # Set to nil for official release

STRING = [MAJOR, MINOR, TINY, PATCH].compact.join('.')
end
Expand Down

0 comments on commit deb04b4

Please sign in to comment.