fedux_org-stdlib 0.6.28 → 0.6.29

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: 1005df158e4b102376f021e4cb5e60baa7b8dc38
4
- data.tar.gz: ad437671387f459fb4c3ea01b0d53d089b4742a6
3
+ metadata.gz: 71dc4bf0767ab3219bc50668bfde8fa9279942b0
4
+ data.tar.gz: bf133d1dbbd30301f67f417473b38f6ca84e9726
5
5
  SHA512:
6
- metadata.gz: ce0c4e7b2055b1a90bb80ed3a9f57c1d03dd6cb68a6a2b9eb0c862f76c7ed76c5fc9acae745827cb56e5626df4c1b476d2e5340546e9074e2af5cd6bc3b77afd
7
- data.tar.gz: 8477fed95d3a21663ba8d6ab169243fc67d7aa286d6f6b5cf15d5679af03a8605a93fed6d64ecdaed9bcd403ed5840f3822b6c8c61ca82575b22e75fc398e1d1
6
+ metadata.gz: 9a8483583b670d5a452f8b88addf36f90c208ed14c30ccbe141b9ee1a0d85080479d62cc64d622f80ea43afc72f6c0be9c79fbe95ee4f8e8ae9e9f078b04173a
7
+ data.tar.gz: 1c23e6c990a2f02daf17f3dbe932f294673baedea15b7ba2651597c1afc24e384c7b4f22339f35eb9c5ea6f674cb86d93b09177bfb383da74e754af1d6371d86
data/Gemfile.lock CHANGED
@@ -1,7 +1,7 @@
1
1
  PATH
2
2
  remote: .
3
3
  specs:
4
- fedux_org-stdlib (0.6.28)
4
+ fedux_org-stdlib (0.6.29)
5
5
  activesupport
6
6
 
7
7
  GEM
@@ -226,12 +226,15 @@ module FeduxOrgStdlib
226
226
  # @return [String]
227
227
  # An formatted version of the configuration
228
228
  def to_s
229
+ # header 'length' = 6 letters
230
+ length = self.class._known_options.inject(6) { |memo, o| o.size > memo ? o.size : memo }
231
+
229
232
  result = []
230
- result << sprintf("%20s | %s", 'option', 'value')
231
- result << sprintf("%s + %s", '-' * 20, '-' * 80)
233
+ result << sprintf("%#{length}s | %s", 'option', 'value')
234
+ result << sprintf("%s + %s", '-' * length, '-' * 80)
232
235
 
233
236
  self.class._known_options.each do |o|
234
- result << sprintf("%20s | %s", o, Array(public_send(o)).join(', '))
237
+ result << sprintf("%#{length}s | %s", o, Array(public_send(o)).join(', '))
235
238
  end
236
239
 
237
240
  result.join("\n")
@@ -1,5 +1,5 @@
1
1
  # encoding: utf-8
2
2
  # FeduxOrgStdlib
3
3
  module FeduxOrgStdlib
4
- VERSION = '0.6.28'
4
+ VERSION = '0.6.29'
5
5
  end
@@ -353,10 +353,10 @@ RSpec.describe AppConfig do
353
353
 
354
354
  config = config_klass.new
355
355
  expect(config.to_s).to eq <<-EOS.strip_heredoc.chomp
356
- option | value
357
- -------------------- + --------------------------------------------------------------------------------
358
- opt1 | test1
359
- opt2 | test2
356
+ option | value
357
+ ------ + --------------------------------------------------------------------------------
358
+ opt1 | test1
359
+ opt2 | test2
360
360
  EOS
361
361
  end
362
362
  end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: fedux_org-stdlib
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.28
4
+ version: 0.6.29
5
5
  platform: ruby
6
6
  authors:
7
7
  - Max Meyer
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-07-30 00:00:00.000000000 Z
11
+ date: 2014-08-03 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: activesupport
@@ -193,7 +193,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
193
193
  version: '0'
194
194
  requirements: []
195
195
  rubyforge_project:
196
- rubygems_version: 2.4.1
196
+ rubygems_version: 2.2.2
197
197
  signing_key:
198
198
  specification_version: 4
199
199
  summary: Collection of useful libraries. It maybe depend on external libraries.