[DRE-commits] [ruby-rails-assets-jquery.slimscroll] 02/11: Imported Upstream version 1.3.6+dfsg

Praveen Arimbrathodiyil praveen at moszumanska.debian.org
Wed Sep 16 17:29:50 UTC 2015


This is an automated email from the git hooks/post-receive script.

praveen pushed a commit to branch master
in repository ruby-rails-assets-jquery.slimscroll.

commit 3a6370e67039d64e125d44534ef092d1c87fd47f
Author: Praveen Arimbrathodiyil <praveen at debian.org>
Date:   Wed Sep 16 21:10:51 2015 +0530

    Imported Upstream version 1.3.6+dfsg
---
 README.md                                                  |  7 ++++---
 .../documents/jquery.slimscroll/slimScroll.jquery.json     |  4 ++--
 .../javascripts/jquery.slimscroll/jquery.slimscroll.js     | 14 +++++++-------
 app/assets/javascripts/jquery.slimscroll/package.js        | 13 +++++++++++++
 lib/rails-assets-jquery.slimscroll.rb                      |  2 +-
 lib/rails-assets-jquery.slimscroll/version.rb              |  2 +-
 metadata.yml                                               |  7 ++++---
 rails-assets-jquery.slimscroll.gemspec                     |  2 +-
 8 files changed, 33 insertions(+), 18 deletions(-)

