neorails-view_fu 0.8 → 0.9

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/lib/view_fu.rb CHANGED
@@ -1,7 +1,9 @@
1
1
  require "view_fu/tag_helper"
2
2
  require "view_fu/meta_helper"
3
+ require "view_fu/controller_extensions"
3
4
  ActionView::Base.send :include, ViewFu::TagHelper
4
5
  ActionView::Base.send :include, ViewFu::MetaHelper
6
+ ActionController::Base.send :include, ViewFu::ControllerExtensions
5
7
 
6
8
  require "browser_detect/helper"
7
9
  ActionView::Base.send :include, BrowserDetect::Helper
@@ -13,4 +15,4 @@ require "javascripter/helper"
13
15
  ActionView::Base.send :include, Javascripter::Helper
14
16
 
15
17
  require "styler/helper"
16
- ActionView::Base.send :include, Styler::Helper
18
+ ActionView::Base.send :include, Styler::Helper
@@ -0,0 +1,8 @@
1
+ module ViewFu
2
+ module ControllerExtensions
3
+ # allows us to say "helpers." anywhere in our controllers
4
+ def helpers
5
+ self.class.helpers
6
+ end
7
+ end
8
+ end
data/view_fu.gemspec CHANGED
@@ -1,7 +1,7 @@
1
1
  Gem::Specification.new do |s|
2
2
  s.name = 'view_fu'
3
- s.version = '0.8'
4
- s.date = '2008-08-9'
3
+ s.version = '0.9'
4
+ s.date = '2008-08-10'
5
5
 
6
6
  s.summary = "Lots of handy Rails View helpers. Includes the functionality of Headliner, Styler, and Javascripter"
7
7
  s.description = "ViewFu is a Rails plugin that provides all the miscellaneous View tasks. It's a combination of the functionality of Styler, Javascripter, and Headline (from Patrick Crowley, the.railsi.st) - along with additional tweaks such as providing commonly used View Helpers Methods."
@@ -29,6 +29,7 @@ Gem::Specification.new do |s|
29
29
  "lib/styler/README",
30
30
  "lib/view_fu/meta_helper.rb",
31
31
  "lib/view_fu/tag_helper.rb",
32
+ "lib/view_fu/controller_extensions.rb",
32
33
  "lib/view_fu.rb",
33
34
  "rails/init.rb",
34
35
  "view_fu.gemspec"]
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: neorails-view_fu
3
3
  version: !ruby/object:Gem::Version
4
- version: "0.8"
4
+ version: "0.9"
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Crocker
@@ -9,7 +9,7 @@ autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
11
 
12
- date: 2008-08-09 00:00:00 -07:00
12
+ date: 2008-08-10 00:00:00 -07:00
13
13
  default_executable:
14
14
  dependencies:
15
15
  - !ruby/object:Gem::Dependency
@@ -43,6 +43,7 @@ files:
43
43
  - lib/styler/README
44
44
  - lib/view_fu/meta_helper.rb
45
45
  - lib/view_fu/tag_helper.rb
46
+ - lib/view_fu/controller_extensions.rb
46
47
  - lib/view_fu.rb
47
48
  - rails/init.rb
48
49
  - view_fu.gemspec