bundler_cacher 0.0.3 → 0.0.4

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,3 +1,3 @@
1
1
  module BundlerCacher
2
- VERSION = "0.0.3" unless defined?(::BundlerCacher::VERSION)
2
+ VERSION = "0.0.4" unless defined?(::BundlerCacher::VERSION)
3
3
  end
@@ -45,7 +45,9 @@ class Bundler::Installer
45
45
 
46
46
  def push_gempack
47
47
  archive = compress_gempack
48
- send_to_s3(archive)
48
+ archive_size = File.size?(archive)
49
+ tmp_archive_size = File.size?(tmp_archive)
50
+ send_to_s3(archive) if (File.size?(archive) != File.size(tmp_archive)) || tmp_archive_size.nil?
49
51
  end
50
52
 
51
53
  def compress_gempack
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bundler_cacher
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors: