sequent-sinatra 0.1.2 → 0.1.3
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/sequent-sinatra/form.rb +1 -3
- data/lib/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: d4de24041294b04ecf9a92547e74e53a476ab37c
|
4
|
+
data.tar.gz: 0c1c4e5ce725830548554ea59e012f12aedea973
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: d6703e46cf329713855289c5e45873b3ac894d106ec28945b48801fba6f7085e5c3098572ff1f63f7864f8dc547b49448e97866fa3c5b39a37321017f7058f9e
|
7
|
+
data.tar.gz: 219ac73516d0956b3fde4d32f5cc2e695265ea244963a617c5a98801e73c648c608deb1f015a37130f3ff19c33ff09dd2bc41f49df79856279399832665f506d
|
data/lib/sequent-sinatra/form.rb
CHANGED
@@ -43,7 +43,6 @@ module Sequent
|
|
43
43
|
out << '</form>'
|
44
44
|
buf = @context.instance_variable_get("@_out_buf")
|
45
45
|
buf << out
|
46
|
-
|
47
46
|
end
|
48
47
|
|
49
48
|
def fieldset(obj_name, options = {}, &block)
|
@@ -62,8 +61,7 @@ module Sequent
|
|
62
61
|
def erb_with_output_buffer(buf = '')
|
63
62
|
old_buffer = @context.instance_variable_get("@_out_buf")
|
64
63
|
@context.instance_variable_set "@_out_buf", buf
|
65
|
-
yield
|
66
|
-
@context.instance_variable_get("@_out_buf")
|
64
|
+
yield || @context.instance_variable_get("@_out_buf")
|
67
65
|
ensure
|
68
66
|
@context.instance_variable_set "@_out_buf", old_buffer
|
69
67
|
end
|
data/lib/version.rb
CHANGED