active_scaffold_signaturepad 0.1.2 → 0.2.0

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: f0b8beca28b867d1c40a1590b719eacdafba3daed460964222a5ec304f4327be
4
- data.tar.gz: bd7df13a98c363320223afb10a3aa398b532bea7cdcc33f509a6e7389a0d4b72
3
+ metadata.gz: f29454f588da266d260effcd972428c92ed1a11367ce4bf3ce53e2fd1497db54
4
+ data.tar.gz: 6a0778d3014b743cb7bb3e7985758e05bbf0a39e5f43fdc1f7b8ec2f8ed032c5
5
5
  SHA512:
6
- metadata.gz: ba3adeff1522f462539840544f045d402a0281f5e69be52f4e5c528724a891db04a73fe0a18dc9ac5833813a2879a444043a518079cf79820153dc4a05728840
7
- data.tar.gz: 94a95d2eaf9425e94547be182f8cd39d9f20c84f4d1ba4e4534abaee4bdf1574f916f585593f6a51c9a98ea2f4c3970a3e74858ef90488efe43788129ea0b0f5
6
+ metadata.gz: 4022f9b368d931156f78a56410be4e314a1743e20d68dd0e55a7a0cfe3ee832abb6dc4159cc8ec931345033e148c6c306e2c5a3b1cacce25a5a63ed6f86cca9a
7
+ data.tar.gz: 1a17d91798022b43760bbdfe81e2645eb989ce26a518af153a940872010c728057df575cfba3f99205dea069851ed5482af40be69bd411607bc535b4e2c14764
@@ -1,8 +1,8 @@
1
1
  module ActiveScaffoldSignaturepad
2
2
  module Version
3
3
  MAJOR = 0
4
- MINOR = 1
5
- PATCH = 2
4
+ MINOR = 2
5
+ PATCH = 0
6
6
 
7
7
  STRING = [MAJOR, MINOR, PATCH].compact.join('.')
8
8
  end
@@ -2,8 +2,8 @@ module ActiveScaffoldSignaturepad
2
2
  module ViewHelpers
3
3
  ATTRIBUTES = [:line_colour, :line_width, :line_margin, :line_top, :bg_colour, :pen_colour, :pen_width, :pen_cap, :display_only, :error_message_draw]
4
4
  def signaturepad_attributes(column, ui_options: column.options)
5
- attributes = ATTRIBUTES.map{ |attr| [attr, ui_options[attr]] if ui_options[attr] }
6
- attributes = Hash[attributes].reverse_merge(:error_message_draw => :sign_document)
5
+ attributes = ATTRIBUTES.map{ |attr| [attr, ui_options[attr]] if ui_options[attr] }.compact.to_h
6
+ attributes.reverse_merge!(:error_message_draw => :sign_document)
7
7
  attributes[:type] = ui_options[:type] if ui_options[:type]
8
8
  attributes[:error_message_draw] = as_(attributes[:error_message_draw]) if attributes[:error_message_draw].is_a? Symbol
9
9
  attributes
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: active_scaffold_signaturepad
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.2
4
+ version: 0.2.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Sergio Cambra
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2024-04-05 00:00:00.000000000 Z
12
+ date: 2024-08-21 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: bundler