satis 2.1.9 → 2.1.10
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/lib/satis/forms/builder.rb +12 -12
- data/lib/satis/version.rb +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: c555864ef12ead60d3c49092fd523d24fd5f1778f5c4ad834a12e2bda16d7c67
|
4
|
+
data.tar.gz: b0347be5e202f0fc3843b994379b42f7f96b3b5ac5f2efef34d5433eba35a959
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: a5082b696cc734bd44c6f1ad497135d8d64512cd8964fb778dd6377fbea08b62c78be0c42ced5971e9196f1078c8c457154251fcdbd980116f9d98750112e12d
|
7
|
+
data.tar.gz: c81ac8c1b03041cf1e31464339f98de4dd93783ab3f6d9d1beac95a7dce7516460ac044b14817a2e67d76cd3558fc117fec204410a91ee510e4f004fe9fbffa1
|
data/lib/satis/forms/builder.rb
CHANGED
@@ -27,13 +27,13 @@ module Satis
|
|
27
27
|
end
|
28
28
|
|
29
29
|
# Regular input
|
30
|
-
def input(method, options = {}, &)
|
30
|
+
def input(method, options = {}, &block)
|
31
31
|
@form_options = options
|
32
32
|
|
33
33
|
options[:input_html] ||= {}
|
34
34
|
options[:input_html][:disabled] = options.delete(:disabled)
|
35
35
|
|
36
|
-
send(input_type_for(method, options), method, options, &)
|
36
|
+
send(input_type_for(method, options), method, options, &block)
|
37
37
|
end
|
38
38
|
|
39
39
|
# NOTE: TDG - seems to be overwritten below
|
@@ -44,14 +44,14 @@ module Satis
|
|
44
44
|
# end
|
45
45
|
|
46
46
|
# A codemirror editor, backed by a text-area
|
47
|
-
def editor(method, options = {}, &)
|
47
|
+
def editor(method, options = {}, &block)
|
48
48
|
@form_options = options
|
49
49
|
|
50
|
-
editor_input(method, options, &)
|
50
|
+
editor_input(method, options, &block)
|
51
51
|
end
|
52
52
|
|
53
53
|
# Simple-form like association
|
54
|
-
def association(name, options, &)
|
54
|
+
def association(name, options, &block)
|
55
55
|
@form_options = options
|
56
56
|
|
57
57
|
@association = name
|
@@ -59,7 +59,7 @@ module Satis
|
|
59
59
|
|
60
60
|
method = reflection.join_foreign_key
|
61
61
|
|
62
|
-
send(input_type_for(method, options), method, options, &)
|
62
|
+
send(input_type_for(method, options), method, options, &block)
|
63
63
|
end
|
64
64
|
|
65
65
|
alias_method :rails_fields_for, :fields_for
|
@@ -73,7 +73,7 @@ module Satis
|
|
73
73
|
# printers_form.input :name
|
74
74
|
# end
|
75
75
|
# end
|
76
|
-
def fields_for(*args, &)
|
76
|
+
def fields_for(*args, &block)
|
77
77
|
options = args.extract_options!
|
78
78
|
name = args.first
|
79
79
|
template_object = args.second
|
@@ -121,7 +121,7 @@ module Satis
|
|
121
121
|
end
|
122
122
|
safe_join [
|
123
123
|
invalid_feedback,
|
124
|
-
rails_fields_for(*args, options, &)
|
124
|
+
rails_fields_for(*args, options, &block)
|
125
125
|
].compact
|
126
126
|
end
|
127
127
|
end
|
@@ -137,17 +137,17 @@ module Satis
|
|
137
137
|
end
|
138
138
|
|
139
139
|
# A switch backed by a hidden value
|
140
|
-
def switch(method, options = {}, &)
|
140
|
+
def switch(method, options = {}, &block)
|
141
141
|
@form_options = options
|
142
142
|
|
143
|
-
switch_input(method, options, &)
|
143
|
+
switch_input(method, options, &block)
|
144
144
|
end
|
145
145
|
|
146
146
|
# A hidden input
|
147
|
-
def hidden(method, options = {}, &)
|
147
|
+
def hidden(method, options = {}, &block)
|
148
148
|
@form_options = options
|
149
149
|
|
150
|
-
hidden_input(method, options, &)
|
150
|
+
hidden_input(method, options, &block)
|
151
151
|
end
|
152
152
|
|
153
153
|
# Non public
|
data/lib/satis/version.rb
CHANGED
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: satis
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.
|
4
|
+
version: 2.1.10
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Tom de Grunt
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2024-04-
|
11
|
+
date: 2024-04-29 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: browser
|