zafu 0.8.4 → 0.8.5
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/History.txt +6 -0
- data/lib/zafu/info.rb +1 -1
- data/lib/zafu/process/ajax.rb +1 -1
- data/lib/zafu/process/context.rb +10 -2
- data/zafu.gemspec +3 -16
- metadata +6 -16
data/History.txt
CHANGED
data/lib/zafu/info.rb
CHANGED
data/lib/zafu/process/ajax.rb
CHANGED
@@ -232,7 +232,7 @@ module Zafu
|
|
232
232
|
end
|
233
233
|
|
234
234
|
# Expand 'add' block
|
235
|
-
out wrap("#{expand_with(:onclick=>"[\"#{node.dom_prefix}_add\", \"#{node.dom_prefix}
|
235
|
+
out wrap("#{expand_with(:onclick=>"[\"#{node.dom_prefix}_add\", \"#{node.dom_prefix}_0\"].each(Element.toggle);#{focus}return false;")}")
|
236
236
|
|
237
237
|
klass = @context[:klass] || node.single_class
|
238
238
|
|
data/lib/zafu/process/context.rb
CHANGED
@@ -24,8 +24,16 @@ module Zafu
|
|
24
24
|
if alt_class = @params[:alt_class]
|
25
25
|
alt_class = RubyLess.translate_string(self, alt_class)
|
26
26
|
alt_test = @params[:alt_reverse] == 'true' ? "(#{var}_max_index - #{var}_index) % 2 != 0" : "#{var}_index % 2 != 0"
|
27
|
-
|
28
|
-
|
27
|
+
|
28
|
+
alt_var = get_var_name('set_var', 'alt_class')
|
29
|
+
set_context_var('set_var', 'alt_class', RubyLess::TypedString.new(alt_var, :class => String))
|
30
|
+
out "<% #{alt_var} = #{alt_test} ? #{alt_class} : '' %>"
|
31
|
+
|
32
|
+
if @markup.tag
|
33
|
+
@markup.append_dyn_param(:class, "<%= #{alt_var} %>")
|
34
|
+
else
|
35
|
+
# Just declare 'alt_class'
|
36
|
+
end
|
29
37
|
end
|
30
38
|
else
|
31
39
|
out "<% #{node}.each do |#{var}| %>"
|
data/zafu.gemspec
CHANGED
@@ -5,11 +5,11 @@
|
|
5
5
|
|
6
6
|
Gem::Specification.new do |s|
|
7
7
|
s.name = %q{zafu}
|
8
|
-
s.version = "0.8.
|
8
|
+
s.version = "0.8.5"
|
9
9
|
|
10
10
|
s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
|
11
11
|
s.authors = ["Gaspard Bucher"]
|
12
|
-
s.date = %q{2011-
|
12
|
+
s.date = %q{2011-11-30}
|
13
13
|
s.description = %q{Provides a powerful templating language based on xhtml for rails}
|
14
14
|
s.email = %q{gaspard@teti.ch}
|
15
15
|
s.extra_rdoc_files = [
|
@@ -66,21 +66,8 @@ Gem::Specification.new do |s|
|
|
66
66
|
]
|
67
67
|
s.homepage = %q{http://zenadmin.org/zafu}
|
68
68
|
s.require_paths = ["lib"]
|
69
|
-
s.rubygems_version = %q{1.6.
|
69
|
+
s.rubygems_version = %q{1.6.2}
|
70
70
|
s.summary = %q{Provides a powerful templating language based on xhtml for rails}
|
71
|
-
s.test_files = [
|
72
|
-
"test/markup_test.rb",
|
73
|
-
"test/mock/classes.rb",
|
74
|
-
"test/mock/core_ext.rb",
|
75
|
-
"test/mock/params.rb",
|
76
|
-
"test/mock/process.rb",
|
77
|
-
"test/mock/test_compiler.rb",
|
78
|
-
"test/node_context_test.rb",
|
79
|
-
"test/ordered_hash_test.rb",
|
80
|
-
"test/ruby_less_test.rb",
|
81
|
-
"test/test_helper.rb",
|
82
|
-
"test/zafu_test.rb"
|
83
|
-
]
|
84
71
|
|
85
72
|
if s.respond_to? :specification_version then
|
86
73
|
s.specification_version = 3
|
metadata
CHANGED
@@ -1,13 +1,13 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: zafu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
hash:
|
4
|
+
hash: 53
|
5
5
|
prerelease:
|
6
6
|
segments:
|
7
7
|
- 0
|
8
8
|
- 8
|
9
|
-
-
|
10
|
-
version: 0.8.
|
9
|
+
- 5
|
10
|
+
version: 0.8.5
|
11
11
|
platform: ruby
|
12
12
|
authors:
|
13
13
|
- Gaspard Bucher
|
@@ -15,7 +15,7 @@ autorequire:
|
|
15
15
|
bindir: bin
|
16
16
|
cert_chain: []
|
17
17
|
|
18
|
-
date: 2011-
|
18
|
+
date: 2011-11-30 00:00:00 +01:00
|
19
19
|
default_executable:
|
20
20
|
dependencies:
|
21
21
|
- !ruby/object:Gem::Dependency
|
@@ -154,15 +154,5 @@ rubygems_version: 1.6.2
|
|
154
154
|
signing_key:
|
155
155
|
specification_version: 3
|
156
156
|
summary: Provides a powerful templating language based on xhtml for rails
|
157
|
-
test_files:
|
158
|
-
|
159
|
-
- test/mock/classes.rb
|
160
|
-
- test/mock/core_ext.rb
|
161
|
-
- test/mock/params.rb
|
162
|
-
- test/mock/process.rb
|
163
|
-
- test/mock/test_compiler.rb
|
164
|
-
- test/node_context_test.rb
|
165
|
-
- test/ordered_hash_test.rb
|
166
|
-
- test/ruby_less_test.rb
|
167
|
-
- test/test_helper.rb
|
168
|
-
- test/zafu_test.rb
|
157
|
+
test_files: []
|
158
|
+
|