jquery-colorbox-rails 0.1.6 → 0.1.8

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: c92475192c16fc5de9b5cbab99153ac5f987100e
4
- data.tar.gz: 7c66b2a01a65d37e7f08b7d5173765dc35a36924
3
+ metadata.gz: 3942876f4c5a57b1629a3954585ea5799b634a25
4
+ data.tar.gz: 8a251ac4ab46aeb9a3d2477a9d2712d307cf6ad8
5
5
  SHA512:
6
- metadata.gz: 5347eeab8f4dc5e286621c165263247f0230e1a6e9e7c7a70778416945160c071d4c1def00cc0a060d54b55973e0edb9ce38489f914463a5204596f7e6a94b9f
7
- data.tar.gz: 605fec9da3b5a2d3135489c76daefa1a0e7551b2791bda6c8a13858b5fbf7adc7d90b1f9c85dcdf2083917a8f4639ee2b79b00949dbd51e95b30f154f141882f
6
+ metadata.gz: a9c6313e0b7e39dbdfe5c2df705441ee305b9bb7de8324992633db04e748d711bef97a96c9e6b465b1b2e2e76ffeab3a0130ba19cafd527854042dd676521a5a
7
+ data.tar.gz: 4928ed7ed5f1d502547368be51914d3f3f611891560d904ebe7554b41efd331f205efb6b654d3df6164d2647694659a39abc8acf7ecc95aa4bd806d88c68cd2d
data/README.md CHANGED
@@ -2,7 +2,7 @@
2
2
 
3
3
  jquery-colorbox-rails integrates [jquery.colorbox](https://github.com/jackmoore/colorbox) with rails 3.1+ asset pipeline.
4
4
 
5
- Colorbox version: <b id="colorbox-version">1.5.9</b>
5
+ Colorbox version: <b id="colorbox-version">1.5.10</b>
6
6
 
7
7
  ### Installation
8
8
 
@@ -1,3 +1,3 @@
1
1
  module JqueryColorboxRails
2
- VERSION = "0.1.6"
2
+ VERSION = "0.1.8"
3
3
  end
@@ -1,5 +1,5 @@
1
1
  /*!
2
- Colorbox v1.5.9 - 2014-04-25
2
+ Colorbox v1.5.10 - 2014-06-26
3
3
  jQuery lightbox and modal window plugin
4
4
  (c) 2014 Jack Moore - http://www.jacklmoore.com/colorbox
5
5
  license: http://www.opensource.org/licenses/mit-license.php
@@ -89,7 +89,6 @@
89
89
  }
90
90
  },
91
91
 
92
-
93
92
  // Abstracting the HTML and event identifiers for easy rebranding
94
93
  colorbox = 'colorbox',
95
94
  prefix = 'cbox',
@@ -242,7 +241,7 @@
242
241
  function getRelated(rel) {
243
242
  index = 0;
244
243
 
245
- if (rel && rel !== false) {
244
+ if (rel && rel !== false && rel !== 'nofollow') {
246
245
  $related = $('.' + boxElement).filter(function () {
247
246
  var options = $.data(this, colorbox);
248
247
  var settings = new Settings(this, options);
@@ -353,7 +352,7 @@
353
352
 
354
353
  if (!closing) {
355
354
 
356
- options = $(element).data('colorbox');
355
+ options = $(element).data(colorbox);
357
356
 
358
357
  settings = new Settings(element, options);
359
358
 
@@ -549,7 +548,7 @@
549
548
  }
550
549
 
551
550
  // Don't do anything if Colorbox already exists.
552
- if ($.colorbox) {
551
+ if ($[colorbox]) {
553
552
  return;
554
553
  }
555
554
 
@@ -1067,8 +1066,8 @@
1067
1066
  if (!$box) { return; }
1068
1067
 
1069
1068
  $box.stop();
1070
- $.colorbox.close();
1071
- $box.stop().remove();
1069
+ $[colorbox].close();
1070
+ $box.stop(false, true).remove();
1072
1071
  $overlay.remove();
1073
1072
  closing = false;
1074
1073
  $box = null;
@@ -1076,7 +1075,7 @@
1076
1075
  .removeData(colorbox)
1077
1076
  .removeClass(boxElement);
1078
1077
 
1079
- $(document).unbind('click.'+prefix);
1078
+ $(document).unbind('click.'+prefix).unbind('keydown.'+prefix);
1080
1079
  };
1081
1080
 
1082
1081
  // A method for fetching the current element Colorbox is referencing.
@@ -1087,4 +1086,4 @@
1087
1086
 
1088
1087
  publicMethod.settings = defaults;
1089
1088
 
1090
- }(jQuery, document, window));
1089
+ }(jQuery, document, window));
metadata CHANGED
@@ -1,29 +1,35 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-colorbox-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.6
4
+ version: 0.1.8
5
5
  platform: ruby
6
6
  authors:
7
7
  - Krzysztof Knapik
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-05-26 00:00:00.000000000 Z
11
+ date: 2014-07-07 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
15
15
  requirement: !ruby/object:Gem::Requirement
16
16
  requirements:
17
- - - ">="
17
+ - - '>='
18
18
  - !ruby/object:Gem::Version
19
19
  version: '3.1'
20
+ - - <=
21
+ - !ruby/object:Gem::Version
22
+ version: '5.0'
20
23
  type: :runtime
21
24
  prerelease: false
22
25
  version_requirements: !ruby/object:Gem::Requirement
23
26
  requirements:
24
- - - ">="
27
+ - - '>='
25
28
  - !ruby/object:Gem::Version
26
29
  version: '3.1'
30
+ - - <=
31
+ - !ruby/object:Gem::Version
32
+ version: '5.0'
27
33
  description: jQuery Colorbox [https://github.com/jackmoore/colorbox] integration for
28
34
  Rails 3.1+ asset pipeline
29
35
  email:
@@ -108,12 +114,12 @@ require_paths:
108
114
  - lib
109
115
  required_ruby_version: !ruby/object:Gem::Requirement
110
116
  requirements:
111
- - - ">="
117
+ - - '>='
112
118
  - !ruby/object:Gem::Version
113
119
  version: '0'
114
120
  required_rubygems_version: !ruby/object:Gem::Requirement
115
121
  requirements:
116
- - - ">="
122
+ - - '>='
117
123
  - !ruby/object:Gem::Version
118
124
  version: '0'
119
125
  requirements: []