youthtree-settings 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
@@ -3,7 +3,7 @@ require 'yaml'
3
3
  module YouthTree
4
4
  class Settings
5
5
 
6
- VERSION = "0.1.0".freeze
6
+ VERSION = "0.1.1".freeze
7
7
 
8
8
  cattr_reader :settings_path
9
9
  def self.settings_path
@@ -32,6 +32,10 @@ module YouthTree
32
32
  @hash.has_key?(key) && @hash[key].present?
33
33
  end
34
34
 
35
+ def fetch(key, default = nil)
36
+ has?(key) ? self[key] : default
37
+ end
38
+
35
39
  def blank?
36
40
  @hash.blank?
37
41
  end
@@ -0,0 +1,48 @@
1
+ # Generated by jeweler
2
+ # DO NOT EDIT THIS FILE DIRECTLY
3
+ # Instead, edit Jeweler::Tasks in Rakefile, and run the gemspec command
4
+ # -*- encoding: utf-8 -*-
5
+
6
+ Gem::Specification.new do |s|
7
+ s.name = %q{youthtree-settings}
8
+ s.version = "0.1.1"
9
+
10
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
+ s.authors = ["Darcy Laycock"]
12
+ s.date = %q{2010-07-10}
13
+ s.description = %q{Lets you use config/settings.yml in a rails application to manage settings on a per-env basis.}
14
+ s.email = %q{sutto@sutto.net}
15
+ s.extra_rdoc_files = [
16
+ "LICENSE",
17
+ "README.md"
18
+ ]
19
+ s.files = [
20
+ ".document",
21
+ ".gitignore",
22
+ "LICENSE",
23
+ "README.md",
24
+ "Rakefile",
25
+ "lib/youth_tree/settings.rb",
26
+ "lib/youthtree-settings.rb",
27
+ "youthtree-settings.gemspec"
28
+ ]
29
+ s.homepage = %q{http://github.com/YouthTree/youthtree-settings}
30
+ s.rdoc_options = ["--charset=UTF-8"]
31
+ s.require_paths = ["lib"]
32
+ s.rubygems_version = %q{1.3.7}
33
+ s.summary = %q{Simple Settings for Rails Applications}
34
+
35
+ if s.respond_to? :specification_version then
36
+ current_version = Gem::Specification::CURRENT_SPECIFICATION_VERSION
37
+ s.specification_version = 3
38
+
39
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
40
+ s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0.beta4"])
41
+ else
42
+ s.add_dependency(%q<activesupport>, [">= 3.0.0.beta4"])
43
+ end
44
+ else
45
+ s.add_dependency(%q<activesupport>, [">= 3.0.0.beta4"])
46
+ end
47
+ end
48
+
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: youthtree-settings
3
3
  version: !ruby/object:Gem::Version
4
- hash: 27
4
+ hash: 25
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
8
  - 1
9
- - 0
10
- version: 0.1.0
9
+ - 1
10
+ version: 0.1.1
11
11
  platform: ruby
12
12
  authors:
13
13
  - Darcy Laycock
@@ -15,7 +15,7 @@ autorequire:
15
15
  bindir: bin
16
16
  cert_chain: []
17
17
 
18
- date: 2010-07-08 00:00:00 +08:00
18
+ date: 2010-07-10 00:00:00 +08:00
19
19
  default_executable:
20
20
  dependencies:
21
21
  - !ruby/object:Gem::Dependency
@@ -52,6 +52,7 @@ files:
52
52
  - Rakefile
53
53
  - lib/youth_tree/settings.rb
54
54
  - lib/youthtree-settings.rb
55
+ - youthtree-settings.gemspec
55
56
  has_rdoc: true
56
57
  homepage: http://github.com/YouthTree/youthtree-settings
57
58
  licenses: []