pansophy 0.2.4 → 0.2.5

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: 0c3c9ce88e76c2197902db01cad77bbb439354e5
4
- data.tar.gz: 589b1723656aa0987a75ef2515159da81dae625a
3
+ metadata.gz: 89b8207e34ab60ab9b12ff417232c439a6792f7e
4
+ data.tar.gz: a5e0c1a753943baedc19be2c0b69e23c8446246b
5
5
  SHA512:
6
- metadata.gz: ab66765bb5ce072ea9ef882ea199342b11a6e7ffbee919070b4356073e67d68df54afefffcc3bea7e45d1ce3859aa1751b5ac68783d27f248a2c0bd386c0ef5c
7
- data.tar.gz: 97760d534afb8e88fa23a8e0a6fb5c587d31ea8f73c18b4fd09936aaceee7f5c4466ebfe05ebdb5eb329d0696323f02a2169f627612f80007fb9711a46b4ad61
6
+ metadata.gz: 75df6e2c4f24136f1e60f816d234bf7546369b5c0b64cd61c73687c9919acad4e1284e31e9e548ceb2c62a1b45a4332857b3206a6ae805e39e41776574b97f8e
7
+ data.tar.gz: 22070f0b09af3f61485eb05f50c32e810ab22deb8ceab944742cad8706f86802eb80e11636ae2f5811e3cf8a00380b260d3860255bcdf91f31699262eaa56a0f
@@ -1 +1 @@
1
- ruby-2.2.2
1
+ 2.2.3
@@ -6,10 +6,8 @@ module Pansophy
6
6
  attr_writer :config_bucket_name, :config_remote_folder, :config_local_folder, :version
7
7
 
8
8
  def merge
9
- puts "Fetching remote configuration (version #{VERSION})"
10
9
  verify_config_bucket_name!
11
10
  Pansophy.merge(config_bucket_name, remote_path, local_path, overwrite: true)
12
- puts 'done'
13
11
  end
14
12
 
15
13
  def config_bucket_name
@@ -17,7 +15,7 @@ module Pansophy
17
15
  end
18
16
 
19
17
  def config_remote_folder
20
- @config_remote_folder ||= (ENV['CONFIG_REMOTE_FOLDER'] || 'config')
18
+ @config_remote_folder ||= ENV.fetch('CONFIG_REMOTE_FOLDER', 'config')
21
19
  end
22
20
 
23
21
  def config_local_folder
@@ -25,7 +23,7 @@ module Pansophy
25
23
  end
26
24
 
27
25
  def version
28
- @version ||= (ENV['CONFIG_VERSION'] || '1.0')
26
+ @version ||= ENV.fetch('CONFIG_VERSION', '1.0')
29
27
  end
30
28
 
31
29
  private
@@ -4,6 +4,7 @@ namespace :pansophy do
4
4
  task :synchronize do
5
5
  require 'pansophy/config_synchronizer'
6
6
  synchronizer = Pansophy::ConfigSynchronizer.new
7
+ puts "Pansophy version #{Pansophy::VERSION}"
7
8
  puts "Fetching remote configuration (version #{synchronizer.version})"
8
9
  synchronizer.merge
9
10
  puts "Done"
@@ -1,3 +1,3 @@
1
1
  module Pansophy
2
- VERSION = '0.2.4'
2
+ VERSION = '0.2.5'
3
3
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: pansophy
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.4
4
+ version: 0.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Alessandro Berardi
8
8
  autorequire:
9
9
  bindir: exe
10
10
  cert_chain: []
11
- date: 2015-05-07 00:00:00.000000000 Z
11
+ date: 2015-10-21 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: fog-aws
@@ -223,7 +223,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
223
223
  version: '0'
224
224
  requirements: []
225
225
  rubyforge_project:
226
- rubygems_version: 2.4.5
226
+ rubygems_version: 2.4.5.1
227
227
  signing_key:
228
228
  specification_version: 4
229
229
  summary: Information sharing via centralised repository