topherfangio-inherit_views 1.0.1 → 1.0.2
Sign up to get free protection for your applications and to get access to all the features.
- data/{lib → inherit_views}/inherit_views.rb +1 -1
- data/inherit_views.gemspec +3 -3
- data/init.rb +2 -5
- data/rails/init.rb +5 -0
- metadata +4 -3
data/inherit_views.gemspec
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
Gem::Specification.new do |s|
|
2
2
|
s.name = %q{inherit_views}
|
3
|
-
s.version = '1.0.
|
3
|
+
s.version = '1.0.2'
|
4
4
|
|
5
5
|
s.date = %q{2009-06-18}
|
6
6
|
s.summary = %q{Allow rails views to inherit from each other.}
|
@@ -10,8 +10,8 @@ Gem::Specification.new do |s|
|
|
10
10
|
s.homepage = "http://github.com/topherfangio/inherit_views/tree/master"
|
11
11
|
|
12
12
|
s.has_rdoc = true
|
13
|
-
s.require_paths = ["
|
13
|
+
s.require_paths = ["inherit_views"]
|
14
14
|
|
15
|
-
s.files = ["garlic.rb", "History.txt", "inherit_views.gemspec", "init.rb", "License.txt", "Rakefile", "README.rdoc", "Todo.txt", "
|
15
|
+
s.files = ["garlic.rb", "History.txt", "inherit_views.gemspec", "init.rb", "License.txt", "Rakefile", "README.rdoc", "Todo.txt", "inherit_views/inherit_views.rb", "rails/init.rb", "spec/controllers/a_controller_spec.rb", "spec/controllers/c_controller_spec.rb", "spec/controllers/b_controller_spec.rb", "spec/controllers/normal_controller_spec.rb", "spec/controllers/d_controller_spec.rb", "spec/spec_helper.rb", "spec/app.rb", "spec/mailers/mailer_spec.rb", "spec/views_for_specs/b/partial_in_b.html.erb", "spec/views_for_specs/b/bad_render_parent.html.erb", "spec/views_for_specs/b/partial_in_bc.html.erb", "spec/views_for_specs/b/in_abc.html.erb", "spec/views_for_specs/b/partial_render_parent.html.erb", "spec/views_for_specs/b/_partial_in_b.html.erb", "spec/views_for_specs/b/_partial_in_bc.html.erb", "spec/views_for_specs/b/collection_in_bc.html.erb", "spec/views_for_specs/b/in_b.html.erb", "spec/views_for_specs/b/in_ab.html.erb", "spec/views_for_specs/b/_partial_render_parent.html.erb", "spec/views_for_specs/b/render_parent.html.erb", "spec/views_for_specs/normal_mailer/email.erb", "spec/views_for_specs/normal_mailer/_partial.erb", "spec/views_for_specs/a/render_non_existent_partial.html.erb", "spec/views_for_specs/a/in_a.html.erb", "spec/views_for_specs/a/in_abc.html.erb", "spec/views_for_specs/a/in_ab.html.erb", "spec/views_for_specs/a/_partial_render_parent.html.erb", "spec/views_for_specs/a/render_parent.html.erb", "spec/views_for_specs/normal/partial_from_c.html.erb", "spec/views_for_specs/c/in_abc.html.erb", "spec/views_for_specs/c/_partial_in_bc.html.erb", "spec/views_for_specs/c/_partial_render_parent.html.erb", "spec/views_for_specs/c/in_c.html.erb", "spec/views_for_specs/c/render_parent.html.erb", "spec/views_for_specs/inheriting_mailer/email.erb"]
|
16
16
|
|
17
17
|
end
|
data/init.rb
CHANGED
@@ -1,5 +1,2 @@
|
|
1
|
-
|
2
|
-
|
3
|
-
defined?(ActionController) && ActionController::Base.extend(InheritViews::ActMethod)
|
4
|
-
defined?(ActionMailer) && ActionMailer::Base.extend(InheritViews::ActMethod)
|
5
|
-
defined?(ActionView) && ActionView::Base.send(:include, InheritViews::ActionView)
|
1
|
+
puts "Running init.rb..."
|
2
|
+
require File.dirname(__FILE__) + "/rails/init"
|
data/rails/init.rb
ADDED
@@ -0,0 +1,5 @@
|
|
1
|
+
require 'inherit_views'
|
2
|
+
|
3
|
+
defined?(ActionController) && ActionController::Base.extend(InheritViews::ActMethod)
|
4
|
+
defined?(ActionMailer) && ActionMailer::Base.extend(InheritViews::ActMethod)
|
5
|
+
defined?(ActionView) && ActionView::Base.send(:include, InheritViews::ActionView)
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: topherfangio-inherit_views
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.2
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Ian W. White
|
@@ -31,7 +31,8 @@ files:
|
|
31
31
|
- Rakefile
|
32
32
|
- README.rdoc
|
33
33
|
- Todo.txt
|
34
|
-
-
|
34
|
+
- inherit_views/inherit_views.rb
|
35
|
+
- rails/init.rb
|
35
36
|
- spec/controllers/a_controller_spec.rb
|
36
37
|
- spec/controllers/c_controller_spec.rb
|
37
38
|
- spec/controllers/b_controller_spec.rb
|
@@ -73,7 +74,7 @@ post_install_message:
|
|
73
74
|
rdoc_options: []
|
74
75
|
|
75
76
|
require_paths:
|
76
|
-
-
|
77
|
+
- inherit_views
|
77
78
|
required_ruby_version: !ruby/object:Gem::Requirement
|
78
79
|
requirements:
|
79
80
|
- - ">="
|