configit 0.1.0 → 0.1.1

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/configit.gemspec CHANGED
@@ -2,18 +2,18 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{configit}
5
- s.version = "0.1.0"
5
+ s.version = "0.1.1"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["Kris Rasmussen"]
9
- s.date = %q{2009-10-08}
9
+ s.date = %q{2009-12-22}
10
10
  s.default_executable = %q{configit}
11
11
  s.description = %q{The purpose of this gem is to make it very easy to consume configuration files
12
12
  and define them.}
13
13
  s.email = %q{kris@aptana.com}
14
14
  s.executables = ["configit"]
15
15
  s.extra_rdoc_files = ["History.txt", "README.txt", "bin/configit"]
16
- s.files = [".DS_Store", ".bnsignore", "History.txt", "README.txt", "Rakefile", "bin/configit", "lib/configit.rb", "lib/configit/attribute_definition.rb", "lib/configit/base.rb", "lib/configit/exceptions.rb", "spec/configit/base_spec.rb", "spec/configit_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "test/test_configit.rb"]
16
+ s.files = [".DS_Store", ".bnsignore", "History.txt", "README.txt", "Rakefile", "bin/configit", "configit.gemspec", "lib/configit.rb", "lib/configit/attribute_definition.rb", "lib/configit/base.rb", "lib/configit/exceptions.rb", "spec/configit/base_spec.rb", "spec/configit_spec.rb", "spec/spec.opts", "spec/spec_helper.rb", "test/test_configit.rb"]
17
17
  s.homepage = %q{http://www.aptana.com}
18
18
  s.rdoc_options = ["--main", "README.txt"]
19
19
  s.require_paths = ["lib"]
data/lib/configit/base.rb CHANGED
@@ -147,7 +147,7 @@ module Configit
147
147
 
148
148
  @attribute_module.class_eval do
149
149
  define_method name do
150
- value = attributes[name]
150
+ value = attributes[name] || attr.default
151
151
  if value != nil
152
152
  @@converters[attr.type].call(value)
153
153
  else
data/lib/configit.rb CHANGED
@@ -2,7 +2,7 @@
2
2
  module Configit
3
3
 
4
4
  # :stopdoc:
5
- VERSION = '0.1.0'
5
+ VERSION = '0.1.1'
6
6
  LIBPATH = ::File.expand_path(::File.dirname(__FILE__)) + ::File::SEPARATOR
7
7
  PATH = ::File.dirname(LIBPATH) + ::File::SEPARATOR
8
8
  # :startdoc:
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: configit
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Kris Rasmussen
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-10-08 00:00:00 -07:00
12
+ date: 2009-12-22 00:00:00 -08:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency