sluice 0.1.4 → 0.1.5

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.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ Version 0.1.5 (2013-10-13)
2
+ --------------------------
3
+ Fixed is_empty? returns true if folder contains 1 file (#9)
4
+
1
5
  Version 0.1.4 (2013-10-02)
2
6
  --------------------------
3
7
  Timeout now bumped to 30 mins - much less likely to cause issues with large files
@@ -19,5 +19,5 @@ require 'sluice/storage/s3'
19
19
 
20
20
  module Sluice
21
21
  NAME = "sluice"
22
- VERSION = "0.1.4"
22
+ VERSION = "0.1.5"
23
23
  end
@@ -264,7 +264,7 @@ module Sluice
264
264
  # +s3+:: A Fog::Storage s3 connection
265
265
  # +location+:: The location to check
266
266
  def is_empty?(s3, location)
267
- list_files(s3, location).length <= 1
267
+ list_files(s3, location).length == 0
268
268
  end
269
269
  module_function :is_empty?
270
270
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sluice
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.4
4
+ version: 0.1.5
5
5
  prerelease:
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-10-02 00:00:00.000000000 Z
13
+ date: 2013-10-13 00:00:00.000000000 Z
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
16
  name: fog
@@ -83,7 +83,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
83
83
  version: '0'
84
84
  requirements: []
85
85
  rubyforge_project:
86
- rubygems_version: 1.8.24
86
+ rubygems_version: 1.8.25
87
87
  signing_key:
88
88
  specification_version: 3
89
89
  summary: Ruby toolkit for cloud-friendly ETL