jquery-colorbox-rails 0.1.9 → 0.2.0

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: cf6fce529198c2b7ae98d98ab0eb99f8ce2901c9
4
- data.tar.gz: 58a611a4cf100629dcc8705fd4416dcf698ee3c1
3
+ metadata.gz: 484cb0ef7f429370f04bcd20561c012388808bb1
4
+ data.tar.gz: f6b5f11f58b5cafa5383cc0870be76f348bb1947
5
5
  SHA512:
6
- metadata.gz: 0e090d7bd917b1706cd12abf0107d038d5c1123cc2ec5dae11c5416acdc2117cce9a08cea6d526591e08d7149436b4ac8fefa0fbb84dc39e1f3af711a601b748
7
- data.tar.gz: 1738598969118177133e59493ceacaf74833dbacaffe058d423efff425bc8627b570bac3a60d30bbbe7ed2e34d285af0acd058b8f5f5f2d403a95feaf6fafb1f
6
+ metadata.gz: 30e3638df1a26d0afc555eed81559cd35a31b3be68b4d939365b7aac4968e7a6d391b06d6f371b2e1d50f462baf7a1a9db32cee25700f4b7b2b9c2f829eaf5ba
7
+ data.tar.gz: e2402ac13b7dd8e2b912f6cf7169c0a1cb3e740699dc17f96f4000f04327949b7bd948744f8d59e901dadf1fec6eec1c55ca877a0b171ce01ffa5bdf26e9e686
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.13</b>
5
+ Colorbox version: <b id="colorbox-version">1.5.14</b>
6
6
 
7
7
  ### Installation
8
8
 
data/Rakefile CHANGED
@@ -37,7 +37,7 @@ task :update do
37
37
 
38
38
  css_content = File.read File.join(example, 'colorbox.css')
39
39
  css_content.gsub!(/url\(\s?images\/([^\)]+)\)/) do |_|
40
- "image-url('#{File.join('colorbox', example_name, $1)}')"
40
+ "image-url('#{File.join('colorbox', example_name, $1)}')"
41
41
  end
42
42
  File.open(File.join(css_dir, "jquery.colorbox-#{example_name}.css.scss"), 'w') do |f|
43
43
  f.write(css_content)
@@ -46,7 +46,7 @@ task :update do
46
46
  end
47
47
 
48
48
  puts 'Updating version...'
49
- version = File.read('colorbox/jquery.colorbox.js').match(/Colorbox v(\d{1,2}\.\d{1,2}\.\d{1,2})/)[1]
49
+ version = File.read('colorbox/jquery.colorbox.js').match(/Colorbox (\d{1,2}\.\d{1,2}\.\d{1,2})/)[1]
50
50
  readme = File.read('README.md')
51
51
  puts "Current version is: #{version}"
52
52
  new_content = readme.gsub(/(?<=<b id="colorbox-version">)[\d\.]+(?=<\/b>)/, version)
@@ -62,4 +62,4 @@ task :build do
62
62
  else
63
63
  raise "Gem was not built!"
64
64
  end
65
- end
65
+ end
@@ -1,3 +1,3 @@
1
1
  module JqueryColorboxRails
2
- VERSION = "0.1.9"
2
+ VERSION = "0.2.0"
3
3
  end
@@ -0,0 +1,16 @@
1
+ /*
2
+ jQuery Colorbox language configuration
3
+ language: Bengali (bn)
4
+ translated by: Arkaprava Majumder
5
+ http://github.com/arkaindas
6
+ */
7
+ jQuery.extend(jQuery.colorbox.settings, {
8
+ current: "ছবি {current} এর {total}",
9
+ previous: "আগে",
10
+ next: "পরে",
11
+ close: "বন্ধ",
12
+ xhrError: "এই কন্টেন্ট লোড করা যায়নি.",
13
+ imgError: "এই ছবিটি লোড করা যায়নি.",
14
+ slideshowStart: "স্লাইডশো শুরু",
15
+ slideshowStop: "স্লাইডশো বন্ধ"
16
+ });
@@ -1,8 +1,7 @@
1
1
  /*!
2
- Colorbox v1.5.13 - 2014-08-04
3
- jQuery lightbox and modal window plugin
4
- (c) 2014 Jack Moore - http://www.jacklmoore.com/colorbox
5
- license: http://www.opensource.org/licenses/mit-license.php
2
+ Colorbox 1.5.14
3
+ license: MIT
4
+ http://www.jacklmoore.com/colorbox
6
5
  */
7
6
  (function ($, document, window) {
8
7
  var
@@ -435,7 +434,7 @@
435
434
  // Colorbox's markup needs to be added to the DOM prior to being called
436
435
  // so that the browser will go ahead and load the CSS background images.
437
436
  function appendHTML() {
438
- if (!$box && document.body) {
437
+ if (!$box) {
439
438
  init = false;
440
439
  $window = $(window);
441
440
  $box = $tag(div).attr({
@@ -479,7 +478,8 @@
479
478
  $loadingBay = $tag(div, false, 'position:absolute; width:9999px; visibility:hidden; display:none; max-width:none;');
480
479
 
481
480
  $groupControls = $next.add($prev).add($current).add($slideshow);
482
-
481
+ }
482
+ if (document.body && !$box.parent().length) {
483
483
  $(document.body).append($overlay, $box.append($wrap, $loadingBay));
484
484
  }
485
485
  }
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: jquery-colorbox-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.9
4
+ version: 0.2.0
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-08-29 00:00:00.000000000 Z
11
+ date: 2014-09-30 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -63,6 +63,7 @@ files:
63
63
  - vendor/assets/images/colorbox/example5/loading_background.png
64
64
  - vendor/assets/javascripts/jquery.colorbox-ar.js
65
65
  - vendor/assets/javascripts/jquery.colorbox-bg.js
66
+ - vendor/assets/javascripts/jquery.colorbox-bn.js
66
67
  - vendor/assets/javascripts/jquery.colorbox-ca.js
67
68
  - vendor/assets/javascripts/jquery.colorbox-cs.js
68
69
  - vendor/assets/javascripts/jquery.colorbox-da.js