omnistore 0.0.24 → 0.1.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/.travis.yml +3 -1
- data/README.md +5 -5
- data/lib/omnistore/storage/s3.rb +1 -0
- data/lib/omnistore/version.rb +1 -1
- data/omnistore.gemspec +3 -2
- data/spec/omnistore/storage/s3_spec.rb +8 -0
- metadata +36 -38
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: d438ad5cb60c66141d2701a02f30f3529394df85
|
4
|
+
data.tar.gz: 554dea4f0571205c892019cd4ce3a2801f9160d3
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: 41e89b0feb2dfd87f745f507936d496c920da5058748826addec8dae7596c8310ad4ba5f4b973120aac9416909ae2a1c70bb259b7e7e6b25e37d0954e6fb675c
|
7
|
+
data.tar.gz: 0f560af21513c15911f22623ed36486f27210e0c2826297ee94e9d42313d8f89bc7a890474b33d87916d3d8245e23e9176c4eabe946d7efa74ae7e9e270868ef
|
data/.travis.yml
CHANGED
@@ -4,11 +4,13 @@ before_install:
|
|
4
4
|
rvm:
|
5
5
|
- 1.9.3
|
6
6
|
- 2.0.0
|
7
|
+
- 2.1.0
|
8
|
+
- 2.2.0
|
7
9
|
|
8
10
|
notifications:
|
9
11
|
webhooks:
|
10
12
|
urls:
|
11
|
-
- https://
|
13
|
+
- https://hooker-arukoh.herokuapp.com/travis
|
12
14
|
on_success: always
|
13
15
|
on_failure: always
|
14
16
|
on_start: false
|
data/README.md
CHANGED
@@ -1,6 +1,10 @@
|
|
1
1
|
# OmniStore
|
2
2
|
|
3
|
-
|
3
|
+
Omnistore is the storage library. support s3 and local now.
|
4
|
+
|
5
|
+
[![Gem Version](https://badge.fury.io/rb/omnistore.svg)](http://badge.fury.io/rb/omnistore)
|
6
|
+
[![Build Status](https://travis-ci.org/arukoh/omnistore.png?branch=master)](https://travis-ci.org/arukoh/omnistore)
|
7
|
+
[![Dependency Status](https://gemnasium.com/arukoh/omnistore.svg)](https://gemnasium.com/arukoh/omnistore)
|
4
8
|
|
5
9
|
## Installation
|
6
10
|
|
@@ -20,10 +24,6 @@ Or install it yourself as:
|
|
20
24
|
|
21
25
|
TODO: Write usage instructions here
|
22
26
|
|
23
|
-
## Code Status
|
24
|
-
|
25
|
-
* [![Build Status](https://travis-ci.org/arukoh/omnistore.png?branch=master)](https://travis-ci.org/arukoh/omnistore)
|
26
|
-
|
27
27
|
## Contributing
|
28
28
|
|
29
29
|
1. Fork it
|
data/lib/omnistore/storage/s3.rb
CHANGED
data/lib/omnistore/version.rb
CHANGED
data/omnistore.gemspec
CHANGED
@@ -16,9 +16,10 @@ Gem::Specification.new do |gem|
|
|
16
16
|
gem.version = OmniStore::VERSION
|
17
17
|
gem.license = 'MIT'
|
18
18
|
|
19
|
-
gem.add_dependency "aws-sdk", "
|
19
|
+
gem.add_dependency "aws-sdk", "~> 1.6"
|
20
|
+
gem.add_dependency "aws-sdk-resources", "~> 2"
|
20
21
|
gem.add_dependency "activesupport"
|
21
22
|
|
22
23
|
gem.add_development_dependency "rake", ">= 0.8.7"
|
23
|
-
gem.add_development_dependency "rspec", "
|
24
|
+
gem.add_development_dependency "rspec", "~> 2.4"
|
24
25
|
end
|
@@ -2,6 +2,14 @@ require 'spec_helper'
|
|
2
2
|
|
3
3
|
describe "OmniStore::Storage::S3" do
|
4
4
|
|
5
|
+
it "should not be occurred using AWS::S3" do
|
6
|
+
expect { AWS::S3 }.not_to raise_error(NameError)
|
7
|
+
end
|
8
|
+
|
9
|
+
it "should not be occurred using Aws::S3" do
|
10
|
+
expect { Aws::S3 }.not_to raise_error(NameError)
|
11
|
+
end
|
12
|
+
|
5
13
|
before(:each) do
|
6
14
|
AWS::S3::Bucket.any_instance.stub(:exists?).and_return(true)
|
7
15
|
OmniStore::Config.storage = 's3'
|
metadata
CHANGED
@@ -1,80 +1,85 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: omnistore
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.0
|
5
|
-
prerelease:
|
4
|
+
version: 0.1.0
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- arukoh
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2015-04-02 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: aws-sdk
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - "~>"
|
20
18
|
- !ruby/object:Gem::Version
|
21
|
-
version: 1.6
|
19
|
+
version: '1.6'
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
22
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
23
|
requirements:
|
27
|
-
- -
|
24
|
+
- - "~>"
|
28
25
|
- !ruby/object:Gem::Version
|
29
|
-
version: 1.6
|
26
|
+
version: '1.6'
|
27
|
+
- !ruby/object:Gem::Dependency
|
28
|
+
name: aws-sdk-resources
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
30
|
+
requirements:
|
31
|
+
- - "~>"
|
32
|
+
- !ruby/object:Gem::Version
|
33
|
+
version: '2'
|
34
|
+
type: :runtime
|
35
|
+
prerelease: false
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - "~>"
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: '2'
|
30
41
|
- !ruby/object:Gem::Dependency
|
31
42
|
name: activesupport
|
32
43
|
requirement: !ruby/object:Gem::Requirement
|
33
|
-
none: false
|
34
44
|
requirements:
|
35
|
-
- -
|
45
|
+
- - ">="
|
36
46
|
- !ruby/object:Gem::Version
|
37
47
|
version: '0'
|
38
48
|
type: :runtime
|
39
49
|
prerelease: false
|
40
50
|
version_requirements: !ruby/object:Gem::Requirement
|
41
|
-
none: false
|
42
51
|
requirements:
|
43
|
-
- -
|
52
|
+
- - ">="
|
44
53
|
- !ruby/object:Gem::Version
|
45
54
|
version: '0'
|
46
55
|
- !ruby/object:Gem::Dependency
|
47
56
|
name: rake
|
48
57
|
requirement: !ruby/object:Gem::Requirement
|
49
|
-
none: false
|
50
58
|
requirements:
|
51
|
-
- -
|
59
|
+
- - ">="
|
52
60
|
- !ruby/object:Gem::Version
|
53
61
|
version: 0.8.7
|
54
62
|
type: :development
|
55
63
|
prerelease: false
|
56
64
|
version_requirements: !ruby/object:Gem::Requirement
|
57
|
-
none: false
|
58
65
|
requirements:
|
59
|
-
- -
|
66
|
+
- - ">="
|
60
67
|
- !ruby/object:Gem::Version
|
61
68
|
version: 0.8.7
|
62
69
|
- !ruby/object:Gem::Dependency
|
63
70
|
name: rspec
|
64
71
|
requirement: !ruby/object:Gem::Requirement
|
65
|
-
none: false
|
66
72
|
requirements:
|
67
|
-
- -
|
73
|
+
- - "~>"
|
68
74
|
- !ruby/object:Gem::Version
|
69
|
-
version: 2.4
|
75
|
+
version: '2.4'
|
70
76
|
type: :development
|
71
77
|
prerelease: false
|
72
78
|
version_requirements: !ruby/object:Gem::Requirement
|
73
|
-
none: false
|
74
79
|
requirements:
|
75
|
-
- -
|
80
|
+
- - "~>"
|
76
81
|
- !ruby/object:Gem::Version
|
77
|
-
version: 2.4
|
82
|
+
version: '2.4'
|
78
83
|
description: Providers a single point of entry for storage
|
79
84
|
email:
|
80
85
|
- arukoh10@gmail.com
|
@@ -82,9 +87,9 @@ executables: []
|
|
82
87
|
extensions: []
|
83
88
|
extra_rdoc_files: []
|
84
89
|
files:
|
85
|
-
- .gitignore
|
86
|
-
- .rspec
|
87
|
-
- .travis.yml
|
90
|
+
- ".gitignore"
|
91
|
+
- ".rspec"
|
92
|
+
- ".travis.yml"
|
88
93
|
- Gemfile
|
89
94
|
- LICENSE
|
90
95
|
- README.md
|
@@ -113,33 +118,26 @@ files:
|
|
113
118
|
homepage: https://github.com/arukoh/omnistore
|
114
119
|
licenses:
|
115
120
|
- MIT
|
121
|
+
metadata: {}
|
116
122
|
post_install_message:
|
117
123
|
rdoc_options: []
|
118
124
|
require_paths:
|
119
125
|
- lib
|
120
126
|
required_ruby_version: !ruby/object:Gem::Requirement
|
121
|
-
none: false
|
122
127
|
requirements:
|
123
|
-
- -
|
128
|
+
- - ">="
|
124
129
|
- !ruby/object:Gem::Version
|
125
130
|
version: '0'
|
126
|
-
segments:
|
127
|
-
- 0
|
128
|
-
hash: 513048659
|
129
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
130
|
-
none: false
|
131
132
|
requirements:
|
132
|
-
- -
|
133
|
+
- - ">="
|
133
134
|
- !ruby/object:Gem::Version
|
134
135
|
version: '0'
|
135
|
-
segments:
|
136
|
-
- 0
|
137
|
-
hash: 513048659
|
138
136
|
requirements: []
|
139
137
|
rubyforge_project:
|
140
|
-
rubygems_version:
|
138
|
+
rubygems_version: 2.4.3
|
141
139
|
signing_key:
|
142
|
-
specification_version:
|
140
|
+
specification_version: 4
|
143
141
|
summary: Providers a single point of entry for storage
|
144
142
|
test_files:
|
145
143
|
- spec/omnistore/config_spec.rb
|