cloudcrypt 0.0.7 → 0.0.8

Sign up to get free protection for your applications and to get access to all the features.
@@ -31,7 +31,14 @@ module Cloudcrypt
31
31
 
32
32
  def download(file_basename,destination,bucket=RAVE_BUCKET)
33
33
  abort("S3://#{bucket}/#{file_basename} doesn't exist") unless file_exists?(file_basename,bucket)
34
- File.open(destination,'wb') { |f| f << @s3.directories.get(bucket).files.get(file_basename).body }
34
+ # this produces a NoMemoryError: failed to allocate memory
35
+ #File.open(destination,'wb') { |f| f << @s3.directories.get(bucket).files.get(file_basename).body }
36
+
37
+ File.open(destination,'wb') do |file|
38
+ @s3.directories.get(bucket).files.get(file_basename) do |chunk|
39
+ file << chunk
40
+ end
41
+ end
35
42
  end
36
43
 
37
44
  def list(bucket=RAVE_BUCKET)
@@ -1,3 +1,3 @@
1
1
  module Cloudcrypt
2
- VERSION = "0.0.7"
2
+ VERSION = "0.0.8"
3
3
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloudcrypt
3
3
  version: !ruby/object:Gem::Version
4
- hash: 17
4
+ hash: 15
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 7
10
- version: 0.0.7
9
+ - 8
10
+ version: 0.0.8
11
11
  platform: ruby
12
12
  authors:
13
13
  - Rodrigo Estebanez
@@ -15,13 +15,14 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2011-01-04 00:00:00 -05:00
18
+ date: 2011-03-09 00:00:00 -05:00
19
19
  default_executable:
20
20
  - cloudcrypt
21
21
  dependencies:
22
22
  - !ruby/object:Gem::Dependency
23
+ name: excon
23
24
  prerelease: false
24
- version_requirements: &id001 !ruby/object:Gem::Requirement
25
+ requirement: &id001 !ruby/object:Gem::Requirement
25
26
  none: false
26
27
  requirements:
27
28
  - - "="
@@ -32,12 +33,12 @@ dependencies:
32
33
  - 2
33
34
  - 8
34
35
  version: 0.2.8
35
- requirement: *id001
36
- name: excon
37
36
  type: :runtime
37
+ version_requirements: *id001
38
38
  - !ruby/object:Gem::Dependency
39
+ name: fog
39
40
  prerelease: false
40
- version_requirements: &id002 !ruby/object:Gem::Requirement
41
+ requirement: &id002 !ruby/object:Gem::Requirement
41
42
  none: false
42
43
  requirements:
43
44
  - - "="
@@ -48,12 +49,12 @@ dependencies:
48
49
  - 3
49
50
  - 30
50
51
  version: 0.3.30
51
- requirement: *id002
52
- name: fog
53
52
  type: :runtime
53
+ version_requirements: *id002
54
54
  - !ruby/object:Gem::Dependency
55
+ name: rubyzip
55
56
  prerelease: false
56
- version_requirements: &id003 !ruby/object:Gem::Requirement
57
+ requirement: &id003 !ruby/object:Gem::Requirement
57
58
  none: false
58
59
  requirements:
59
60
  - - ">="
@@ -62,12 +63,12 @@ dependencies:
62
63
  segments:
63
64
  - 0
64
65
  version: "0"
65
- requirement: *id003
66
- name: rubyzip
67
66
  type: :runtime
67
+ version_requirements: *id003
68
68
  - !ruby/object:Gem::Dependency
69
+ name: trollop
69
70
  prerelease: false
70
- version_requirements: &id004 !ruby/object:Gem::Requirement
71
+ requirement: &id004 !ruby/object:Gem::Requirement
71
72
  none: false
72
73
  requirements:
73
74
  - - ">="
@@ -76,9 +77,8 @@ dependencies:
76
77
  segments:
77
78
  - 0
78
79
  version: "0"
79
- requirement: *id004
80
- name: trollop
81
80
  type: :runtime
81
+ version_requirements: *id004
82
82
  description: You can't encrypt a file bigger than the private key. You first have to generate a random key and a random vector initialization to encrypt the file using a symmetrical algorithom. Later you use the private key to encrypt the random key and the random vector
83
83
  email:
84
84
  - restebanez@mdsol.com