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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 52dd0cc70040d2355b346798e7f7b4a68fc20790
4
- data.tar.gz: a86c0faa035fa9872c9fe19d389bdc7f96ea6213
3
+ metadata.gz: 1c5f2f377aa25b5ea78af2c99af7219a76ac0b8d
4
+ data.tar.gz: 8384b661a4d74ba176691d2f67fafefb72a97fb7
5
5
  SHA512:
6
- metadata.gz: 26f4e373c3d11637ebb3276a64987f8df8f0b3aa507f90d8ffffbef910fe0e2da58f07d8caaff4bc50c0a4fdec29c1890f12059447d71a2bffdf88810c5d798c
7
- data.tar.gz: dcde328b2667fac7c16b5c186a683ee3d79ff9df476b082a83257897f672b45e0b8c2d5b3f5df673694960da4a2233ba2874cc2f2e3ce7b1c3e668964d6a5948
6
+ metadata.gz: 1d489373d585cfaec82992e6b4ccee7986f47722bed078a096d9731b32ac7cc11bef9f1fe0c27bda36bfcf84aa9ab8f2892ebbd7414618a7703b2b9b990ef336
7
+ data.tar.gz: 0935c56a1f968dcb00f919378620cfaa79b12fa3edd602c5bf50a9a64e2c1f4c3282693f67c8c99fc0399992659daf8df8e7a27b718da0871383df009f6315cd
@@ -1,6 +1,6 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'cloud-crowd'
3
- s.version = '0.7.2.pre2' # Keep version in sync with cloud-cloud.rb
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
- gem 'right_aws'
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
- protocol = @use_auth ? 'https' : 'http'
18
- port = @use_auth ? 443 : 80
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
@@ -65,6 +65,7 @@ module CloudCrowd
65
65
 
66
66
  # When creating a node, specify the port it should run on.
67
67
  def initialize(options={})
68
+ super()
68
69
  require 'json'
69
70
  CloudCrowd.identity = :node
70
71
  @central = CloudCrowd.central_server
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: cloud-crowd
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.7.2.pre2
4
+ version: 0.7.2.pre3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Jeremy Ashkenas