moneypools-rake_helpers 0.0.6 → 0.0.7

Sign up to get free protection for your applications and to get access to all the features.
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.0.6
1
+ 0.0.7
@@ -10,8 +10,9 @@ module MP
10
10
  class Option
11
11
  attr_reader :attribute, :name, :message, :default
12
12
 
13
- def initialize(attribute, overrides, options, &block)
13
+ def initialize(attribute, config_instance, overrides, options, &block)
14
14
  @attribute = attribute
15
+ @config_instance = config_instance
15
16
 
16
17
  @overrides = overrides
17
18
  @default = options[:default]
@@ -25,7 +26,7 @@ module MP
25
26
  end
26
27
 
27
28
  def default
28
- @default.is_a?(Proc) ? @default.call : @default
29
+ @default.is_a?(Proc) ? @default.call(@config_instance) : @default
29
30
  end
30
31
 
31
32
  def write(value)
@@ -85,7 +86,7 @@ module MP
85
86
  end
86
87
 
87
88
  def add(attribute, options={}, &block)
88
- option = Option.new(attribute, [ENV, configuration_settings], options, &block)
89
+ option = Option.new(attribute, self, [ENV, configuration_settings], options, &block)
89
90
 
90
91
  @attributes[option.name] = option
91
92
 
data/rake_helpers.gemspec CHANGED
@@ -2,11 +2,11 @@
2
2
 
3
3
  Gem::Specification.new do |s|
4
4
  s.name = %q{rake_helpers}
5
- s.version = "0.0.6"
5
+ s.version = "0.0.7"
6
6
 
7
7
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
8
  s.authors = ["moneypools"]
9
- s.date = %q{2009-07-16}
9
+ s.date = %q{2009-08-18}
10
10
  s.email = %q{support@mymoneypools.com}
11
11
  s.files = [
12
12
  ".gitignore",
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: moneypools-rake_helpers
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.6
4
+ version: 0.0.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - moneypools
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2009-07-16 00:00:00 -07:00
12
+ date: 2009-08-18 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies: []
15
15
 
@@ -39,6 +39,7 @@ files:
39
39
  - tasks/rspec.rake
40
40
  has_rdoc: false
41
41
  homepage: http://github.com/moneypools/rake_helpers
42
+ licenses:
42
43
  post_install_message:
43
44
  rdoc_options:
44
45
  - --charset=UTF-8
@@ -59,7 +60,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
59
60
  requirements: []
60
61
 
61
62
  rubyforge_project:
62
- rubygems_version: 1.2.0
63
+ rubygems_version: 1.3.5
63
64
  signing_key:
64
65
  specification_version: 3
65
66
  summary: Some extensions to sprout