Skip to content

Commit

Permalink
frozen
Browse files Browse the repository at this point in the history
  • Loading branch information
infused committed Nov 22, 2017
1 parent 36a92e3 commit ec659eb
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
1 change: 1 addition & 0 deletions lib/dbf/column.rb
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ class NameError < StandardError
G: ColumnType::General
}
TYPE_CAST_CLASS.default = ColumnType::String
TYPE_CAST_CLASS.freeze

# Initialize a new DBF::Column
#
Expand Down
2 changes: 1 addition & 1 deletion lib/dbf/column_type.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ class Base
ENCODING_ARGS = [
Encoding.default_external,
{undef: :replace, invalid: :replace}
]
].freeze

attr_reader :decimal, :encoding

Expand Down
4 changes: 2 additions & 2 deletions lib/dbf/encodings.rb
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,6 @@ module DBF
'c9' => 'cp1251', # Russian Windows
'ca' => 'cp1254', # Turkish Windows
'cb' => 'cp1253', # Greek Windows
'cc' => 'cp1257', # Baltic Windows
}
'cc' => 'cp1257' # Baltic Windows
}.freeze
end

0 comments on commit ec659eb

Please sign in to comment.