{"action":"created","issue":{"url":"https://api.github.com/repos/rubyzip/rubyzip/issues/260","labels_url":"https://api.github.com/repos/rubyzip/rubyzip/issues/260/labels{/name}","comments_url":"https://api.github.com/repos/rubyzip/rubyzip/issues/260/comments","events_url":"https://api.github.com/repos/rubyzip/rubyzip/issues/260/events","html_url":"https://github.com/rubyzip/rubyzip/issues/260","id":119314251,"number":260,"title":"Error in example_recursive.rb","user":{"login":"Pitru","id":1722672,"avatar_url":"https://avatars.githubusercontent.com/u/1722672?v=3","gravatar_id":"","url":"https://api.github.com/users/Pitru","html_url":"https://github.com/Pitru","followers_url":"https://api.github.com/users/Pitru/followers","following_url":"https://api.github.com/users/Pitru/following{/other_user}","gists_url":"https://api.github.com/users/Pitru/gists{/gist_id}","starred_url":"https://api.github.com/users/Pitru/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Pitru/subscriptions","organizations_url":"https://api.github.com/users/Pitru/orgs","repos_url":"https://api.github.com/users/Pitru/repos","events_url":"https://api.github.com/users/Pitru/events{/privacy}","received_events_url":"https://api.github.com/users/Pitru/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-28T19:31:43Z","updated_at":"2016-01-18T09:22:17Z","closed_at":null,"body":"In `rubyzip/samples/example_recursive.rb` (https://github.com/rubyzip/rubyzip/blob/05916bf89181e1955118fd3ea059f18acac28cc8/samples/example_recursive.rb#L43)  it should be `f.write`. 'Puts' puts extra line in files, damaging them."},"comment":{"url":"https://api.github.com/repos/rubyzip/rubyzip/issues/comments/172472685","html_url":"https://github.com/rubyzip/rubyzip/issues/260#issuecomment-172472685","issue_url":"https://api.github.com/repos/rubyzip/rubyzip/issues/260","id":172472685,"user":{"login":"pol0nium","id":4314707,"avatar_url":"https://avatars.githubusercontent.com/u/4314707?v=3","gravatar_id":"","url":"https://api.github.com/users/pol0nium","html_url":"https://github.com/pol0nium","followers_url":"https://api.github.com/users/pol0nium/followers","following_url":"https://api.github.com/users/pol0nium/following{/other_user}","gists_url":"https://api.github.com/users/pol0nium/gists{/gist_id}","starred_url":"https://api.github.com/users/pol0nium/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/pol0nium/subscriptions","organizations_url":"https://api.github.com/users/pol0nium/orgs","repos_url":"https://api.github.com/users/pol0nium/repos","events_url":"https://api.github.com/users/pol0nium/events{/privacy}","received_events_url":"https://api.github.com/users/pol0nium/received_events","type":"User","site_admin":false},"created_at":"2016-01-18T09:22:17Z","updated_at":"2016-01-18T09:22:17Z","body":"+1\r\n\r\nIt damaged xlsx files when zipping them. I replaced the `puts` with a `write` and the file corruption disappeared."}}