rlayout 0.3.2 → 0.3.3
Sign up to get free protection for your applications and to get access to all the features.
- data/CHANGELOG +6 -2
- data/README +1 -1
- data/Rakefile +1 -1
- data/lib/rlayout/template.rb +6 -0
- metadata +2 -2
data/CHANGELOG
CHANGED
@@ -1,6 +1,10 @@
|
|
1
|
-
Changes in version 0.3.3 (2008-06-
|
1
|
+
Changes in version 0.3.3 (2008-06-23)
|
2
2
|
-------------------------------------
|
3
|
-
|
3
|
+
solve the duplicated render due to nest tag, such as password_tag use text_field_tag
|
4
|
+
|
5
|
+
Changes in version 0.3.2 (2008-06-20)
|
6
|
+
-------------------------------------
|
7
|
+
fix a bugs occured when no options pass in none-instance tag
|
4
8
|
seperate function call to let user choose what he/she need
|
5
9
|
|
6
10
|
Changes in version 0.3.1 (2008-06-16)
|
data/README
CHANGED
data/Rakefile
CHANGED
data/lib/rlayout/template.rb
CHANGED
@@ -66,7 +66,10 @@ class ActionView::Helpers::InstanceTag
|
|
66
66
|
alias_method(new_method, m.to_sym) unless method_defined?(new_method)
|
67
67
|
class_eval %{
|
68
68
|
def #{m}(*args)
|
69
|
+
return #{m}#{Rlayout::TemplateUtil::WITH_TEMPLATE}(*args) if @is_enter
|
70
|
+
@is_enter = true
|
69
71
|
str = #{m}#{Rlayout::TemplateUtil::WITH_TEMPLATE}(*args)
|
72
|
+
@is_enter = nil
|
70
73
|
context = {}
|
71
74
|
context[:input_type] = @tag_type_4template
|
72
75
|
context[:name] = @object_name
|
@@ -106,6 +109,8 @@ module ActionView::Helpers::FormTagHelper
|
|
106
109
|
alias_method(new_method, m.to_sym) unless method_defined?(new_method)
|
107
110
|
class_eval %{
|
108
111
|
def #{m}(*args)
|
112
|
+
return #{m}#{Rlayout::TemplateUtil::WITH_TEMPLATE}(*args) if @is_enter
|
113
|
+
@is_enter = true
|
109
114
|
options = args[-1].is_a?(Hash) ? args[-1] : {}
|
110
115
|
name = #{['submit', 'image'].include?(m) ? '""' : 'args[0] ||= ""'}
|
111
116
|
context = {}
|
@@ -116,6 +121,7 @@ module ActionView::Helpers::FormTagHelper
|
|
116
121
|
context[:method_name] = name
|
117
122
|
context[:hidden] = options.delete('hidden') || {}
|
118
123
|
str = #{m}#{Rlayout::TemplateUtil::WITH_TEMPLATE}(*args)
|
124
|
+
@is_enter = nil
|
119
125
|
context[:options] = options.stringify_keys!
|
120
126
|
Rlayout::TemplateUtil.round_tag('#{$1}', context, str, *args)
|
121
127
|
end
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rlayout
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.3.
|
4
|
+
version: 0.3.3
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Leon Li
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2008-06-
|
12
|
+
date: 2008-06-25 00:00:00 +08:00
|
13
13
|
default_executable:
|
14
14
|
dependencies: []
|
15
15
|
|