rails3_plugin_toolbox 0.3.3 → 0.3.4

Sign up to get free protection for your applications and to get access to all the features.
@@ -107,15 +107,19 @@ describe "My Plugin rails extensions" do
107
107
  end
108
108
  end
109
109
 
110
- # pull in a macro that makes 'after_init' available!
111
- extend Rails3::PluginExtender::Macro
112
-
113
110
  after_init :view do
114
111
  :view.should be_extended_with Helper::View, :panel, :window, :button, :form
115
112
  :view.should_not be_extended_with Helper::View, :unknown
116
113
  end
117
-
118
- Minimal::Application.initialize!
114
+
115
+ after_init :controller do
116
+ :controller.should be_extended_with Helper::Controller, :stuff
117
+ :controller.should_not be_extended_with My::Paginator
118
+ end
119
+
120
+ # first arg is the App name, the remaining symbols are
121
+ # the identifiers for which railties to initialize
122
+ init_app_railties :minimal, :view, :controller
119
123
  end
120
124
  end
121
125
 
@@ -135,7 +139,7 @@ describe "My other Plugin rails extensions" do
135
139
  end
136
140
 
137
141
  it "should extend Action View" do
138
- Minimal::Application.initialize!
142
+ init_app_railties :minimal, :view
139
143
  end
140
144
  </pre>
141
145
 
data/VERSION CHANGED
@@ -1 +1 @@
1
- 0.3.3
1
+ 0.3.4
@@ -5,5 +5,8 @@ RSpec.configure do |config|
5
5
  config.extend Rails3::PluginExtender::Macro
6
6
  end
7
7
 
8
-
9
-
8
+ module RSpec::Core
9
+ class ExampleGroup
10
+ include Rails3::PluginExtender::Macro
11
+ end
12
+ end
@@ -5,11 +5,11 @@
5
5
 
6
6
  Gem::Specification.new do |s|
7
7
  s.name = %q{rails3_plugin_toolbox}
8
- s.version = "0.3.3"
8
+ s.version = "0.3.4"
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"]
12
- s.date = %q{2010-08-23}
12
+ s.date = %q{2010-08-24}
13
13
  s.description = %q{Provides a more intuitive DSL for Rails 3 plugin configuration and a specialized RSpec 2 matcher. Makes it much easier to develop Rails 3 plugins!}
14
14
  s.email = %q{kmandrup@gmail.com}
15
15
  s.extra_rdoc_files = [
@@ -45,9 +45,7 @@ describe Rails3::PluginExtender do
45
45
  # end
46
46
 
47
47
 
48
- it "should extend Action View" do
49
- extend Rails3::PluginExtender::Macro
50
-
48
+ it "should extend Action View" do
51
49
  after_init :view do
52
50
  puts "View initialized!"
53
51
 
metadata CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
5
5
  segments:
6
6
  - 0
7
7
  - 3
8
- - 3
9
- version: 0.3.3
8
+ - 4
9
+ version: 0.3.4
10
10
  platform: ruby
11
11
  authors:
12
12
  - Kristian Mandrup
@@ -14,7 +14,7 @@ autorequire:
14
14
  bindir: bin
15
15
  cert_chain: []
16
16
 
17
- date: 2010-08-23 00:00:00 +02:00
17
+ date: 2010-08-24 00:00:00 +02:00
18
18
  default_executable:
19
19
  dependencies:
20
20
  - !ruby/object:Gem::Dependency