cloud-crowd 0.7.2.pre2 → 0.7.2.pre3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/cloud-crowd.gemspec +1 -1
- data/lib/cloud_crowd/asset_store/s3_store.rb +3 -6
- data/lib/cloud_crowd/node.rb +1 -0
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 1c5f2f377aa25b5ea78af2c99af7219a76ac0b8d
|
4
|
+
data.tar.gz: 8384b661a4d74ba176691d2f67fafefb72a97fb7
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 1d489373d585cfaec82992e6b4ccee7986f47722bed078a096d9731b32ac7cc11bef9f1fe0c27bda36bfcf84aa9ab8f2892ebbd7414618a7703b2b9b990ef336
|
7
|
+
data.tar.gz: 0935c56a1f968dcb00f919378620cfaa79b12fa3edd602c5bf50a9a64e2c1f4c3282693f67c8c99fc0399992659daf8df8e7a27b718da0871383df009f6315cd
|
data/cloud-crowd.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = 'cloud-crowd'
|
3
|
-
s.version = '0.7.2.
|
3
|
+
s.version = '0.7.2.pre3' # Keep version in sync with cloud-cloud.rb
|
4
4
|
s.date = '2014-04-06'
|
5
5
|
|
6
6
|
s.homepage = "http://wiki.github.com/documentcloud/cloud-crowd"
|
@@ -1,4 +1,4 @@
|
|
1
|
-
|
1
|
+
require 'aws'
|
2
2
|
|
3
3
|
module CloudCrowd
|
4
4
|
class AssetStore
|
@@ -14,11 +14,8 @@ module CloudCrowd
|
|
14
14
|
key, secret = CloudCrowd.config[:aws_access_key], CloudCrowd.config[:aws_secret_key]
|
15
15
|
valid_conf = [bucket_name, key, secret].all? {|s| s.is_a? String }
|
16
16
|
raise Error::MissingConfiguration, "An S3 account must be configured in 'config.yml' before 's3' storage can be used" unless valid_conf
|
17
|
-
|
18
|
-
|
19
|
-
@s3 = RightAws::S3.new(key, secret, :protocol => protocol, :port => port)
|
20
|
-
@bucket = @s3.bucket(bucket_name)
|
21
|
-
@bucket = @s3.bucket(bucket_name, true) unless @bucket
|
17
|
+
@s3 = ::AWS::S3.new(:access_key_id => key, :secret_access_key => secret, :secure => !!@use_auth)
|
18
|
+
@bucket = (@s3.buckets[bucket_name].exists? ? @s3.buckets[bucket_name] : @s3.buckets.create(bucket_name))
|
22
19
|
end
|
23
20
|
|
24
21
|
# Save a finished file from local storage to S3. Save it publicly unless
|
data/lib/cloud_crowd/node.rb
CHANGED