redis_importer 1.1.5 → 1.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/lib/extensions/s3.rb CHANGED
@@ -12,8 +12,9 @@ module AWS
12
12
 
13
13
  # Copies the S3 Object to a local directory.
14
14
  # save_to('tmp/file.csv')
15
+ # Copied files are in ISO-8859-1 encoding
15
16
  def save_to(path)
16
- File.open(path,'w') do |file|
17
+ File.open(path,'wb') do |file|
17
18
  S3Object.stream(self.key,self.bucket.name) do |chunk|
18
19
  file.write chunk
19
20
  end
@@ -21,4 +22,4 @@ module AWS
21
22
  end
22
23
  end
23
24
  end
24
- end
25
+ end
@@ -1,3 +1,3 @@
1
1
  module RedisImporter
2
- VERSION = "1.1.5"
2
+ VERSION = "1.1.6"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: redis_importer
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.1.5
4
+ version: 1.1.6
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2012-10-16 00:00:00.000000000 Z
13
+ date: 2013-04-24 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: rspec