Skip to content

Commit

Permalink
Fix invalid bytes sequence crash, bump to 0.1.3
Browse files Browse the repository at this point in the history
  • Loading branch information
bf4 committed Dec 31, 2013
1 parent dbbb465 commit 5121df8
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
8 changes: 7 additions & 1 deletion HISTORY
Expand Up @@ -4,12 +4,18 @@ Each change should fall into categories that would affect whether the release is

As such, a _Feature_ would map to either major or minor. A _bug fix_ to a patch. And _misc_ is either minor or patch, the difference being kind of fuzzy for the purposes of history. Adding tests would be patch level.

### Master
### [Master](https://github.com/bf4/code_metrics/compare/v0.1.3...master)

* Breaking Changes
* Features
* Fixes
* Misc

### [0.1.3 - 2013-12-31](https://github.com/bf4/code_metrics/compare/v0.1.2...v0.1.3)

* Fixes
* No longer forces BINARY-encoded IO to UTF-8. Fixes crashes on invalid byte sequences. (a5488634e0f1)

### 0.1.2 - 2013-10-30

* Features
Expand Down
1 change: 0 additions & 1 deletion lib/code_metrics/statistics_calculator.rb
Expand Up @@ -52,7 +52,6 @@ def add_by_io(io, file_type)
comment_started = false

while line = io.gets
line.encode!('UTF-8', 'UTF-8', :invalid => :replace) if line.respond_to?(:encode!)
@lines += 1

if comment_started
Expand Down
2 changes: 1 addition & 1 deletion lib/code_metrics/version.rb
@@ -1,3 +1,3 @@
module CodeMetrics
VERSION = "0.1.2"
VERSION = "0.1.3"
end

0 comments on commit 5121df8

Please sign in to comment.