bogo-cli 0.2.8 → 0.2.10

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: 47d199edb05585ecebc6d8c01f3b877acae51a38
4
- data.tar.gz: 706ebf4fed414233ef6947a38bef9f2fabc80398
3
+ metadata.gz: 88d4e1c6624d0a5e58a560c929df24c9c690d4bc
4
+ data.tar.gz: e09d33d7d22258aee008239125fa061610854d2e
5
5
  SHA512:
6
- metadata.gz: c59702693afcf787b69db55adf5ee83862ac94f0b61866a5254dc85449230e5a62529495b44e08f004f5bad64168d6644fee8e193b9c75f24ca94bbd41d755e9
7
- data.tar.gz: ed327e759fadb1538a534f000558501f84d9db3bbbbbd9d2805dc5e72dc0e7d7ebb2a0d4683d0aa92d3fbc7c61a7f8c7a3cb5fe2156bec93b761e8ace249c397
6
+ metadata.gz: a646cd7ec23063e2a3ccf81b4e5ea16e65144a330cf00663fb84277fef98a6122418ec2e3ddb36e9ec3f12826a9c43feac825d2d8303eb05278385294ff669c1
7
+ data.tar.gz: 654697ea4cd9e88071cbb8e5b94912618badb548f0e8a4e4fb38af1c7f3942faab5c0a8871b32a3afdc956ad689dc2f990734e1494ea4004a0731d9a46ad69a1
data/CHANGELOG.md CHANGED
@@ -1,3 +1,6 @@
1
+ # v0.2.10
2
+ * Prevent re-evaluation of configuration files (spox/bogo-config#6)
3
+
1
4
  # v0.2.8
2
5
  * Load configuration file prior to UI init
3
6
 
@@ -83,13 +83,13 @@ module Bogo
83
83
  # @return [Hash]
84
84
  def load_config!
85
85
  if(options[:config])
86
- config_inst = config_class.new(options[:config])
86
+ config_inst = Config.new(options[:config])
87
87
  elsif(self.class.const_defined?(:DEFAULT_CONFIGURATION_FILES))
88
88
  path = self.class.const_get(:DEFAULT_CONFIGURATION_FILES).detect do |check|
89
89
  full_check = File.expand_path(check)
90
90
  File.exists?(full_check)
91
91
  end
92
- config_inst = config_class.new(path) if path
92
+ config_inst = Config.new(path) if path
93
93
  end
94
94
  if(config_inst)
95
95
  options.delete(:config)
@@ -100,7 +100,7 @@ module Bogo
100
100
  defaults.key?(key)
101
101
  end
102
102
  ]
103
- config_data = config_inst.load!
103
+ config_data = config_inst.data
104
104
  config_inst = Smash[
105
105
  config_inst.to_smash.find_all do |key, value|
106
106
  config_data.key?(key)
@@ -1,6 +1,6 @@
1
1
  module Bogo
2
2
  module Cli
3
3
  # Current library version
4
- VERSION = Gem::Version.new('0.2.8')
4
+ VERSION = Gem::Version.new('0.2.10')
5
5
  end
6
6
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bogo-cli
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.2.8
4
+ version: 0.2.10
5
5
  platform: ruby
6
6
  authors:
7
7
  - Chris Roberts
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-06-23 00:00:00.000000000 Z
11
+ date: 2016-10-18 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: bogo
@@ -146,4 +146,3 @@ signing_key:
146
146
  specification_version: 4
147
147
  summary: CLI Helper libraries
148
148
  test_files: []
149
- has_rdoc: