omnistore 0.1.0 → 0.2.0

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: d438ad5cb60c66141d2701a02f30f3529394df85
4
- data.tar.gz: 554dea4f0571205c892019cd4ce3a2801f9160d3
3
+ metadata.gz: aea8b96ec4344c3f2c64adbffb2126bdef5b88ef
4
+ data.tar.gz: ee323d6572ca9739dc80204de22ddbc74d00b791
5
5
  SHA512:
6
- metadata.gz: 41e89b0feb2dfd87f745f507936d496c920da5058748826addec8dae7596c8310ad4ba5f4b973120aac9416909ae2a1c70bb259b7e7e6b25e37d0954e6fb675c
7
- data.tar.gz: 0f560af21513c15911f22623ed36486f27210e0c2826297ee94e9d42313d8f89bc7a890474b33d87916d3d8245e23e9176c4eabe946d7efa74ae7e9e270868ef
6
+ metadata.gz: 7490d18104e35862bab6645c885552b5ec88b5d87f54d8b9f3461c75483aa14183836ce5353ae2f430704572942f804a38f1e2dd060be67a5f5664f156c90d10
7
+ data.tar.gz: 77631620f27aee02fb9e8e6c47e33827dca43adc72ee7cdcdb98ade715b930ecedf912abe7f5d82ea942bc14cd22b3bf125ba5b931a3cb65a68a6dd487558863
data/.travis.yml CHANGED
@@ -1,5 +1,5 @@
1
1
  before_install:
2
- - gem install bundler
2
+ - gem install bundler -N -v 1.16.0
3
3
 
4
4
  rvm:
5
5
  - 1.9.3
data/Dockerfile ADDED
@@ -0,0 +1,9 @@
1
+ FROM amazonlinux
2
+ RUN yum install -y ruby ruby-devel git make gcc-c++ libxml2 libxslt libxml2-devel libxslt-devel
3
+
4
+ RUN gem install bundler -N -v 1.16.0
5
+ RUN bundle config build.nokogiri --use-system-libraries
6
+
7
+ WORKDIR /usr/src/omnistore
8
+ ADD . .
9
+ # RUN bundle i
@@ -70,7 +70,7 @@ module OmniStore
70
70
  end
71
71
 
72
72
  def options
73
- opts = {}
73
+ opts = { s3_signature_version: :v4 }
74
74
  opts[:access_key_id] = OmniStore::Config.access_key if OmniStore::Config.access_key
75
75
  opts[:secret_access_key] = OmniStore::Config.secret_key if OmniStore::Config.secret_key
76
76
  opts[:s3_endpoint] = OmniStore::Config.endpoint if OmniStore::Config.endpoint
@@ -1,3 +1,3 @@
1
1
  module OmniStore
2
- VERSION = "0.1.0"
2
+ VERSION = "0.2.0"
3
3
  end
data/omnistore.gemspec CHANGED
@@ -18,8 +18,8 @@ Gem::Specification.new do |gem|
18
18
 
19
19
  gem.add_dependency "aws-sdk", "~> 1.6"
20
20
  gem.add_dependency "aws-sdk-resources", "~> 2"
21
- gem.add_dependency "activesupport"
21
+ gem.add_dependency "activesupport", "~> 4"
22
22
 
23
- gem.add_development_dependency "rake", ">= 0.8.7"
23
+ gem.add_development_dependency "rake", "< 11.0"
24
24
  gem.add_development_dependency "rspec", "~> 2.4"
25
25
  end
@@ -38,6 +38,7 @@ describe "OmniStore::Storage::S3" do
38
38
  describe '#mountpoint' do
39
39
  subject { OmniStore::Storage::S3.mountpoint }
40
40
  it { should be_a OmniStore::Storage::S3::Mountpoint }
41
+ it { expect(subject.bucket.client.config.to_h).to include(s3_signature_version: :v4) }
41
42
  end
42
43
 
43
44
  describe '#exist?' do
@@ -46,12 +47,12 @@ describe "OmniStore::Storage::S3" do
46
47
 
47
48
  context 'when specified a object that does not exist' do
48
49
  before { AWS::S3::S3Object.any_instance.stub(:exists?).and_return(false) }
49
- it { should be_false }
50
+ it { should be_false }
50
51
  end
51
52
 
52
53
  context 'when specified a object that exist' do
53
54
  before { AWS::S3::S3Object.any_instance.stub(:exists?).and_return(true) }
54
- it { should be_true }
55
+ it { should be_true }
55
56
  end
56
57
  end
57
58
 
@@ -60,7 +61,7 @@ describe "OmniStore::Storage::S3" do
60
61
  before { OmniStore::Storage::S3::Mountpoint.any_instance.stub(:delete).with(src, {}) }
