dacs 0.3.1 → 0.3.2

Sign up to get free protection for your applications and to get access to all the features.
data/Rakefile CHANGED
@@ -10,7 +10,7 @@ begin
10
10
  gem.email = "devs@devver.net"
11
11
  gem.homepage = "http://github.com/avdi/dacs"
12
12
  gem.authors = ["Devver, Inc."]
13
- gem.add_dependency "ruport", "~> 1.6"
13
+ gem.add_dependency "hirb", "~> 0.2.9"
14
14
  gem.add_development_dependency "rspec", ">= 1.2.9"
15
15
  gem.add_development_dependency "yard", ">= 0"
16
16
  gem.add_development_dependency "devver-construct", "~> 1.1"
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.1
1
+ 0.3.2
@@ -3,7 +3,7 @@ require 'singleton'
3
3
  require 'logger'
4
4
  require 'pathname'
5
5
  require 'yaml'
6
- require 'ruport'
6
+ require 'hirb'
7
7
 
8
8
  module Dacs
9
9
  # This configuration system is for deployment-specific values, such as AWS keys
@@ -145,11 +145,15 @@ module Dacs
145
145
  end
146
146
 
147
147
  def dump
148
- table = Table(%w[Key Value Source])
149
- each_pair do |key, configured_value|
150
- table << [key, configured_value.value, configured_value.source.to_s]
151
- end
152
- table.as(:text)
148
+ Hirb::Helpers::AutoTable.render(
149
+ self.values,
150
+ :fields => [:key, :value, :source],
151
+ :headers => {
152
+ :key => "Key",
153
+ :value => "Value",
154
+ :source => "Source"
155
+ },
156
+ :description => false) + "\n"
153
157
  end
154
158
 
155
159
  def report
@@ -237,13 +237,13 @@ module Dacs
237
237
 
238
238
  it "should be able to show a table of values" do
239
239
  AppConfig.dump.should == <<END
240
- +------------------------------------------+
241
- | Key | Value | Source |
242
- +------------------------------------------+
243
- | foo | 42 | defaults |
240
+ +-----+----------+-------------------------+
241
+ | Key | Value | Source |
242
+ +-----+----------+-------------------------+
243
+ | foo | 42 | defaults |
244
244
  | buz | env_buz | environment |
245
245
  | bar | file_bar | file config/foo_app.yml |
246
- +------------------------------------------+
246
+ +-----+----------+-------------------------+
247
247
  END
248
248
  end
249
249
 
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dacs
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.3.1
4
+ version: 0.3.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Devver, Inc.
@@ -13,14 +13,14 @@ date: 2010-03-22 00:00:00 -04:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
16
- name: ruport
16
+ name: hirb
17
17
  type: :runtime
18
18
  version_requirement:
19
19
  version_requirements: !ruby/object:Gem::Requirement
20
20
  requirements:
21
21
  - - ~>
22
22
  - !ruby/object:Gem::Version
23
- version: "1.6"
23
+ version: 0.2.9
24
24
  version:
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rspec