rails-sweetalert2-confirm 0.9.6 → 0.9.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: bb1cb50891fbc5806dcc01b28961938e6c657001
4
- data.tar.gz: fed487b24022ceca7e05cd404c1319d479307c86
3
+ metadata.gz: 57c1e4e4b08eca850cb2e50488b4ff420ea0895c
4
+ data.tar.gz: 1e362ece35d0481709b78967ea4758a5f214bd67
5
5
  SHA512:
6
- metadata.gz: 84c73951440193557eb66a650496210d49e520fe093435b4ee020e462f276ff457fa8d826397f3900a2b6aff2432b30701172c8725bbca295f940639a11e6b44
7
- data.tar.gz: 249596f89c47626903cabba4e56151661822e4d2915a1c022e7630e3883d373287dbb29af49d93ffd2e95e5d87ff86497bd705e1b8aec8c444cfcd397bcc4ebc
6
+ metadata.gz: df958796f883cc999e6aea4ce37206162e1e6f592ac75db4b88694beb5a628f2e67d6a6a7d011e0d1186a28b7750b7f4bc6da294127b993ebeeaf74e373d4682
7
+ data.tar.gz: 30bbb9c2af5ce627cc7b616ab50443cad1c7e464fab5508b286a71c5e8825937e58e715b2787ccc2b62a9a60ad780015e11de40c148316a99b94b2b90e598493
@@ -1,3 +1,3 @@
1
1
  module RailsSweetAlert2Confirm
2
- VERSION = "0.9.6"
2
+ VERSION = "0.9.7"
3
3
  end
@@ -31,8 +31,9 @@ module RailsSweetAlert2Confirm
31
31
  merge_method_into_swal(options)
32
32
  end
33
33
 
34
- %w(confirm remote method).each do |option|
34
+ %w(remote method confirm).each do |option|
35
35
  define_method("merge_#{option}_into_swal") do |options|
36
+ return if %w(remote method).include?(option) && !options_has_confirm?
36
37
  if send("options_has_#{option}?", options)
37
38
  options[:data] ||= {}
38
39
  options[:data][:swal] ||= {}
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rails-sweetalert2-confirm
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.9.6
4
+ version: 0.9.7
5
5
  platform: ruby
6
6
  authors:
7
7
  - Joe Woodward
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-23 00:00:00.000000000 Z
11
+ date: 2016-07-25 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: rails