r3_plugin_toolbox 0.3.7 → 0.3.8
Sign up to get free protection for your applications and to get access to all the features.
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.3.
|
1
|
+
0.3.8
|
@@ -23,7 +23,7 @@ module Rails3
|
|
23
23
|
|
24
24
|
methods_included? module_const.instance_methods
|
25
25
|
rescue
|
26
|
-
@cause = ", but the extension module wasn't found"
|
26
|
+
@cause = ", but the extension module #{@rails_const} wasn't found"
|
27
27
|
false
|
28
28
|
end
|
29
29
|
end
|
@@ -43,7 +43,6 @@ module Rails3
|
|
43
43
|
end
|
44
44
|
|
45
45
|
def methods_included? methods
|
46
|
-
@diff_methods = base_class_methods - methods
|
47
46
|
(base_class_methods & methods) == methods
|
48
47
|
end
|
49
48
|
|
@@ -52,7 +51,7 @@ module Rails3
|
|
52
51
|
end
|
53
52
|
|
54
53
|
def failure_message
|
55
|
-
"Expected the rails class #{rails_const_name} to be extended with the methods in #{bad_const}#{cause}
|
54
|
+
"Expected the rails class #{rails_const_name} to be extended with the methods in #{bad_const}#{cause}"
|
56
55
|
end
|
57
56
|
|
58
57
|
def negative_failure_message
|
data/r3_plugin_toolbox.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{r3_plugin_toolbox}
|
8
|
-
s.version = "0.3.
|
8
|
+
s.version = "0.3.8"
|
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-09-
|
12
|
+
s.date = %q{2010-09-26}
|
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 = [
|
@@ -40,23 +40,21 @@ describe Rails3::Plugin::Extender do
|
|
40
40
|
extend_from_module Helper::View, :panel, :window
|
41
41
|
extend_with Helper::View::Button, Helper::View::Form
|
42
42
|
end
|
43
|
+
|
44
|
+
extend_rails :controller do
|
45
|
+
extend_from_module Helper::View, :panel
|
46
|
+
end
|
43
47
|
end
|
44
48
|
end
|
45
49
|
|
46
|
-
# after_init :view do |view|
|
47
|
-
# view.should be_extended_with Helper::View, :panel, :window, :button, :form
|
48
|
-
# end
|
49
|
-
|
50
|
-
|
51
50
|
it "should extend Action View" do
|
52
51
|
after_init :view do
|
53
52
|
puts "View initialized!"
|
54
53
|
|
55
54
|
:view.should be_extended_with Helper::View, :panel, :window, :button, :form
|
56
55
|
:view.should_not be_extended_with Helper::View, :unknown
|
57
|
-
|
58
|
-
|
59
|
-
# :view.should be_extended_with Helper::View, :unknown
|
56
|
+
|
57
|
+
lambda { :view.should be_extended_with Helper::View, :unknown }.should raise_error
|
60
58
|
end
|
61
59
|
|
62
60
|
init_app_railties :minimal, :view
|
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
|
+
- 8
|
9
|
+
version: 0.3.8
|
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-09-
|
17
|
+
date: 2010-09-26 00:00:00 +02:00
|
18
18
|
default_executable:
|
19
19
|
dependencies:
|
20
20
|
- !ruby/object:Gem::Dependency
|