twitter-bootstrap-rails-confirm 2.0.0 → 2.0.1

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: 045cf9e7b41fdb990daa53d717bc949ba7ccde47
4
- data.tar.gz: af66568c470fba6bccfeb7e26b03adb54b02c52d
3
+ metadata.gz: b4af854cb39f612728a02d3eb6197d9e39ca4243
4
+ data.tar.gz: 104a72de5382e6907e83300859c3fa8aad70b2a5
5
5
  SHA512:
6
- metadata.gz: c411fc916c52ce1d48dfdd08d58a9f0831e9869f3ff7766117be27a6024b8e952ef46bcd0371f99bfd32c26db1eb1e5612c9b918bf97a20f6c0fd9d8bcbdf25c
7
- data.tar.gz: b6d56c7410b99040b3c548a8c6ad7ce584d8357b468b0fa16ee4a07f4def5fa2a7584add8e017caa0da78edbd71bf2003271a7e81060902014c7a2f83c5e871a
6
+ metadata.gz: 1815f79cf919fb1c21d3348373bba37cbed840ba2cc18d07d246067ac2a12e9bad1aa70711d460d1c73d7ff7de652fdb4186b29ecd3c5cebc482772e6ab151d7
7
+ data.tar.gz: 1bf20de563029a8abd3fc399cec25d0d3db3c5a711591ea081ce966550c6acaad7bcfa3eb89cddcf0ba4abc84434e15f074cde86ff2ffb301bd4c7df1e75e8be
data/README.md CHANGED
@@ -93,6 +93,10 @@ simple app that loads Bootstrap and this gem.
93
93
 
94
94
  ## Changelog
95
95
 
96
+ ### 2.0.1 (January 14, 2018)
97
+
98
+ * [(eirvandelden)](https://github.com/eirvandelden) [Bootstrap 4 version is stored in Tooltip.VERSION](https://github.com/bluerail/twitter-bootstrap-rails-confirm/pull/38)
99
+
96
100
  ### 2.0.0 (April 26, 2018)
97
101
 
98
102
  * [(mftaff)](https://github.com/mftaff) [Convert CoffeeScript to JavaScript](https://github.com/bluerail/twitter-bootstrap-rails-confirm/pull/37)
@@ -2,7 +2,7 @@ module Twitter
2
2
  module Bootstrap
3
3
  module Rails
4
4
  module Confirm
5
- VERSION = "2.0.0"
5
+ VERSION = "2.0.1"
6
6
  end
7
7
  end
8
8
  end
@@ -15,7 +15,15 @@
15
15
 
16
16
  TwitterBootstrapConfirmBox = function(message, element, callback) {
17
17
  var $dialog, bootstrap_version;
18
- bootstrap_version = typeof $().emulateTransitionEnd === 'function' ? parseInt($.fn.tooltip.Constructor.VERSION[0]) : 2;
18
+ if (typeof $().emulateTransitionEnd === 'function') {
19
+ if ($.fn.tooltip.Constructor === undefined) {
20
+ bootstrap_version = Tooltip.VERSION[0]
21
+ } else {
22
+ bootstrap_version = $.fn.tooltip.Constructor.VERSION[0]
23
+ }
24
+ } else {
25
+ bootstrap_version = 2
26
+ }
19
27
 
20
28
  switch (bootstrap_version) {
21
29
  case 2:
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: twitter-bootstrap-rails-confirm
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.0
4
+ version: 2.0.1
5
5
  platform: ruby
6
6
  authors:
7
7
  - Rene van Lieshout
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2018-04-26 00:00:00.000000000 Z
11
+ date: 2019-01-15 00:00:00.000000000 Z
12
12
  dependencies: []
13
13
  description: Confirm dialogs using Twitter Bootstrap
14
14
  email:
@@ -47,7 +47,7 @@ required_rubygems_version: !ruby/object:Gem::Requirement
47
47
  version: '0'
48
48
  requirements: []
49
49
  rubyforge_project:
50
- rubygems_version: 2.6.14
50
+ rubygems_version: 2.5.2.3
51
51
  signing_key:
52
52
  specification_version: 4
53
53
  summary: Applies a custom confirm dialog for elements with a data-confirm attribute.