ruby-conf 1.4.1 → 1.4.2

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (4) hide show
  1. data/README.rdoc +30 -0
  2. data/VERSION +1 -1
  3. data/ruby-conf.gemspec +1 -1
  4. metadata +3 -3
data/README.rdoc CHANGED
@@ -56,6 +56,36 @@
56
56
  RailsConfig.production.database # "rails_prod"
57
57
  RailsConfig.staging.database # "rails_staging"
58
58
 
59
+ === Inheritance
60
+ RubyConf.define "rails", :as => :RailsConfig do
61
+ defaults do
62
+ host "localhost"
63
+ username "godzilla"
64
+ password "mothra"
65
+ end
66
+
67
+ development :inherits => defaults do
68
+ database "development"
69
+ end
70
+
71
+ test :inherits => defaults do
72
+ database "test"
73
+ username "biollante"
74
+ password "destroygodzilla"
75
+ end
76
+
77
+ production :inherits => defaults do
78
+ database "production"
79
+ host "killmothra.net"
80
+ password "ilovemothra"
81
+ end
82
+ end
83
+ RailsConfig.development.database # "development"
84
+ RailsConfig.development.username # "godzilla
85
+ RailsConfig.development.password # "mothra"
86
+ RailsConfig.production.username # "godzilla"
87
+ RailsConfig.production.password # "ilovemothra"
88
+
59
89
  == Contributing to ruby-conf
60
90
 
61
91
  * Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 1.4.1
1
+ 1.4.2
data/ruby-conf.gemspec CHANGED
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{ruby-conf}
8
- s.version = "1.4.1"
8
+ s.version = "1.4.2"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Curtis Schofield & Hollin Wilkins"]
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby-conf
3
3
  version: !ruby/object:Gem::Version
4
- hash: 5
4
+ hash: 3
5
5
  prerelease:
6
6
  segments:
7
7
  - 1
8
8
  - 4
9
- - 1
10
- version: 1.4.1
9
+ - 2
10
+ version: 1.4.2
11
11
  platform: ruby
12
12
  authors:
13
13
  - Curtis Schofield & Hollin Wilkins