r3_plugin_toolbox 0.3.10 → 0.3.11

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/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.10
1
+ 0.3.11
@@ -42,7 +42,13 @@ module Rails3
42
42
  end
43
43
  end
44
44
 
45
- module Assist
45
+ module Assist
46
+ def configs &block
47
+ if block
48
+ config.instance_eval(&block)
49
+ end
50
+ end
51
+
46
52
  def set_test_framework name
47
53
  config.generators.test_framework name
48
54
  end
@@ -5,7 +5,7 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{r3_plugin_toolbox}
8
- s.version = "0.3.10"
8
+ s.version = "0.3.11"
9
9
 
10
10
  s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
11
11
  s.authors = ["Kristian Mandrup"]
@@ -6,6 +6,13 @@ describe Rails3::Engine do
6
6
  with_engine :my_engine do |e|
7
7
  e.add_locales_dir 'my_locales'
8
8
  e.set_orm :active_record
9
+
10
+ e.config.wow = 'super'
11
+ # set custom config object
12
+ e.configs do
13
+ greeting = 'hello'
14
+ saying = 'hi'
15
+ end
9
16
  end
10
17
 
11
18
  # Initialize the rails application
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 10
9
- version: 0.3.10
8
+ - 11
9
+ version: 0.3.11
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kristian Mandrup