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 +4 -0
- data/README.md +2 -2
- data/lib/sluice/storage/s3.rb +1 -1
- data/lib/sluice.rb +1 -1
- metadata +4 -4
data/CHANGELOG
CHANGED
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.
|
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.
|
27
|
+
$ sudo gem install sluice-0.0.6.gem
|
28
28
|
|
29
29
|
To contribute:
|
30
30
|
|
data/lib/sluice/storage/s3.rb
CHANGED
@@ -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
|
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
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:
|
4
|
+
hash: 19
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 0
|
9
|
-
-
|
10
|
-
version: 0.0.
|
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-
|
19
|
+
date: 2012-12-31 00:00:00 Z
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
22
22
|
name: fog
|