61
62
  subject { lambda { OmniStore::Storage::S3.delete(src) } }
62
63
 
63
- it { should_not raise_error }
64
+ it { should_not raise_error }
64
65
  end
65
66
 
66
67
  describe '#read' do
@@ -78,7 +79,7 @@ describe "OmniStore::Storage::S3" do
78
79
  before { OmniStore::Storage::S3::Mountpoint.any_instance.stub(:write).with(src, nil, {}) }
79
80
  subject { lambda { OmniStore::Storage::S3.write(src) } }
80
81
 
81
- it { should_not raise_error }
82
+ it { should_not raise_error }
82
83
  end
83
84
 
84
85
  describe '#each' do
metadata CHANGED
@@ -1,83 +1,83 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnistore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - arukoh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-04-02 00:00:00.000000000 Z
11
+ date: 2019-04-23 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: aws-sdk
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - "~>"
17
+ - - ~>
18
18
  - !ruby/object:Gem::Version
19
19
  version: '1.6'
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
26
  version: '1.6'
27
27
  - !ruby/object:Gem::Dependency
28
28
  name: aws-sdk-resources
29
29
  requirement: !ruby/object:Gem::Requirement
30
30
  requirements:
31
- - - "~>"
31
+ - - ~>
32
32
  - !ruby/object:Gem::Version
33
33
  version: '2'
34
34
  type: :runtime
35
35
  prerelease: false
36
36
  version_requirements: !ruby/object:Gem::Requirement
37
37
  requirements:
38
- - - "~>"
38
+ - - ~>
39
39
  - !ruby/object:Gem::Version
40
40
  version: '2'
41
41
  - !ruby/object:Gem::Dependency
42
42
  name: activesupport
43
43
  requirement: !ruby/object:Gem::Requirement
44
44
  requirements:
45
- - - ">="
45
+ - - ~>
46
46
  - !ruby/object:Gem::Version
47
- version: '0'
47
+ version: '4'
48
48
  type: :runtime
49
49
  prerelease: false
50
50
  version_requirements: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">="
52
+ - - ~>
53
53
  - !ruby/object:Gem::Version
54
- version: '0'
54
+ version: '4'
55
55
  - !ruby/object:Gem::Dependency
56
56
  name: rake
57
57
  requirement: !ruby/object:Gem::Requirement
58
58
  requirements:
59
- - - ">="
59
+ - - <
60
60
  - !ruby/object:Gem::Version
61
- version: 0.8.7
61
+ version: '11.0'
62
62
  type: :development
63
63
  prerelease: false
64
64
  version_requirements: !ruby/object:Gem::Requirement
65
65
  requirements:
66
- - - ">="
66
+ - - <
67
67
  - !ruby/object:Gem::Version
68
- version: 0.8.7
68
+ version: '11.0'
69
69
  - !ruby/object:Gem::Dependency
70
70
  name: rspec
71
71
  requirement: !ruby/object:Gem::Requirement
72
72
  requirements:
73
- - - "~>"
73
+ - - ~>
74
74
  - !ruby/object:Gem::Version
75
75
  version: '2.4'
76
76
  type: :development
77
77
  prerelease: false
78
78
  version_requirements: !ruby/object:Gem::Requirement
79
79
  requirements:
80
- - - "~>"
80
+ - - ~>
81
81
  - !ruby/object:Gem::Version
82
82
  version: '2.4'
83
83
  description: Providers a single point of entry for storage
@@ -87,9 +87,10 @@ executables: []
87
87
  extensions: []
88
88
  extra_rdoc_files: []
89
89
  files:
90
- - ".gitignore"
91
- - ".rspec"
92
- - ".travis.yml"
90
+ - .gitignore
91
+ - .rspec
92
+ - .travis.yml
93
+ - Dockerfile
93
94
  - Gemfile
94
95
  - LICENSE
95
96
  - README.md
@@ -125,17 +126,17 @@ require_paths:
125
126
  - lib
126
127
  required_ruby_version: !ruby/object:Gem::Requirement
127
128
  requirements:
128
- - - ">="
129
+ - - '>='
129
130
  - !ruby/object:Gem::Version
130
131
  version: '0'
131
132
  required_rubygems_version: !ruby/object:Gem::Requirement
132
133
  requirements:
133
- - - ">="
134
+ - - '>='
134
135
  - !ruby/object:Gem::Version
135
136
  version: '0'
136
137
  requirements: []
137
138
  rubyforge_project:
138
- rubygems_version: 2.4.3
139
+ rubygems_version: 2.0.14.1
139
140
  signing_key:
140
141
  specification_version: 4
141
142
  summary: Providers a single point of entry for storage