omnistore 0.2.0 → 0.2.1

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
- SHA1:
3
- metadata.gz: aea8b96ec4344c3f2c64adbffb2126bdef5b88ef
4
- data.tar.gz: ee323d6572ca9739dc80204de22ddbc74d00b791
2
+ SHA256:
3
+ metadata.gz: f708732b59e90f1765d901efea93bb90f5b49209a2ea94f989d4f202264f873a
4
+ data.tar.gz: e58f76e241139085b1450ba27aa4dd65b753ac04b8c8f126cbd4a500fd43440f
5
5
  SHA512:
6
- metadata.gz: 7490d18104e35862bab6645c885552b5ec88b5d87f54d8b9f3461c75483aa14183836ce5353ae2f430704572942f804a38f1e2dd060be67a5f5664f156c90d10
7
- data.tar.gz: 77631620f27aee02fb9e8e6c47e33827dca43adc72ee7cdcdb98ade715b930ecedf912abe7f5d82ea942bc14cd22b3bf125ba5b931a3cb65a68a6dd487558863
6
+ metadata.gz: 6a4974699ad11ffd271db61d10374e2788d36e59c1d9ac7ca4b648759e8e11a9f96e01f32743c5cb6b96ae8826f6c8396e15b526ec75b252bb6f2f0f24638a24
7
+ data.tar.gz: 6dac0fc5a96d67479935cad9aa3efbd7511b26f46ba4d20b266ac10d1a2f036125fdb29bebeeeaf37b188baefde959a874e8374d8afee4fa0ae07f1834bae6ed
@@ -2,15 +2,10 @@ before_install:
2
2
  - gem install bundler -N -v 1.16.0
3
3
 
4
4
  rvm:
5
- - 1.9.3
6
5
  - 2.0.0
7
6
  - 2.1.0
8
7
  - 2.2.0
9
-
10
- notifications:
11
- webhooks:
12
- urls:
13
- - https://hooker-arukoh.herokuapp.com/travis
14
- on_success: always
15
- on_failure: always
16
- on_start: false
8
+ - 2.3.0
9
+ - 2.4.0
10
+ - 2.5.0
11
+ - 2.6.0
data/Dockerfile CHANGED
@@ -1,9 +1,15 @@
1
- FROM amazonlinux
2
- RUN yum install -y ruby ruby-devel git make gcc-c++ libxml2 libxslt libxml2-devel libxslt-devel
1
+ FROM ruby:alpine
3
2
 
4
- RUN gem install bundler -N -v 1.16.0
3
+ ENV RUNTIME_PACKAGES "git libxml2-dev libxslt-dev"
4
+ ENV DEV_PACKAGES "build-base"
5
+
6
+ RUN apk add --update --no-cache $RUNTIME_PACKAGES
7
+ RUN apk add --update --virtual build-dependencies --no-cache $DEV_PACKAGES
8
+ RUN gem install bundler nokogiri -N
9
+ RUN gem install json -N -v 1.8.6
5
10
  RUN bundle config build.nokogiri --use-system-libraries
6
11
 
7
12
  WORKDIR /usr/src/omnistore
8
13
  ADD . .
9
14
  # RUN bundle i
15
+ # RUN apk del build-dependencies
@@ -1,5 +1,4 @@
1
1
  require 'logger'
2
- require 'active_support/inflector'
3
2
  require "omnistore/version"
4
3
  require 'omnistore/config'
5
4
  require 'omnistore/errors'
@@ -8,12 +8,16 @@ module OmniStore
8
8
  end
9
9
 
10
10
  def remount!
11
- unless OmniStore::Storage.const_defined?(OmniStore::Config.storage.camelcase)
11
+ unless OmniStore::Storage.const_defined?(camelcase(OmniStore::Config.storage))
12
12
  require "omnistore/storage/#{OmniStore::Config.storage}"
13
13
  end
14
- @storage = OmniStore::Storage.const_get(OmniStore::Config.storage.camelcase)
14
+ @storage = OmniStore::Storage.const_get(camelcase(OmniStore::Config.storage))
15
15
  @storage.mount!
16
16
  end
17
17
 
18
+ private
19
+ def camelcase(s)
20
+ s.split('_').map{|e| e.capitalize }.join
21
+ end
18
22
  end
19
23
  end
@@ -1,3 +1,3 @@
1
1
  module OmniStore
2
- VERSION = "0.2.0"
2
+ VERSION = "0.2.1"
3
3
  end
@@ -18,7 +18,6 @@ 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", "~> 4"
22
21
 
23
22
  gem.add_development_dependency "rake", "< 11.0"
24
23
  gem.add_development_dependency "rspec", "~> 2.4"
metadata CHANGED
@@ -1,83 +1,69 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: omnistore
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.0
4
+ version: 0.2.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - arukoh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2019-04-23 00:00:00.000000000 Z
11
+ date: 2019-04-24 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
- - !ruby/object:Gem::Dependency
42
- name: activesupport
43
- requirement: !ruby/object:Gem::Requirement
44
- requirements:
45
- - - ~>
46
- - !ruby/object:Gem::Version
47
- version: '4'
48
- type: :runtime
49
- prerelease: false
50
- version_requirements: !ruby/object:Gem::Requirement
51
- requirements:
52
- - - ~>
53
- - !ruby/object:Gem::Version
54
- version: '4'
55
41
  - !ruby/object:Gem::Dependency
56
42
  name: rake
57
43
  requirement: !ruby/object:Gem::Requirement
58
44
  requirements:
59
- - - <
45
+ - - "<"
60
46
  - !ruby/object:Gem::Version
61
47
  version: '11.0'
62
48
  type: :development
63
49
  prerelease: false
64
50
  version_requirements: !ruby/object:Gem::Requirement
65
51
  requirements:
66
- - - <
52
+ - - "<"
67
53
  - !ruby/object:Gem::Version
68
54
  version: '11.0'
69
55
  - !ruby/object:Gem::Dependency
70
56
  name: rspec
71
57
  requirement: !ruby/object:Gem::Requirement
72
58
  requirements:
73
- - - ~>
59
+ - - "~>"
74
60
  - !ruby/object:Gem::Version
75
61
  version: '2.4'
76
62
  type: :development
77
63
  prerelease: false
78
64
  version_requirements: !ruby/object:Gem::Requirement
79
65
  requirements:
80
- - - ~>
66
+ - - "~>"
81
67
  - !ruby/object:Gem::Version
82
68
  version: '2.4'
83
69
  description: Providers a single point of entry for storage
@@ -87,9 +73,9 @@ executables: []
87
73
  extensions: []
88
74
  extra_rdoc_files: []
89
75
  files:
90
- - .gitignore
91
- - .rspec
92
- - .travis.yml
76
+ - ".gitignore"
77
+ - ".rspec"
78
+ - ".travis.yml"
93
79
  - Dockerfile
94
80
  - Gemfile
95
81
  - LICENSE
@@ -126,17 +112,16 @@ require_paths:
126
112
  - lib
127
113
  required_ruby_version: !ruby/object:Gem::Requirement
128
114
  requirements:
129
- - - '>='
115
+ - - ">="
130
116
  - !ruby/object:Gem::Version
131
117
  version: '0'
132
118
  required_rubygems_version: !ruby/object:Gem::Requirement
133
119
  requirements:
134
- - - '>='
120
+ - - ">="
135
121
  - !ruby/object:Gem::Version
136
122
  version: '0'
137
123
  requirements: []
138
- rubyforge_project:
139
- rubygems_version: 2.0.14.1
124
+ rubygems_version: 3.0.3
140
125
  signing_key:
141
126
  specification_version: 4
142
127
  summary: Providers a single point of entry for storage