sluice 0.0.5 → 0.0.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGELOG CHANGED
@@ -1,3 +1,7 @@
1
+ Version 0.0.6 (2012-12-31)
2
+ --------------------------
3
+ Fixed is_empty? (was actually is_not_empty?)
4
+
1
5
  Version 0.0.5 (2012-12-30)
2
6
  --------------------------
3
7
  Added option to flatten recursive paths
data/README.md CHANGED
@@ -13,7 +13,7 @@ Sluice has been extracted from a pair of Ruby ETL applications built by the [Sno
13
13
 
14
14
  Or in your Gemfile:
15
15
 
16
- gem 'sluice', '~> 0.0.3'
16
+ gem 'sluice', '~> 0.0.6'
17
17
 
18
18
  ## Usage
19
19
 
@@ -24,7 +24,7 @@ Rubydoc and usage examples to come.
24
24
  To hack on Sluice locally:
25
25
 
26
26
  $ gem build sluice.gemspec
27
- $ sudo gem install sluice-0.0.1.gem
27
+ $ sudo gem install sluice-0.0.6.gem
28
28
 
29
29
  To contribute:
30
30
 
@@ -82,7 +82,7 @@ module Sluice
82
82
  # +s3+:: A Fog::Storage s3 connection
83
83
  # +location+:: The location to check
84
84
  def is_empty?(s3, location)
85
- s3.directories.get(location.bucket, :prefix => location.dir).files().length > 1
85
+ s3.directories.get(location.bucket, :prefix => location.dir).files().length <= 1
86
86
  end
87
87
  module_function :is_empty?
88
88
 
data/lib/sluice.rb CHANGED
@@ -19,5 +19,5 @@ require 'sluice/storage/s3'
19
19
 
20
20
  module Sluice
21
21
  NAME = "sluice"
22
- VERSION = "0.0.5"
22
+ VERSION = "0.0.6"
23
23
  end
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: sluice
3
3
  version: !ruby/object:Gem::Version
4
- hash: 21
4
+ hash: 19
5
5
  prerelease:
6
6
  segments:
7
7
  - 0
8
8
  - 0
9
- - 5
10
- version: 0.0.5
9
+ - 6
10
+ version: 0.0.6
11
11
  platform: ruby
12
12
  authors:
13
13
  - Alex Dean
@@ -16,7 +16,7 @@ autorequire:
16
16
  bindir: bin
17
17
  cert_chain: []
18
18
 
19
- date: 2012-12-30 00:00:00 Z
19
+ date: 2012-12-31 00:00:00 Z
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
22
22
  name: fog