rails3_plugin_toolbox 0.3.3 → 0.3.4
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/README.markdown +10 -6
- data/VERSION +1 -1
- data/lib/plugin_toolbox/rspec/config.rb +5 -2
- data/rails3_plugin_toolbox.gemspec +2 -2
- data/spec/plugin_toolbox/extend_view_content_spec.rb +1 -3
- metadata +3 -3
data/README.markdown
CHANGED
@@ -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
|
-
|
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
|
-
|
142
|
+
init_app_railties :minimal, :view
|
139
143
|
end
|
140
144
|
</pre>
|
141
145
|
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.4
|
@@ -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.
|
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-
|
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 = [
|
metadata
CHANGED
@@ -5,8 +5,8 @@ version: !ruby/object:Gem::Version
|
|
5
5
|
segments:
|
6
6
|
- 0
|
7
7
|
- 3
|
8
|
-
-
|
9
|
-
version: 0.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-
|
17
|
+
date: 2010-08-24 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|