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 CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA256:
3
- metadata.gz: dc6031f7746bd883c8cd678ce58740dc3aad06c3a092a6da92bac2c92d3c0d18
4
- data.tar.gz: ba326c73a8ec4b5595c11a4ffe038c3af707a483ace1953fb745da46d11c20c0
3
+ metadata.gz: c555864ef12ead60d3c49092fd523d24fd5f1778f5c4ad834a12e2bda16d7c67
4
+ data.tar.gz: b0347be5e202f0fc3843b994379b42f7f96b3b5ac5f2efef34d5433eba35a959
5
5
  SHA512:
6
- metadata.gz: 923734b20873685e94daf82265875d5d28b0366c7cee5e3b64e7eacc6b0b5051ebb119ca53e2cca8b71a621a6a2bd8a4b88e88e07dec94fab380e88a60af559c
7
- data.tar.gz: 4b6c5bdd8f2ef8dfc27e2efaaadce747eea5eec3d6464a4c2aa8623d80956aecf4310f549dab4db6b59901965804cfd2b20b640608793e1a2ea44db362fcccbd
6
+ metadata.gz: a5082b696cc734bd44c6f1ad497135d8d64512cd8964fb778dd6377fbea08b62c78be0c42ced5971e9196f1078c8c457154251fcdbd980116f9d98750112e12d
7
+ data.tar.gz: c81ac8c1b03041cf1e31464339f98de4dd93783ab3f6d9d1beac95a7dce7516460ac044b14817a2e67d76cd3558fc117fec204410a91ee510e4f004fe9fbffa1
@@ -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
@@ -1,3 +1,3 @@
1
1
  module Satis
2
- VERSION = "2.1.9"
2
+ VERSION = "2.1.10"
3
3
  end
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.9
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-27 00:00:00.000000000 Z
11
+ date: 2024-04-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: browser