simple-conf 0.0.2 → 0.0.3
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.
- data/README.md +6 -4
- data/lib/simple-conf/version.rb +1 -1
- metadata +2 -2
data/README.md
CHANGED
|
@@ -20,7 +20,7 @@ Or install it yourself as:
|
|
|
20
20
|
|
|
21
21
|
Define in your project class like:
|
|
22
22
|
|
|
23
|
-
```
|
|
23
|
+
```ruby
|
|
24
24
|
class Configuration
|
|
25
25
|
include SimpleConf
|
|
26
26
|
end
|
|
@@ -36,12 +36,14 @@ Create in the config folder configuration.yml file with content like:
|
|
|
36
36
|
- test2.example.com
|
|
37
37
|
production:
|
|
38
38
|
domain: "production.example.com"
|
|
39
|
+
```
|
|
39
40
|
|
|
40
41
|
Now you can use your file in the project:
|
|
41
42
|
|
|
42
|
-
```
|
|
43
|
-
|
|
44
|
-
|
|
43
|
+
```ruby
|
|
44
|
+
Configuration.staging.domain
|
|
45
|
+
Configuration.staging.links
|
|
46
|
+
Configuration.production.domain
|
|
45
47
|
```
|
|
46
48
|
|
|
47
49
|
## Contributing
|
data/lib/simple-conf/version.rb
CHANGED
metadata
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
|
2
2
|
name: simple-conf
|
|
3
3
|
version: !ruby/object:Gem::Version
|
|
4
|
-
version: 0.0.
|
|
4
|
+
version: 0.0.3
|
|
5
5
|
prerelease:
|
|
6
6
|
platform: ruby
|
|
7
7
|
authors:
|
|
@@ -9,7 +9,7 @@ authors:
|
|
|
9
9
|
autorequire:
|
|
10
10
|
bindir: bin
|
|
11
11
|
cert_chain: []
|
|
12
|
-
date: 2012-05-
|
|
12
|
+
date: 2012-05-24 00:00:00.000000000 Z
|
|
13
13
|
dependencies: []
|
|
14
14
|
description: Simple configuration library for yml files for loading from the config
|
|
15
15
|
folder
|