s3mpi 0.0.5.1 → 0.0.6.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/README.md +5 -8
- data/lib/s3mpi/s3.rb +1 -1
- data/lib/s3mpi/version.rb +1 -1
- data/s3mpi.gemspec +1 -1
- metadata +8 -8
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 9e774c44f240b72b6a26583dfed16340bc294a98
|
4
|
+
data.tar.gz: 9c1622f368447280bbb17aa95a9c74b2fd390b58
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 7a28d5ef0d60b2d30009a9d2c72c3457fa06ae6b0f742a9ddf71d45d26d0698205fa522bfc9786a3d09a8590f42ab55d8f9892153bfe4915469fef413e322770
|
7
|
+
data.tar.gz: 8ed227d7a1518f843778185652e9cc36e3dadb106f2de82869983dd8fbaf2d136cb860270a94eabed6c0b9221a829cd55a00d256129c271066d6f3b7df9c5aff
|
data/README.md
CHANGED
@@ -1,29 +1,26 @@
|
|
1
|
-
S3
|
2
|
-
|
1
|
+
S3 uploads of Ruby objects [![Build Status](https://travis-ci.org/robertzk/s3mpi.svg?branch=master)](https://travis-ci.org/robertzk/s3mpi) [![Code Climate](https://codeclimate.com/github/robertzk/s3mpi.png)](https://codeclimate.com/github/robertzk/s3mpi)
|
2
|
+
===========
|
3
3
|
|
4
4
|
Upload and download Ruby objects to S3 using a very convenient API.
|
5
5
|
This is incredibly handy for passing objects around between consoles when, e.g.,
|
6
6
|
collaborating or debugging.
|
7
7
|
|
8
|
-
|
9
8
|
Usage
|
10
9
|
-----
|
11
10
|
|
12
11
|
To set up an S3 interface, one can run
|
13
12
|
|
14
13
|
```ruby
|
15
|
-
MPI = S3MPI::Interface.new(
|
16
|
-
#
|
14
|
+
MPI = S3MPI::Interface.new("bucket", "path/in/bucket")
|
15
|
+
# Or a constant name of your choosing...
|
17
16
|
```
|
18
17
|
|
19
18
|
Then, assuming our [credentials are set up correctly](https://aws.amazon.com/articles/8621639827664165),
|
20
19
|
we can store and read Ruby objects:
|
21
20
|
|
22
21
|
```ruby
|
23
|
-
MPI.store({some:
|
22
|
+
MPI.store({ some: "ruby", object: 5 }, "some_object")
|
24
23
|
MPI.read('some_object')
|
25
24
|
```
|
26
25
|
|
27
|
-
[![Build Status](https://travis-ci.org/robertzk/s3mpi.svg?branch=master)](https://travis-ci.org/robertzk/s3mpi)
|
28
|
-
[![Code Climate](https://codeclimate.com/github/robertzk/s3mpi.png)](https://codeclimate.com/github/robertzk/s3mpi)
|
29
26
|
|
data/lib/s3mpi/s3.rb
CHANGED
data/lib/s3mpi/version.rb
CHANGED
data/s3mpi.gemspec
CHANGED
@@ -22,7 +22,7 @@ Gem::Specification.new do |s|
|
|
22
22
|
s.files = `git ls-files`.split("\n")
|
23
23
|
s.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
|
24
24
|
|
25
|
-
s.add_dependency 'aws-sdk'
|
25
|
+
s.add_dependency 'aws-sdk-v1'
|
26
26
|
|
27
27
|
s.add_development_dependency 'rake', '~> 10.1.0'
|
28
28
|
s.add_development_dependency 'rspec', '~> 2.14.1'
|
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: s3mpi
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0.
|
4
|
+
version: 0.0.6.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Robert Krzyzanowski
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date:
|
11
|
+
date: 2016-05-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
|
-
name: aws-sdk
|
14
|
+
name: aws-sdk-v1
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - ">="
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version:
|
19
|
+
version: '0'
|
20
20
|
type: :runtime
|
21
21
|
prerelease: false
|
22
22
|
version_requirements: !ruby/object:Gem::Requirement
|
23
23
|
requirements:
|
24
|
-
- - "
|
24
|
+
- - ">="
|
25
25
|
- !ruby/object:Gem::Version
|
26
|
-
version:
|
26
|
+
version: '0'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: rake
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -97,7 +97,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
97
97
|
version: '0'
|
98
98
|
requirements: []
|
99
99
|
rubyforge_project:
|
100
|
-
rubygems_version: 2.1
|
100
|
+
rubygems_version: 2.5.1
|
101
101
|
signing_key:
|
102
102
|
specification_version: 4
|
103
103
|
summary: Upload and download files to S3 using a very convenient API.
|