middleman-core-x86-mingw32 3.0.8.pre.1 → 3.0.8.pre.2

Sign up to get free protection for your applications and to get access to all the features.
@@ -1,4 +1,5 @@
1
1
  require "middleman-core"
2
+ require "fileutils"
2
3
 
3
4
  # CLI Module
4
5
  module Middleman::Cli
@@ -118,7 +119,17 @@ module Middleman::Cli
118
119
  output_file = File.join(build_dir, resource.destination_path)
119
120
 
120
121
  if resource.binary?
121
- copy_file(resource.source_file, output_file)
122
+ if !File.exists?(output_file)
123
+ say_status :create, output_file, :green
124
+ elsif FileUtils.compare_file(resource.source_file, output_file)
125
+ say_status :identical, output_file, :blue
126
+ return output_file
127
+ else
128
+ say_status :update, output_file, :yellow
129
+ end
130
+
131
+ FileUtils.mkdir_p(File.dirname(output_file))
132
+ FileUtils.cp(resource.source_file, output_file)
122
133
  else
123
134
  begin
124
135
  response = self.class.shared_rack.get(URI.escape(resource.destination_path))
@@ -1,5 +1,5 @@
1
1
  module Middleman
2
2
  # Current Version
3
3
  # @return [String]
4
- VERSION = '3.0.8.pre.1' unless const_defined?(:VERSION)
4
+ VERSION = '3.0.8.pre.2' unless const_defined?(:VERSION)
5
5
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: middleman-core-x86-mingw32
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.0.8.pre.1
4
+ version: 3.0.8.pre.2
5
5
  prerelease: 6
6
6
  platform: ruby
7
7
  authors:
@@ -10,7 +10,7 @@ authors:
10
10
  autorequire:
11
11
  bindir: bin
12
12
  cert_chain: []
13
- date: 2013-01-02 00:00:00.000000000 Z
13
+ date: 2013-01-03 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: bundler
@@ -583,7 +583,7 @@ required_ruby_version: !ruby/object:Gem::Requirement
583
583
  version: '0'
584
584
  segments:
585
585
  - 0
586
- hash: 2509201533055117271
586
+ hash: 3108461145000409892
587
587
  required_rubygems_version: !ruby/object:Gem::Requirement
588
588
  none: false
589
589
  requirements: