You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CHANGELOG.md
+6Lines changed: 6 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,5 +1,11 @@
1
1
# Changelog
2
2
3
+
## 1.4.0
4
+
5
+
* Added support for passing a raw ruby hash into to both `Settings.add_source!` and `Settings.prepend_source!` ([#108](https://github.com/railsconfig/config/pull/159) thanks to [@halloffame](https://github.com/halloffame))
6
+
* Added new reserved name `test` ([#158](https://github.com/railsconfig/config/pull/158) thanks to [@milushov](https://github.com/milushov))
7
+
*`to_hash` should not replace nested config objects with Hash ([#160](https://github.com/railsconfig/config/issues/160) thanks to [@seikichi](https://github.com/seikichi))
8
+
3
9
## 1.3.0
4
10
5
11
***WARNING:** Overwrite arrays found in previously loaded settings file ([#137](https://github.com/railsconfig/config/pull/137) thanks to [@Fryguy](https://github.com/Fryguy) and [@dtaniwaki](https://github.com/dtaniwaki)) - this is a change breaking previous behaviour. If you want to keep Config to work as before, which is merging arrays found in following loaded settings file, please add `config.overwrite_arrays = false` to your Config initializer
Copy file name to clipboardExpand all lines: README.md
+19Lines changed: 19 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -193,6 +193,15 @@ Settings.reload!
193
193
> Note: this is an example usage, it is easier to just use the default local files `settings.local.yml,
194
194
settings/#{Rails.env}.local.yml and environments/#{Rails.env}.local.yml` for your developer specific settings.
195
195
196
+
You also have the option to add a raw hash as a source. One use case might be storing settings in the database or in environment variables that overwrite what is in the YML files.
Embedded Ruby is allowed in the configuration files. Consider the two following config files.
@@ -300,6 +309,16 @@ filesystem gets recreated from the git sources on each instance refresh. To use
300
309
301
310
To upload your local values to Heroku you could ran `bundle exec rake config:heroku`.
302
311
312
+
### Working with Cloud Foundry
313
+
314
+
Cloud Foundry integration will generate a manifest adding to your CF manifest.yml the defined ENV variables under the `env` section of specified app in the yaml file.
315
+
You must specify the app name and optionally the name of your CF manifest file:
The result of this command will have the manifest file name suffixed with the environment you ran the task in. You can then push your app with the generated manifest.
320
+
321
+
303
322
### Fine-tuning
304
323
305
324
You can customize how environment variables are processed:
0 commit comments