middleman-s3_sync 3.0.39 → 3.0.40

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: 19565c551c839ccf72e2dc38f9306968abb2ff64
4
- data.tar.gz: 31734b96d66ac9573d9a5f4360d7af281d4be2ca
3
+ metadata.gz: 1ae9136af45a2a5e4577c8b7b1aa02afaec10fd2
4
+ data.tar.gz: d91c166ad61e0424d8d67f7792b59820ef9fe1ee
5
5
  SHA512:
6
- metadata.gz: f51684b180431b92e02ed09d164f5f08879e6d4c98aa47cd18fd4e40fd5c00d4db7caa8c0739bd6a0914587286ad43b514b4006ec7c340594968f6c2e64523ae
7
- data.tar.gz: 9fe2ca246a6f5954a46c79b014b596b147e6e76dc96f61030f31a296dca94ca27b28d524665f0246e37bf4737190a73917270f5db23af1cbc4ff9f1221144baa
6
+ metadata.gz: ab9aabc8cb51cdaba52b1d130dbb5aa5a06268501733f2d707e678231f3e78b854fe801ea0260d60808f48dde180021abbd4d60ef37ea2ac7d37c9c46f061c49
7
+ data.tar.gz: d41d82bfaa802a3645a746074ba68f6c29e14a64c8f554a7cbd7d8f073356ddcbd8eaabc214e6d37bb0d52da03f337ea951b460e4a30c55d13df04abe4ed1b6f
@@ -57,14 +57,7 @@ module Middleman
57
57
 
58
58
  def update!
59
59
  local_content { |body|
60
- say_status "Updating".blue + " #{remote_path}#{ gzipped ? ' (gzipped)'.white : ''}"
61
- if options.verbose
62
- say_status "Original: #{original_path.white}"
63
- say_status "Local Path: #{local_path.white}"
64
- say_status "remote md5: #{remote_object_md5.white} / #{remote_content_md5}"
65
- say_status "content md5: #{local_object_md5.white} / #{local_content_md5}"
66
- end
67
-
60
+ say_status ANSI.blue{"Updating"} + " #{remote_path}#{ gzipped ? ANSI.white {' (gzipped)'} : ''}"
68
61
  s3_resource.merge_attributes(to_h)
69
62
  s3_resource.body = body
70
63
 
@@ -82,17 +75,12 @@ module Middleman
82
75
  end
83
76
 
84
77
  def destroy!
85
- say_status "Deleting".red + " #{remote_path}"
78
+ say_status ANSI.red { "Deleting" } + " " + remote_path
86
79
  bucket.files.destroy remote_path
87
80
  end
88
81
 
89
82
  def create!
90
- say_status "Creating".green + " #{remote_path}#{ gzipped ? ' (gzipped)'.white : ''}"
91
- if options.verbose
92
- say_status "Original: #{original_path.white}"
93
- say_status "Local Path: #{local_path.white}"
94
- say_status "content md5: #{local_content_md5.white}"
95
- end
83
+ say_status ANSI.green { "Creating" } + " #{remote_path}#{ gzipped ? ANSI.white {' (gzipped)'} : ''}"
96
84
  local_content { |body|
97
85
  bucket.files.create(to_h.merge(body: body))
98
86
  }
@@ -105,7 +93,7 @@ module Middleman
105
93
  :directory
106
94
  end
107
95
  if options.verbose
108
- say_status "Ignoring".yellow + " #{remote_path} #{ reason ? "(#{reason})".white : "" }"
96
+ say_status ANSI.yellow {"Ignoring"} + " #{remote_path} #{ reason ? ANSI.white {"(#{reason})" } : "" }"
109
97
  end
110
98
  end
111
99
 
@@ -1,11 +1,10 @@
1
1
  require 'ansi/code'
2
- require 'ansi/string'
3
2
 
4
3
  module Middleman
5
4
  module S3Sync
6
5
  module Status
7
6
  def say_status(status)
8
- puts :s3_sync.to_s.rjust(12).green + " #{status}"
7
+ puts ANSI.green{:s3_sync.to_s.rjust(12)} + " #{status}"
9
8
  end
10
9
  end
11
10
  end
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  module S3Sync
3
- VERSION = "3.0.39"
3
+ VERSION = "3.0.40"
4
4
  end
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-s3_sync
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.39
4
+ version: 3.0.40
5
5
  platform: ruby
6
6
  authors:
7
7
  - Frederic Jean
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2014-12-29 00:00:00.000000000 Z
12
+ date: 2015-01-01 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: middleman-core
@@ -270,7 +270,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
270
270
  version: '0'
271
271
  requirements: []
272
272
  rubyforge_project:
273
- rubygems_version: 2.2.2
273
+ rubygems_version: 2.4.5
274
274
  signing_key:
275
275
  specification_version: 4
276
276
  summary: Tries really, really hard not to push files to S3.