governor 0.5.2 → 0.5.3
Sign up to get free protection for your applications and to get access to all the features.
- data/Gemfile.lock +2 -2
- data/VERSION +1 -1
- data/governor.gemspec +2 -2
- data/lib/governor/controllers/methods.rb +5 -1
- data/lib/governor/plugin.rb +8 -0
- data/spec/rails_app/Gemfile.lock +1 -1
- metadata +4 -4
data/Gemfile.lock
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
PATH
|
2
2
|
remote: ./
|
3
3
|
specs:
|
4
|
-
governor (0.5.
|
4
|
+
governor (0.5.3)
|
5
5
|
rails (~> 3.0.5)
|
6
6
|
|
7
7
|
GEM
|
@@ -89,7 +89,7 @@ GEM
|
|
89
89
|
rspec-core (~> 2.5.0)
|
90
90
|
rspec-expectations (~> 2.5.0)
|
91
91
|
rspec-mocks (~> 2.5.0)
|
92
|
-
rspec-core (2.5.
|
92
|
+
rspec-core (2.5.2)
|
93
93
|
rspec-expectations (2.5.0)
|
94
94
|
diff-lcs (~> 1.1.2)
|
95
95
|
rspec-mocks (2.5.0)
|
data/VERSION
CHANGED
@@ -1 +1 @@
|
|
1
|
-
0.5.
|
1
|
+
0.5.3
|
data/governor.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{governor}
|
8
|
-
s.version = "0.5.
|
8
|
+
s.version = "0.5.3"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Liam Morley"]
|
12
|
-
s.date = %q{2011-05-
|
12
|
+
s.date = %q{2011-05-12}
|
13
13
|
s.description = %q{Because Blogojevich would be too tough to remember. It's a pluggable blogging system for Rails 3.}
|
14
14
|
s.email = %q{liam@carpeliam.com}
|
15
15
|
s.extra_rdoc_files = [
|
data/lib/governor/plugin.rb
CHANGED
@@ -54,6 +54,10 @@ module Governor
|
|
54
54
|
instance_exec(base, &@model_callback) if @model_callback
|
55
55
|
end
|
56
56
|
|
57
|
+
def include_in_controller(base) #:nodoc:
|
58
|
+
instance_exec(base, &@controller_callback) if @controller_callback
|
59
|
+
end
|
60
|
+
|
57
61
|
# Evaluates the block in the scope of the model. This is the equivalent of
|
58
62
|
# creating a mixin, including it within your article class and
|
59
63
|
# implementing +self.included+.
|
@@ -74,6 +78,10 @@ module Governor
|
|
74
78
|
@model_callback = block
|
75
79
|
end
|
76
80
|
|
81
|
+
def register_controller_callback(&block)
|
82
|
+
@controller_callback = block
|
83
|
+
end
|
84
|
+
|
77
85
|
# Defines mime types that this plugin responds to. These mime types will
|
78
86
|
# be passed on to the controller.
|
79
87
|
#
|
data/spec/rails_app/Gemfile.lock
CHANGED
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: governor
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 13
|
5
5
|
prerelease: false
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 5
|
9
|
-
-
|
10
|
-
version: 0.5.
|
9
|
+
- 3
|
10
|
+
version: 0.5.3
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Liam Morley
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-05-
|
18
|
+
date: 2011-05-12 00:00:00 -04:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|