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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: '0697012f29b19bf39c9ebec84a2c6cfef69b8d39'
4
- data.tar.gz: 1f601a1bfef0dab266c7955c2f1a4ffc11896dae
3
+ metadata.gz: 45f3d2a879fa04161f7d7ce5fd66cab11d5869ea
4
+ data.tar.gz: 38040feb52c8e4991cb7ad2903fcaed542304d8f
5
5
  SHA512:
6
- metadata.gz: aeaaadc2312f0f72cc78e262e3df5f933f71921f9f3c067206f110e73b588866f7296c18da3e7d2fab40c7768a8bddd2c83c89120ba8a88a01e8c04f7ec1ac41
7
- data.tar.gz: d9c61b78815803272b97b45ac9e27c2d0b36cbec905bf9996f44cff35a409d67458776d50320c77d2bd1fc90ff968fd784ffefb28551a21751086c7d27879006
6
+ metadata.gz: 969e74f5e66a4fc7ed0546bc067e70ef7381df6248d09d20d2de5e95d4729f3a01ecbcdbd55a50bb3e189dd0de893c65a288b0f19de98012340bc3f8667f9a8d
7
+ data.tar.gz: 7666896e69a6bb3d9037e6a9fbb4eaeb5814eae1eba7fe68fbb82ada04dec23e51be7c9c568d3396273dee2a07a2c9930676d40599b3ac204af67aa437e79c79
@@ -1,6 +1,8 @@
1
1
  # Change Log
2
2
 
3
- ## [Unreleased]
3
+ ## [0.6.0]
4
+ ### Added
5
+ - [DO-90] Support using EC2 profile when fetching configuration files
4
6
 
5
7
  ## [0.5.6]
6
8
  ### 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
@@ -1,3 +1,3 @@
1
1
  module Pansophy
2
- VERSION = '0.5.6'
2
+ VERSION = '0.6.0'
3
3
  end
@@ -23,7 +23,7 @@ Gem::Specification.new do |spec|
23
23
 
24
24
  spec.required_ruby_version = '>= 2.1'
25
25
 
26
- spec.add_dependency 'fog-aws'
26
+ spec.add_dependency 'fog-aws', '~> 0.13'
27
27
  spec.add_dependency 'mime-types'
28
28
  spec.add_dependency 'anima'
29
29
  spec.add_dependency 'adamantium'
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.5.6
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-07-27 00:00:00.000000000 Z
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.6.12
272
+ rubygems_version: 2.5.2
273
273
  signing_key:
274
274
  specification_version: 4
275
275
  summary: Information sharing via centralised repository