youthtree-settings 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +7 -0
- data/README.md +7 -7
- data/lib/youth_tree/settings.rb +1 -1
- data/youthtree-settings.gemspec +1 -3
- metadata +15 -13
checksums.yaml
ADDED
@@ -0,0 +1,7 @@
|
|
1
|
+
---
|
2
|
+
SHA1:
|
3
|
+
metadata.gz: 3da12c1b7278706b20a1a3816809958009637938
|
4
|
+
data.tar.gz: 486a9f104f97e073c03f2fd5e9c250c64926e866
|
5
|
+
SHA512:
|
6
|
+
metadata.gz: e0af886ecad1c40b2564f9f8bf835d8b402facc6982026721c9b06e03f30d13d95e5a5ab6a78d2b3d65c71a458dde44c4577d072af09b20f2e6bd845b652357b
|
7
|
+
data.tar.gz: 4b91cec3a133741cfd0f66317df224afc233498cedf337ff0733bbca8f852af9dcb7952e89322a2ab7ce75c513038ac6456d598b88e194be327da2c03e80f6f4
|
data/README.md
CHANGED
@@ -2,21 +2,21 @@
|
|
2
2
|
|
3
3
|
## Installation ##
|
4
4
|
|
5
|
-
1. Add "gem 'youthtree-settings' to your Gemfile
|
5
|
+
1. Add "gem 'youthtree-settings'" to your Gemfile
|
6
6
|
2. Run bundle install
|
7
7
|
|
8
8
|
## Usage ##
|
9
9
|
|
10
|
-
Simply add
|
11
|
-
and use
|
10
|
+
Simply add a configuration file to `config/settings.yml`
|
11
|
+
and use the `Settings` object. Note that you can use:
|
12
12
|
|
13
|
-
* `
|
14
|
-
* `
|
15
|
-
* `
|
13
|
+
* `Settings.name` - base
|
14
|
+
* `Settings.name.other` - nested
|
15
|
+
* `Settings.name.other?` - check for a key
|
16
16
|
|
17
17
|
## Configuration ##
|
18
18
|
|
19
|
-
Simply put a
|
19
|
+
Simply put a Yaml file in `config/settings.yml`. As an example:
|
20
20
|
|
21
21
|
---
|
22
22
|
default:
|
data/lib/youth_tree/settings.rb
CHANGED
data/youthtree-settings.gemspec
CHANGED
@@ -3,7 +3,6 @@
|
|
3
3
|
require File.expand_path('lib/youth_tree/settings', File.dirname(__FILE__))
|
4
4
|
|
5
5
|
Gem::Specification.new do |s|
|
6
|
-
|
7
6
|
s.name = "youthtree-settings"
|
8
7
|
s.summary = "Simple Settings for Rails Applications"
|
9
8
|
s.description = %Q{Lets you use config/settings.yml in a rails application to manage settings on a per-env basis.}
|
@@ -15,6 +14,5 @@ Gem::Specification.new do |s|
|
|
15
14
|
s.test_files = s.files.grep(%r{^(test|spec|features)/})
|
16
15
|
s.require_paths = ["lib"]
|
17
16
|
s.version = YouthTree::Settings::VERSION.dup
|
18
|
-
s.add_dependency "activesupport", "
|
19
|
-
|
17
|
+
s.add_dependency "activesupport", ">= 3.0", '< 5.0'
|
20
18
|
end
|
metadata
CHANGED
@@ -1,32 +1,35 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: youthtree-settings
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.2
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Darcy Laycock
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-05-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: activesupport
|
16
15
|
requirement: !ruby/object:Gem::Requirement
|
17
|
-
none: false
|
18
16
|
requirements:
|
19
|
-
- -
|
17
|
+
- - '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: '3.0'
|
20
|
+
- - <
|
21
|
+
- !ruby/object:Gem::Version
|
22
|
+
version: '5.0'
|
22
23
|
type: :runtime
|
23
24
|
prerelease: false
|
24
25
|
version_requirements: !ruby/object:Gem::Requirement
|
25
|
-
none: false
|
26
26
|
requirements:
|
27
|
-
- -
|
27
|
+
- - '>='
|
28
28
|
- !ruby/object:Gem::Version
|
29
29
|
version: '3.0'
|
30
|
+
- - <
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '5.0'
|
30
33
|
description: Lets you use config/settings.yml in a rails application to manage settings
|
31
34
|
on a per-env basis.
|
32
35
|
email:
|
@@ -45,26 +48,25 @@ files:
|
|
45
48
|
- youthtree-settings.gemspec
|
46
49
|
homepage: http://github.com/YouthTree/youthtree-settings
|
47
50
|
licenses: []
|
51
|
+
metadata: {}
|
48
52
|
post_install_message:
|
49
53
|
rdoc_options: []
|
50
54
|
require_paths:
|
51
55
|
- lib
|
52
56
|
required_ruby_version: !ruby/object:Gem::Requirement
|
53
|
-
none: false
|
54
57
|
requirements:
|
55
|
-
- -
|
58
|
+
- - '>='
|
56
59
|
- !ruby/object:Gem::Version
|
57
60
|
version: '0'
|
58
61
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
59
|
-
none: false
|
60
62
|
requirements:
|
61
|
-
- -
|
63
|
+
- - '>='
|
62
64
|
- !ruby/object:Gem::Version
|
63
65
|
version: '0'
|
64
66
|
requirements: []
|
65
67
|
rubyforge_project:
|
66
|
-
rubygems_version:
|
68
|
+
rubygems_version: 2.0.3
|
67
69
|
signing_key:
|
68
|
-
specification_version:
|
70
|
+
specification_version: 4
|
69
71
|
summary: Simple Settings for Rails Applications
|
70
72
|
test_files: []
|