woro-s3 0.0.1 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +19 -6
- data/lib/woro-s3/version.rb +1 -1
- data/lib/woro/adapters/s3.rb +2 -2
- data/woro-s3.gemspec +2 -2
- metadata +5 -6
- data/Gemfile.lock +0 -53
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 408f74fc9aa899178bf7ec795ada1b734af27018
|
4
|
+
data.tar.gz: 15833695ce4371b7c3c8eab4b5e420de6e7119e0
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 2d0e5fc8dd09569aafea3e76de8c31ba3c1b7c9dd1c918d22d9f896911245120f2c206a06db4492cf2166ddaf79a07edcbed32b39009f0b9f78dc286dea27a29
|
7
|
+
data.tar.gz: b52dbfb95c9eb335f546aa9e06e648a8a36d7f1789590afe08156fa5e68c2d591c40ea7dc7b8c3d89bcf4b78c4c768db4c55c9a407da2f6c856806e11e94ce56
|
data/README.md
CHANGED
@@ -1,16 +1,29 @@
|
|
1
1
|
# woro-s3
|
2
2
|
|
3
|
-
Gist-Adapter for Woro remote task management
|
4
|
-
|
3
|
+
Gist-Adapter for [Woro remote task management](https://github.com/github/woro)
|
5
4
|
Using Amazons's S3 to share them with colleagues.
|
6
5
|
|
7
|
-
## Woro adapters
|
8
|
-
|
9
6
|
## Usage
|
10
7
|
|
8
|
+
On initialization of a new project, you can choose and setup S3-configuration with:
|
9
|
+
|
10
|
+
```shell
|
11
|
+
$ woro init
|
12
|
+
```
|
13
|
+
|
14
|
+
If you already have a configuration, you can add these lines to you `lib/config/woro.yml`
|
15
|
+
|
16
|
+
```yaml
|
17
|
+
adapters:
|
18
|
+
s3:
|
19
|
+
region: eu-west-1
|
20
|
+
bucket_name: <bucket name>
|
21
|
+
path: <path within bucket>
|
22
|
+
access_key_id: <access key id>
|
23
|
+
secret_access_key: <secret access key>
|
24
|
+
```
|
11
25
|
|
12
|
-
|
13
|
-
First you have to push them online, in this case to Gist.
|
26
|
+
Use `s3` as adapter to upload your task to.
|
14
27
|
|
15
28
|
```shell
|
16
29
|
$ woro push s3:cleanup_users
|
data/lib/woro-s3/version.rb
CHANGED
data/lib/woro/adapters/s3.rb
CHANGED
@@ -16,7 +16,7 @@ module Woro
|
|
16
16
|
'secret_access_key' => ask('Secret access key: '),
|
17
17
|
'region' => ask('Region: ') { |q| q.default = 'eu-west-1' },
|
18
18
|
'bucket_name' => ask('Bucket name: '),
|
19
|
-
'path' => ask('Path within Bucket: ')
|
19
|
+
'path' => ask('Path within Bucket: '),
|
20
20
|
}
|
21
21
|
end
|
22
22
|
|
@@ -91,7 +91,7 @@ module Woro
|
|
91
91
|
|
92
92
|
def get_object(key)
|
93
93
|
s3_client.get_object(bucket_name: bucket_name,
|
94
|
-
key: key)[:data]
|
94
|
+
key: "#{path}#{key}")[:data]
|
95
95
|
end
|
96
96
|
|
97
97
|
def list_objects(prefix = nil)
|
data/woro-s3.gemspec
CHANGED
@@ -8,8 +8,8 @@ Gem::Specification.new do |spec|
|
|
8
8
|
spec.version = Woro::S3::VERSION
|
9
9
|
spec.authors = ["Daniel Senff"]
|
10
10
|
spec.email = ["mail@danielsenff.de"]
|
11
|
-
spec.summary = %q{Adapter to
|
12
|
-
spec.description = %q{Adapter to
|
11
|
+
spec.summary = %q{Adapter to Amazon S3 for use in Woro remote task management}
|
12
|
+
spec.description = %q{Adapter to Amazon S3 for use in Woro remote task management}
|
13
13
|
spec.homepage = "http://github.com/Dahie/woro-s3"
|
14
14
|
spec.license = "MIT"
|
15
15
|
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: woro-s3
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
4
|
+
version: 0.1.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Daniel Senff
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-07-
|
11
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: aws-sdk-v1
|
@@ -66,7 +66,7 @@ dependencies:
|
|
66
66
|
- - "~>"
|
67
67
|
- !ruby/object:Gem::Version
|
68
68
|
version: '10.0'
|
69
|
-
description: Adapter to
|
69
|
+
description: Adapter to Amazon S3 for use in Woro remote task management
|
70
70
|
email:
|
71
71
|
- mail@danielsenff.de
|
72
72
|
executables: []
|
@@ -75,7 +75,6 @@ extra_rdoc_files: []
|
|
75
75
|
files:
|
76
76
|
- ".gitignore"
|
77
77
|
- Gemfile
|
78
|
-
- Gemfile.lock
|
79
78
|
- LICENSE
|
80
79
|
- README.md
|
81
80
|
- Rakefile
|
@@ -105,10 +104,10 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
105
104
|
version: '0'
|
106
105
|
requirements: []
|
107
106
|
rubyforge_project:
|
108
|
-
rubygems_version: 2.4.
|
107
|
+
rubygems_version: 2.4.3
|
109
108
|
signing_key:
|
110
109
|
specification_version: 4
|
111
|
-
summary: Adapter to
|
110
|
+
summary: Adapter to Amazon S3 for use in Woro remote task management
|
112
111
|
test_files:
|
113
112
|
- spec/lib/woro/adapters/s3_spec.rb
|
114
113
|
- spec/spec_helper.rb
|
data/Gemfile.lock
DELETED
@@ -1,53 +0,0 @@
|
|
1
|
-
PATH
|
2
|
-
remote: .
|
3
|
-
specs:
|
4
|
-
woro-s3 (0.0.1)
|
5
|
-
aws-sdk-v1
|
6
|
-
woro
|
7
|
-
|
8
|
-
GEM
|
9
|
-
remote: https://rubygems.org/
|
10
|
-
specs:
|
11
|
-
aws-sdk-v1 (1.64.0)
|
12
|
-
json (~> 1.4)
|
13
|
-
nokogiri (>= 1.4.4)
|
14
|
-
commander (4.3.3)
|
15
|
-
highline (~> 1.7.2)
|
16
|
-
diff-lcs (1.2.5)
|
17
|
-
fakefs (0.6.7)
|
18
|
-
highline (1.7.2)
|
19
|
-
json (1.8.3)
|
20
|
-
mini_portile (0.6.2)
|
21
|
-
nokogiri (1.6.6.2)
|
22
|
-
mini_portile (~> 0.6.0)
|
23
|
-
rake (10.4.2)
|
24
|
-
rspec (3.3.0)
|
25
|
-
rspec-core (~> 3.3.0)
|
26
|
-
rspec-expectations (~> 3.3.0)
|
27
|
-
rspec-mocks (~> 3.3.0)
|
28
|
-
rspec-core (3.3.1)
|
29
|
-
rspec-support (~> 3.3.0)
|
30
|
-
rspec-expectations (3.3.0)
|
31
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
32
|
-
rspec-support (~> 3.3.0)
|
33
|
-
rspec-mocks (3.3.1)
|
34
|
-
diff-lcs (>= 1.2.0, < 2.0)
|
35
|
-
rspec-support (~> 3.3.0)
|
36
|
-
rspec-nc (0.2.0)
|
37
|
-
rspec (>= 2.9)
|
38
|
-
terminal-notifier (>= 1.4)
|
39
|
-
rspec-support (3.3.0)
|
40
|
-
terminal-notifier (1.6.3)
|
41
|
-
woro (0.2.2)
|
42
|
-
commander
|
43
|
-
|
44
|
-
PLATFORMS
|
45
|
-
ruby
|
46
|
-
|
47
|
-
DEPENDENCIES
|
48
|
-
bundler (~> 1.7)
|
49
|
-
fakefs
|
50
|
-
rake (~> 10.0)
|
51
|
-
rspec
|
52
|
-
rspec-nc
|
53
|
-
woro-s3!
|