ruby_reportable 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.
@@ -4,6 +4,7 @@ module RubyReportable
4
4
  @options = {}
5
5
  @options[:key] = name.to_s.downcase.gsub(' ', '_').gsub(/[^a-zA-Z_]+/, '')
6
6
  @options[:name] = name
7
+ @options[:default] = nil
7
8
  @options[:require] = false
8
9
  end
9
10
 
@@ -43,5 +44,9 @@ module RubyReportable
43
44
  def logic(&block)
44
45
  self[:logic] = block
45
46
  end
47
+
48
+ def default(&block)
49
+ self[:default] = block
50
+ end
46
51
  end
47
52
  end
@@ -1,3 +1,3 @@
1
1
  module RubyReportable
2
- VERSION = "0.1.0"
2
+ VERSION = "0.1.1"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: ruby_reportable
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.0
4
+ version: 0.1.1
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-08-15 00:00:00.000000000 Z
12
+ date: 2012-08-22 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: rspec