spar 1.0.6 → 1.0.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,5 +1,4 @@
1
1
  require 'aws-sdk'
2
- require 'logger'
3
2
 
4
3
  class S3Deployer < Spar::Deployer
5
4
 
@@ -14,10 +13,7 @@ class S3Deployer < Spar::Deployer
14
13
  AWS.config(
15
14
  :access_key_id => @aws_key,
16
15
  :secret_access_key => @aws_secret,
17
- :logger => Logger.new($stderr),
18
- :log_formatter => AWS::Core::LogFormatter.colored
19
16
  )
20
- AWS.config.logger.level = Logger::WARN
21
17
  @s3 = AWS::S3.new
22
18
  @bucket = @s3.buckets[@deploy_bucket]
23
19
  unless @bucket.exists?
@@ -36,7 +32,6 @@ class S3Deployer < Spar::Deployer
36
32
  def age_out(old_assets)
37
33
  old_assets.flatten.each do |file|
38
34
  if Time.now - @bucket.objects[file].last_modified > @age_out
39
- logger "Deleting #{file}"
40
35
  @bucket.objects[file].delete
41
36
  end
42
37
  end
@@ -61,7 +56,6 @@ class S3Deployer < Spar::Deployer
61
56
  else
62
57
  @bucket.objects[asset.write_path].write(asset.headers.merge(:data => asset.data))
63
58
  end
64
- logger "Uploaded #{file} to S3"
65
59
  end
66
60
 
67
61
  def finish
@@ -73,4 +67,4 @@ class S3Deployer < Spar::Deployer
73
67
  super
74
68
  end
75
69
 
76
- end
70
+ end
@@ -1,3 +1,3 @@
1
1
  module Spar
2
- VERSION = "1.0.6"
2
+ VERSION = "1.0.7"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: spar
3
3
  version: !ruby/object:Gem::Version
4
- version: 1.0.6
4
+ version: 1.0.7
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -482,3 +482,4 @@ specification_version: 3
482
482
  summary: A simple framework for developing single page web apps with support for haml,
483
483
  sass, coffeescript, and pretty much anything else.
484
484
  test_files: []
485
+ has_rdoc: