pansophy 0.5.6 → 0.6.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/CHANGELOG.md +3 -1
- data/lib/pansophy/connection.rb +15 -0
- data/lib/pansophy/version.rb +1 -1
- data/pansophy.gemspec +1 -1
- metadata +7 -7
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 45f3d2a879fa04161f7d7ce5fd66cab11d5869ea
|
4
|
+
data.tar.gz: 38040feb52c8e4991cb7ad2903fcaed542304d8f
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 969e74f5e66a4fc7ed0546bc067e70ef7381df6248d09d20d2de5e95d4729f3a01ecbcdbd55a50bb3e189dd0de893c65a288b0f19de98012340bc3f8667f9a8d
|
7
|
+
data.tar.gz: 7666896e69a6bb3d9037e6a9fbb4eaeb5814eae1eba7fe68fbb82ada04dec23e51be7c9c568d3396273dee2a07a2c9930676d40599b3ac204af67aa437e79c79
|
data/CHANGELOG.md
CHANGED
data/lib/pansophy/connection.rb
CHANGED
@@ -2,6 +2,17 @@ module Pansophy
|
|
2
2
|
module Connection
|
3
3
|
def self.aws
|
4
4
|
Excon.defaults[:ciphers] = 'DEFAULT'
|
5
|
+
return env_fog if use_env_fog?
|
6
|
+
iam_profile_fog
|
7
|
+
end
|
8
|
+
|
9
|
+
private
|
10
|
+
|
11
|
+
def self.use_env_fog?
|
12
|
+
ENV.include? 'AWS_ACCESS_KEY_ID'
|
13
|
+
end
|
14
|
+
|
15
|
+
def self.env_fog
|
5
16
|
Fog::Storage.new(
|
6
17
|
provider: 'AWS',
|
7
18
|
aws_access_key_id: ENV['AWS_ACCESS_KEY_ID'],
|
@@ -9,5 +20,9 @@ module Pansophy
|
|
9
20
|
region: ENV['AWS_REGION']
|
10
21
|
)
|
11
22
|
end
|
23
|
+
|
24
|
+
def self.iam_profile_fog
|
25
|
+
Fog::Storage.new provider: 'AWS', use_iam_profile: true
|
26
|
+
end
|
12
27
|
end
|
13
28
|
end
|
data/lib/pansophy/version.rb
CHANGED
data/pansophy.gemspec
CHANGED
metadata
CHANGED
@@ -1,29 +1,29 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: pansophy
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.6.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Alessandro Berardi
|
8
8
|
autorequire:
|
9
9
|
bindir: exe
|
10
10
|
cert_chain: []
|
11
|
-
date: 2017-
|
11
|
+
date: 2017-10-27 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: fog-aws
|
15
15
|
requirement: !ruby/object:Gem::Requirement
|
16
16
|
requirements:
|
17
|
-
- - "
|
17
|
+
- - "~>"
|
18
18
|
- !ruby/object:Gem::Version
|
19
|
-
version: '0'
|
19
|
+
version: '0.13'
|
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: '0'
|
26
|
+
version: '0.13'
|
27
27
|
- !ruby/object:Gem::Dependency
|
28
28
|
name: mime-types
|
29
29
|
requirement: !ruby/object:Gem::Requirement
|
@@ -269,7 +269,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
|
|
269
269
|
version: '0'
|
270
270
|
requirements: []
|
271
271
|
rubyforge_project:
|
272
|
-
rubygems_version: 2.
|
272
|
+
rubygems_version: 2.5.2
|
273
273
|
signing_key:
|
274
274
|
specification_version: 4
|
275
275
|
summary: Information sharing via centralised repository
|