diff --git a/README.md b/README.md
index ba1f83b..9646a6a 100644
--- a/README.md
+++ b/README.md
@@ -6,12 +6,13 @@ This gem was automatically generated. You can visit [rails-assets.org](https://r
 
 ## Usage
 
-Add these two lines to your application’s `Gemfile`:
+Add rails-assets source block to your `Gemfile`:
 
 ```ruby
-source "https://rails-assets.org"
+source "https://rails-assets.org" do
+  gem "rails-assets-jquery.slimscroll"
+end
 
-gem "rails-assets-jquery.slimscroll"
 ```
 
 Then, import the asset using Sprockets’ `require` directive:
diff --git a/app/assets/documents/jquery.slimscroll/slimScroll.jquery.json b/app/assets/documents/jquery.slimscroll/slimScroll.jquery.json
index a6bcd84..0c08bad 100644
--- a/app/assets/documents/jquery.slimscroll/slimScroll.jquery.json
+++ b/app/assets/documents/jquery.slimscroll/slimScroll.jquery.json
@@ -1,9 +1,9 @@
 {
   "name"        : "slimScroll",
-  "version"     : "1.3.3",
+  "version"     : "1.3.6",
   "title"       : "jQuery slimScroll scrollbar",
   "description" : "slimScroll is a small jQuery plugin that transforms any div into a scrollable area. slimScroll doesn't occupy any visual space as it only appears on a user initiated mouse-over.",
-  "keywords"    : ["scrollbar", "scroll", "slimscroll", "scrollable", "scrolling", "scroller", "ui"],
+  "keywords"    : ["scrollbar", "scroll", "slimscroll", "scrollable", "scrolling", "scroller", "ui", "jquery-plugin", "ecosystem:jquery"],
   "demo"        : "http://rocha.la/jQuery-slimScroll/",
   "homepage"    : "http://rocha.la/jQuery-slimScroll/",
   "download"    : "http://rocha.la/jQuery-slimScroll/",
diff --git a/app/assets/javascripts/jquery.slimscroll/jquery.slimscroll.js b/app/assets/javascripts/jquery.slimscroll/jquery.slimscroll.js
index 190368e..2261a1b 100644
--- a/app/assets/javascripts/jquery.slimscroll/jquery.slimscroll.js
+++ b/app/assets/javascripts/jquery.slimscroll/jquery.slimscroll.js
@@ -2,7 +2,7 @@
  * Dual licensed under the MIT (http://www.opensource.org/licenses/mit-license.php)
  * and GPL (http://www.opensource.org/licenses/gpl-license.php) licenses.
  *
- * Version: 1.3.3
+ * Version: 1.3.6
  *
  */
 (function($) {
@@ -100,8 +100,8 @@
             var offset = me.scrollTop();
 
             // find bar and rail
-            bar = me.parent().find('.' + o.barClass);
-            rail = me.parent().find('.' + o.railClass);
+            bar = me.closest('.' + o.barClass);
+            rail = me.closest('.' + o.railClass);
 
             getBarHeight();
 
@@ -309,7 +309,7 @@
         }
 
         // attach scroll events
-        attachWheel();
+        attachWheel(this);
 
         function _onWheel(e)
         {
@@ -382,12 +382,12 @@
           hideBar();
         }
 
-        function attachWheel()
+        function attachWheel(target)
         {
           if (window.addEventListener)
           {
-            this.addEventListener('DOMMouseScroll', _onWheel, false );
-            this.addEventListener('mousewheel', _onWheel, false );
+            target.addEventListener('DOMMouseScroll', _onWheel, false );
+            target.addEventListener('mousewheel', _onWheel, false );
           }
           else
           {
diff --git a/app/assets/javascripts/jquery.slimscroll/package.js b/app/assets/javascripts/jquery.slimscroll/package.js
new file mode 100644
index 0000000..1aec1fb
--- /dev/null
+++ b/app/assets/javascripts/jquery.slimscroll/package.js
@@ -0,0 +1,13 @@
+Package.describe({
+  name: 'rochal:slimscroll',
+  version: '1.3.6',
+  summary: 'jQuery SlimScroll package for meteor.',
+  git: 'https://github.com/rochal/jQuery-slimScroll',
+  documentation: 'README.md'
+});
+
+Package.onUse(function (api) {
+  api.versionsFrom('METEOR at 0.9.0.1');
+  api.use('jquery', 'client');
+  api.addFiles('jquery.slimscroll.js', 'client');
+});
diff --git a/lib/rails-assets-jquery.slimscroll.rb b/lib/rails-assets-jquery.slimscroll.rb
index 1f50210..d2fc8ed 100644
--- a/lib/rails-assets-jquery.slimscroll.rb
+++ b/lib/rails-assets-jquery.slimscroll.rb
@@ -5,7 +5,7 @@ require "rails-assets-jquery"
 module RailsAssetsJquerySlimscroll
 
   def self.gem_path
-    Pathname(__FILE__).join('../..')
+    Pathname(File.realpath(__FILE__)).join('../..')
   end
 
   def self.gem_spec
diff --git a/lib/rails-assets-jquery.slimscroll/version.rb b/lib/rails-assets-jquery.slimscroll/version.rb
index 5702e82..d93a175 100644
--- a/lib/rails-assets-jquery.slimscroll/version.rb
+++ b/lib/rails-assets-jquery.slimscroll/version.rb
@@ -1,3 +1,3 @@
 module RailsAssetsJquerySlimscroll
-  VERSION = "1.3.3"
+  VERSION = "1.3.6"
 end
diff --git a/metadata.yml b/metadata.yml
index 2896232..82bd60e 100644
--- a/metadata.yml
+++ b/metadata.yml
@@ -1,14 +1,14 @@
 --- !ruby/object:Gem::Specification
 name: rails-assets-jquery.slimscroll
 version: !ruby/object:Gem::Version
-  version: 1.3.3
+  version: 1.3.6
 platform: ruby
 authors:
 - rails-assets.org
 autorequire: 
 bindir: bin
 cert_chain: []
-date: 2014-10-07 00:00:00.000000000 Z
+date: 2015-06-29 00:00:00.000000000 Z
 dependencies:
 - !ruby/object:Gem::Dependency
   name: rails-assets-jquery
@@ -68,6 +68,7 @@ files:
 - app/assets/javascripts/jquery.slimscroll/examples/libs/prettify/prettify.js
 - app/assets/javascripts/jquery.slimscroll/jquery.slimscroll.js
 - app/assets/javascripts/jquery.slimscroll/jquery.slimscroll.min.js
+- app/assets/javascripts/jquery.slimscroll/package.js
 - app/assets/stylesheets/jquery.slimscroll/examples/libs/prettify/prettify.scss
 - app/assets/stylesheets/jquery.slimscroll/examples/style.scss
 - app/assets/templates/jquery.slimscroll/examples/allow-page-scroll.html
@@ -88,7 +89,7 @@ files:
 - lib/rails-assets-jquery.slimscroll.rb
 - lib/rails-assets-jquery.slimscroll/version.rb
 - rails-assets-jquery.slimscroll.gemspec
-homepage: http://rocha.la/jQuery-slimScroll/
+homepage: http://rocha.la/jQuery-slimScroll
 licenses: []
 metadata: {}
 post_install_message: 
diff --git a/rails-assets-jquery.slimscroll.gemspec b/rails-assets-jquery.slimscroll.gemspec
index 7f948d3..d46cc54 100644
--- a/rails-assets-jquery.slimscroll.gemspec
+++ b/rails-assets-jquery.slimscroll.gemspec
@@ -9,7 +9,7 @@ Gem::Specification.new do |spec|
   spec.authors       = ["rails-assets.org"]
   spec.description   = "slimScroll is a small jQuery plugin that transforms any div into a scrollable area. slimScroll doesn't occupy any visual space as it only appears on a user initiated mouse-over."
   spec.summary       = "slimScroll is a small jQuery plugin that transforms any div into a scrollable area. slimScroll doesn't occupy any visual space as it only appears on a user initiated mouse-over."
-  spec.homepage      = "http://rocha.la/jQuery-slimScroll/"
+  spec.homepage      = "http://rocha.la/jQuery-slimScroll"
 
   spec.files         = `find ./* -type f | cut -b 3-`.split($/)
   spec.require_paths = ["lib"]

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-ruby-extras/ruby-rails-assets-jquery.slimscroll.git



More information about the Pkg-ruby-extras-commits mailing list