r3_plugin_toolbox 0.3.12 → 0.3.13
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.13
|
@@ -1,5 +1,6 @@
|
|
1
1
|
require 'r3_plugin_toolbox/extender/util'
|
2
2
|
require 'r3_plugin_toolbox/extender/load_handler'
|
3
|
+
require 'r3_plugin_toolbox/macro'
|
3
4
|
|
4
5
|
module Rails3
|
5
6
|
class Plugin
|
@@ -12,11 +13,16 @@ module Rails3
|
|
12
13
|
end
|
13
14
|
end
|
14
15
|
|
16
|
+
def with_configuration &block
|
17
|
+
if block
|
18
|
+
block.arity < 1 ? Rails.configuration.instance_eval(&block) : block.call(Rails.configuration)
|
19
|
+
end
|
20
|
+
end
|
21
|
+
|
15
22
|
# load after: [:initialize, :configuration, :eager_load]
|
16
23
|
def extend_rails(type, &block)
|
17
24
|
on_load(type, &block)
|
18
25
|
end
|
19
|
-
|
20
26
|
|
21
27
|
# convenience method to extend with multiple modules all within the same base module
|
22
28
|
def extend_from_module base_name, *module_names, options
|
File without changes
|
data/r3_plugin_toolbox.gemspec
CHANGED
@@ -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.
|
8
|
+
s.version = "0.3.13"
|
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"]
|
@@ -30,10 +30,10 @@ Gem::Specification.new do |s|
|
|
30
30
|
"lib/r3_plugin_toolbox/extender.rb",
|
31
31
|
"lib/r3_plugin_toolbox/extender/load_handler.rb",
|
32
32
|
"lib/r3_plugin_toolbox/extender/util.rb",
|
33
|
+
"lib/r3_plugin_toolbox/macro.rb",
|
33
34
|
"lib/r3_plugin_toolbox/main.rb",
|
34
35
|
"lib/r3_plugin_toolbox/railtie.rb",
|
35
36
|
"lib/r3_plugin_toolbox/rspec/config.rb",
|
36
|
-
"lib/r3_plugin_toolbox/rspec/macro.rb",
|
37
37
|
"lib/r3_plugin_toolbox/rspec/matchers/be_extended_with.rb",
|
38
38
|
"lib/r3_plugin_toolbox/shortcuts.rb",
|
39
39
|
"log/development.log",
|
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
|
+
- 13
|
9
|
+
version: 0.3.13
|
10
10
|
platform: ruby
|
11
11
|
authors:
|
12
12
|
- Kristian Mandrup
|
@@ -87,10 +87,10 @@ files:
|
|
87
87
|
- lib/r3_plugin_toolbox/extender.rb
|
88
88
|
- lib/r3_plugin_toolbox/extender/load_handler.rb
|
89
89
|
- lib/r3_plugin_toolbox/extender/util.rb
|
90
|
+
- lib/r3_plugin_toolbox/macro.rb
|
90
91
|
- lib/r3_plugin_toolbox/main.rb
|
91
92
|
- lib/r3_plugin_toolbox/railtie.rb
|
92
93
|
- lib/r3_plugin_toolbox/rspec/config.rb
|
93
|
-
- lib/r3_plugin_toolbox/rspec/macro.rb
|
94
94
|
- lib/r3_plugin_toolbox/rspec/matchers/be_extended_with.rb
|
95
95
|
- lib/r3_plugin_toolbox/shortcuts.rb
|
96
96
|
- log/development.log
|