Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Merge pull request #19 from petebacondarwin/patch-1

Read files in using binread rather than read.  Otherwise binary attachmen
  • Loading branch information...
commit 0ee28b58f1ea9d9aa273e36293a17b5d4bd3b293 2 parents 26c18d9 + 1a6969b
@quirkey authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  lib/soca/pusher.rb
View
2  lib/soca/pusher.rb
@@ -126,7 +126,7 @@ def plugin(plugin_name, options = {})
private
def map_file(path, hash)
- file_data = File.read(path)
+ file_data = File.binread(path)
base_path = path.gsub(app_dir, '')
if map = mapped_directories.detect {|k,v| k =~ base_path }
logger.debug "Matched #{path} against #{map.inspect}"
Please sign in to comment.
Something went wrong with that request. Please try again.