dynaspan 0.1.3.beta1 → 0.1.3

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
  SHA1:
3
- metadata.gz: f80e4bd299517b42e0fde2effce96b24c2ab859f
4
- data.tar.gz: 96769dc4258951d0c4e47b5579ae3303566e6ea7
3
+ metadata.gz: e9b455af36f7c95a7137eb21eaf324fde00ea1f2
4
+ data.tar.gz: fcb4fe125d655e073758f0abac44b2e482d9ec03
5
5
  SHA512:
6
- metadata.gz: e65fae87fdec33a773698f90fbb72ecee98a061d91700cd17ff8553b0d266c057cd81c1e1549de4759805750d741ebd26e8438ac44a14238b6e9e2f97413c740
7
- data.tar.gz: a07cda41584ba51b3bc445ff61762e527dc0388d0bbcbedf96c079ca51187bf1f2c7bb5fa73b914bd111ee288e6f548fcc59d9fc23416a8f1a24c53392fdb0f1
6
+ metadata.gz: a64c0720b725150455340c76ef4a582840289f8885185eb1fbcc7991de51dd60c881f40f80999aec0cbedb6ef46fcb64b08afa407f84b12c227fbc106a083996
7
+ data.tar.gz: 93241c205fda5b256c85baaaa90c277b723e905a4ebe7786a4094c2c91c801052454cf9c5b4f1816bee2206ffc406635d8a91f3adefbc9820be77ebb8bfd00d3
@@ -50,14 +50,14 @@ module Dynaspan
50
50
  master_ds_object: master_ds_object,
51
51
  attr_object: attr_object,
52
52
  attrib: attrib,
53
- unique_ref_id: options.fetch(:unique_id) { [to_id(master_ds_object), to_id(attr_object), attrib].join },
53
+ unique_ref_id: options.fetch(:unique_id) { [to_id(master_ds_object), to_id(attr_object), attrib, SecureRandom.hex(3)].join },
54
54
  dyna_span_edit_text: edit_text,
55
55
  hidden_fields: options[:hidden_fields],
56
56
  ds_callback_on_update: options[:callback_on_update],
57
57
  ds_callback_with_values: options[:callback_with_values],
58
58
  form_for_options: options[:form_for],
59
- schoices: options[:choices], # For form 'select' field
60
- soptions: options.fetch(:options) { Hash.new }, # For form 'select' field
59
+ choices: options[:choices], # For form 'select' field
60
+ options: options.fetch(:options) { Hash.new }, # For form 'select' field
61
61
  html_options: options[:html_options],
62
62
  block: block
63
63
  }
@@ -9,10 +9,10 @@
9
9
  <% hidden_fields.each do |hkey, hval| %>
10
10
  <%= a.hidden_field hkey.to_sym, value: hval %>
11
11
  <% end if hidden_fields %>
12
- <%= a.select( attrib, schoices, soptions, {**html_options.symbolize_keys, id: "dyna_span_field_val_#{unique_ref_id}", onfocus: "$().dynaspan.upLast('#{unique_ref_id}');", onblur: "$().dynaspan.upHide('#{unique_ref_id}');"}, &block) %>
12
+ <%= a.select( attrib, choices, options.symbolize_keys, {**html_options.symbolize_keys, id: "dyna_span_field_val_#{unique_ref_id}", onfocus: "$().dynaspan.upLast('#{unique_ref_id}');", onblur: "$().dynaspan.upHide('#{unique_ref_id}');"}, &block) %>
13
13
  <% end %>
14
14
  <% else %>
15
- <%= f.select( attrib, schoices, soptions, {**html_options.symbolize_keys, id: "dyna_span_field_val_#{unique_ref_id}", onfocus: "$().dynaspan.upLast('#{unique_ref_id}');", onblur: "$().dynaspan.upHide('#{unique_ref_id}');"}, &block) %>
15
+ <%= f.select( attrib, choices, options.symbolize_keys, {**html_options.symbolize_keys, id: "dyna_span_field_val_#{unique_ref_id}", onfocus: "$().dynaspan.upLast('#{unique_ref_id}');", onblur: "$().dynaspan.upHide('#{unique_ref_id}');"}, &block) %>
16
16
  <% hidden_fields.each do |hkey, hval| %>
17
17
  <%= f.hidden_field hkey.to_sym, value: hval %>
18
18
  <% end if hidden_fields %>
@@ -1,3 +1,3 @@
1
1
  module Dynaspan
2
- VERSION = '0.1.3.beta1'
2
+ VERSION = '0.1.3'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: dynaspan
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3.beta1
4
+ version: 0.1.3
5
5
  platform: ruby
6
6
  authors:
7
7
  - Daniel P. Clark
@@ -49,9 +49,9 @@ required_ruby_version: !ruby/object:Gem::Requirement
49
49
  version: '2.0'
50
50
  required_rubygems_version: !ruby/object:Gem::Requirement
51
51
  requirements:
52
- - - ">"
52
+ - - ">="
53
53
  - !ruby/object:Gem::Version
54
- version: 1.3.1
54
+ version: '0'
55
55
  requirements:
56
56
  - jQuery
57
57
  - Rails