rlevick/apfel — pull request #2 by jmoody (2013-04-03 00:21:24+00:00)
Title: 0.0.4 fix missing first comment in utf8 files

nice repo.

i came across some cases where parse method would fail to capture the first comment of certain files. i narrowed the problem down to utf8 encoded strings files (which i believe is the required format for .strings).

after some more investigation, i figured out that it was the BOM character at position 0 in the utf8 strings files that was causing this

```
def whole_comment
/((^\/\*(.+)\*\/)|(^\/\/(.+)))/.match(content).to_s
end
```
to return false

i added some more specs and decided to rewrite your `Reader::read` to filter out this BOM character.

along the way, i added a `.gitignore` file and had to comment out some of your `Rakefile` because it was interacting in a bad way with bundle and building/installing the gem.