neorails-view_fu 0.3.20080707 → 0.4.20080711

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/README CHANGED
@@ -4,6 +4,15 @@ ViewFu
4
4
  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.
5
5
 
6
6
 
7
+ Maintainer Info
8
+ ======
9
+
10
+ Tyler Crocker
11
+ NeoRails.com
12
+
13
+ Looking for *the one* awesome rails developer to add to your project? I may be available to help out. Contact me at neorails@gmail.com.
14
+
15
+
7
16
  ViewFu HTML Helpers
8
17
  =======
9
18
  ViewFu provides helpers for commonly used html elements
@@ -126,4 +135,11 @@ meta_description(val)
126
135
  set the page meta description
127
136
 
128
137
 
138
+ More Plugins
139
+ ======
140
+
141
+ If you like ViewFu, you'll *love* FormFu. It provides a beautiful way to generate tableless Rails html forms. Works just like form_for, except it'll generate the entire XHTML (label, wrapper, validation message, etc).
142
+ https://github.com/neorails/form_fu
143
+
144
+
129
145
  Copyright (c) 2008 NeoRails.com, released under the MIT license
@@ -11,6 +11,11 @@ module ViewFu
11
11
  "<hr />"
12
12
  end
13
13
 
14
+ # Writes a nonbreaking space
15
+ def nbsp
16
+ "&nbsp;"
17
+ end
18
+
14
19
  # Writes an hr space tag
15
20
  def space
16
21
  "<hr class='space' />"
@@ -30,6 +35,10 @@ module ViewFu
30
35
  end
31
36
  end
32
37
 
38
+ def current_year
39
+ Time.now.strftime("%Y")
40
+ end
41
+
33
42
  # Writes a clear div tag
34
43
  def clear(direction = nil)
35
44
  clear_tag(:div, direction)
@@ -70,6 +79,7 @@ module ViewFu
70
79
  {}
71
80
  end
72
81
  end
82
+ alias :hidden_if :hide_if
73
83
 
74
84
  # Return a hidden attribute hash if a condition evaluates to false
75
85
  def hide_unless(condition)
@@ -79,6 +89,8 @@ module ViewFu
79
89
  {}
80
90
  end
81
91
  end
92
+ alias :hidden_unless :hide_if
93
+
82
94
 
83
95
  # Wrap a delete link
84
96
  def delete_link(*args)
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.3.20080707'
4
- s.date = '2008-07-07'
3
+ s.version = '0.4.20080711'
4
+ s.date = '2008-07-11'
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."
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.3.20080707
4
+ version: 0.4.20080711
5
5
  platform: ruby
6
6
  authors:
7
7
  - Tyler Crocker
@@ -10,7 +10,7 @@ autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
12
 
13
- date: 2008-07-07 00:00:00 -07:00
13
+ date: 2008-07-11 00:00:00 -07:00
14
14
  default_executable:
15
15
  dependencies:
16
16
  - !ruby/object:Gem::Dependency