h2ocube_rails_assets 0.0.11 → 0.0.12

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml ADDED
@@ -0,0 +1,7 @@
1
+ ---
2
+ SHA1:
3
+ metadata.gz: 6eebee28f5a77fe606ccd612c8367012e06261b7
4
+ data.tar.gz: 0131caa8cbe360c014fc08a147b4c32e082bb96c
5
+ SHA512:
6
+ metadata.gz: d6f32a71aa4606a8c853e02b4f9953785d8d986498441c89361945f20fdfe6ae244e47f926e201f56e30f37d4c53d6f188473ec97c04efaf3ac750dd2962e398
7
+ data.tar.gz: 6fde5fe935c83b7173262bdcae1cd83cd258bc6a03b1ec07f737df9350dbe1d204a762609741bcf815bf8e9f1b09c5a5c1d12128d264cc5bbd95ffc00d0e1e59
data/README.md CHANGED
@@ -34,6 +34,7 @@ Or install it yourself as:
34
34
  #=require modernizr
35
35
  #=require lazyload
36
36
  #=require zepto
37
+ #=require zepto.all
37
38
  #=require highcharts
38
39
 
39
40
  @import compass
@@ -4,7 +4,7 @@ $LOAD_PATH.unshift(lib) unless $LOAD_PATH.include?(lib)
4
4
 
5
5
  Gem::Specification.new do |gem|
6
6
  gem.name = 'h2ocube_rails_assets'
7
- gem.version = '0.0.11'
7
+ gem.version = '0.0.12'
8
8
  gem.authors = ['Ben']
9
9
  gem.email = ['ben@h2ocube.com']
10
10
  gem.description = %q{Just an assets collection}
@@ -1,5 +1,5 @@
1
1
  /* ===================================================
2
- * bootstrap-transition.js v2.3.0
2
+ * bootstrap-transition.js v2.3.1
3
3
  * http://twitter.github.com/bootstrap/javascript.html#transitions
4
4
  * ===================================================
5
5
  * Copyright 2012 Twitter, Inc.
@@ -58,7 +58,7 @@
58
58
  })
59
59
 
60
60
  }(window.jQuery);/* ==========================================================
61
- * bootstrap-alert.js v2.3.0
61
+ * bootstrap-alert.js v2.3.1
62
62
  * http://twitter.github.com/bootstrap/javascript.html#alerts
63
63
  * ==========================================================
64
64
  * Copyright 2012 Twitter, Inc.
@@ -156,7 +156,7 @@
156
156
  $(document).on('click.alert.data-api', dismiss, Alert.prototype.close)
157
157
 
158
158
  }(window.jQuery);/* ============================================================
159
- * bootstrap-button.js v2.3.0
159
+ * bootstrap-button.js v2.3.1
160
160
  * http://twitter.github.com/bootstrap/javascript.html#buttons
161
161
  * ============================================================
162
162
  * Copyright 2012 Twitter, Inc.
@@ -260,7 +260,7 @@
260
260
  })
261
261
 
262
262
  }(window.jQuery);/* ==========================================================
263
- * bootstrap-carousel.js v2.3.0
263
+ * bootstrap-carousel.js v2.3.1
264
264
  * http://twitter.github.com/bootstrap/javascript.html#carousel
265
265
  * ==========================================================
266
266
  * Copyright 2012 Twitter, Inc.
@@ -336,7 +336,7 @@
336
336
  if (!e) this.paused = true
337
337
  if (this.$element.find('.next, .prev').length && $.support.transition.end) {
338
338
  this.$element.trigger($.support.transition.end)
339
- this.cycle()
339
+ this.cycle(true)
340
340
  }
341
341
  clearInterval(this.interval)
342
342
  this.interval = null
@@ -466,7 +466,7 @@
466
466
  })
467
467
 
468
468
  }(window.jQuery);/* =============================================================
469
- * bootstrap-collapse.js v2.3.0
469
+ * bootstrap-collapse.js v2.3.1
470
470
  * http://twitter.github.com/bootstrap/javascript.html#collapse
471
471
  * =============================================================
472
472
  * Copyright 2012 Twitter, Inc.
@@ -632,7 +632,7 @@
632
632
  })
633
633
 
634
634
  }(window.jQuery);/* ============================================================
635
- * bootstrap-dropdown.js v2.3.0
635
+ * bootstrap-dropdown.js v2.3.1
636
636
  * http://twitter.github.com/bootstrap/javascript.html#dropdowns
637
637
  * ============================================================
638
638
  * Copyright 2012 Twitter, Inc.
@@ -791,13 +791,13 @@
791
791
  $(document)
792
792
  .on('click.dropdown.data-api', clearMenus)
793
793
  .on('click.dropdown.data-api', '.dropdown form', function (e) { e.stopPropagation() })
794
- .on('.dropdown-menu', function (e) { e.stopPropagation() })
794
+ .on('click.dropdown-menu', function (e) { e.stopPropagation() })
795
795
  .on('click.dropdown.data-api' , toggle, Dropdown.prototype.toggle)
796
796
  .on('keydown.dropdown.data-api', toggle + ', [role=menu]' , Dropdown.prototype.keydown)
797
797
 
798
798
  }(window.jQuery);
799
799
  /* =========================================================
800
- * bootstrap-modal.js v2.3.0
800
+ * bootstrap-modal.js v2.3.1
801
801
  * http://twitter.github.com/bootstrap/javascript.html#modals
802
802
  * =========================================================
803
803
  * Copyright 2012 Twitter, Inc.
@@ -946,7 +946,7 @@
946
946
  }
947
947
 
948
948
  , removeBackdrop: function () {
949
- this.$backdrop.remove()
949
+ this.$backdrop && this.$backdrop.remove()
950
950
  this.$backdrop = null
951
951
  }
952
952
 
@@ -1044,7 +1044,7 @@
1044
1044
 
1045
1045
  }(window.jQuery);
1046
1046
  /* ===========================================================
1047
- * bootstrap-tooltip.js v2.3.0
1047
+ * bootstrap-tooltip.js v2.3.1
1048
1048
  * http://twitter.github.com/bootstrap/javascript.html#tooltips
1049
1049
  * Inspired by the original jQuery.tipsy by Jason Frame
1050
1050
  * ===========================================================
@@ -1125,7 +1125,15 @@
1125
1125
  }
1126
1126
 
1127
1127
  , enter: function (e) {
1128
- var self = $(e.currentTarget)[this.type](this._options).data(this.type)
1128
+ var defaults = $.fn[this.type].defaults
1129
+ , options = {}
1130
+ , self
1131
+
1132
+ this._options && $.each(this._options, function (key, value) {
1133
+ if (defaults[key] != value) options[key] = value
1134
+ }, this)
1135
+
1136
+ self = $(e.currentTarget)[this.type](options).data(this.type)
1129
1137
 
1130
1138
  if (!self.options.delay || !self.options.delay.show) return self.show()
1131
1139
 
@@ -1397,7 +1405,7 @@
1397
1405
 
1398
1406
  }(window.jQuery);
1399
1407
  /* ===========================================================
1400
- * bootstrap-popover.js v2.3.0
1408
+ * bootstrap-popover.js v2.3.1
1401
1409
  * http://twitter.github.com/bootstrap/javascript.html#popovers
1402
1410
  * ===========================================================
1403
1411
  * Copyright 2012 Twitter, Inc.
@@ -1511,7 +1519,7 @@
1511
1519
 
1512
1520
  }(window.jQuery);
1513
1521
  /* =============================================================
1514
- * bootstrap-scrollspy.js v2.3.0
1522
+ * bootstrap-scrollspy.js v2.3.1
1515
1523
  * http://twitter.github.com/bootstrap/javascript.html#scrollspy
1516
1524
  * =============================================================
1517
1525
  * Copyright 2012 Twitter, Inc.
@@ -1672,7 +1680,7 @@
1672
1680
  })
1673
1681
 
1674
1682
  }(window.jQuery);/* ========================================================
1675
- * bootstrap-tab.js v2.3.0
1683
+ * bootstrap-tab.js v2.3.1
1676
1684
  * http://twitter.github.com/bootstrap/javascript.html#tabs
1677
1685
  * ========================================================
1678
1686
  * Copyright 2012 Twitter, Inc.
@@ -1815,7 +1823,7 @@
1815
1823
  })
1816
1824
 
1817
1825
  }(window.jQuery);/* =============================================================
1818
- * bootstrap-typeahead.js v2.3.0
1826
+ * bootstrap-typeahead.js v2.3.1
1819
1827
  * http://twitter.github.com/bootstrap/javascript.html#typeahead
1820
1828
  * =============================================================
1821
1829
  * Copyright 2012 Twitter, Inc.
@@ -2150,7 +2158,7 @@
2150
2158
 
2151
2159
  }(window.jQuery);
2152
2160
  /* ==========================================================
2153
- * bootstrap-affix.js v2.3.0
2161
+ * bootstrap-affix.js v2.3.1
2154
2162
  * http://twitter.github.com/bootstrap/javascript.html#affix
2155
2163
  * ==========================================================
2156
2164
  * Copyright 2012 Twitter, Inc.
@@ -0,0 +1,21 @@
1
+ // Zepto.js
2
+ // (c) 2010-2012 Thomas Fuchs
3
+ // Zepto.js may be freely distributed under the MIT license.
4
+
5
+ ;(function($){
6
+ var cache = [], timeout
7
+
8
+ $.fn.remove = function(){
9
+ return this.each(function(){
10
+ if(this.parentNode){
11
+ if(this.tagName === 'IMG'){
12
+ cache.push(this)
13
+ this.src = 'data:image/gif;base64,R0lGODlhAQABAAD/ACwAAAAAAQABAAACADs='
14
+ if (timeout) clearTimeout(timeout)
15
+ timeout = setTimeout(function(){ cache = [] }, 60000)
16
+ }
17
+ this.parentNode.removeChild(this)
18
+ }
19
+ })
20
+ }
21
+ })(Zepto)
@@ -0,0 +1,67 @@
1
+ // Zepto.js
2
+ // (c) 2010-2012 Thomas Fuchs
3
+ // Zepto.js may be freely distributed under the MIT license.
4
+
5
+ // The following code is heavily inspired by jQuery's $.fn.data()
6
+
7
+ ;(function($) {
8
+ var data = {}, dataAttr = $.fn.data, camelize = $.camelCase,
9
+ exp = $.expando = 'Zepto' + (+new Date())
10
+
11
+ // Get value from node:
12
+ // 1. first try key as given,
13
+ // 2. then try camelized key,
14
+ // 3. fall back to reading "data-*" attribute.
15
+ function getData(node, name) {
16
+ var id = node[exp], store = id && data[id]
17
+ if (name === undefined) return store || setData(node)
18
+ else {
19
+ if (store) {
20
+ if (name in store) return store[name]
21
+ var camelName = camelize(name)
22
+ if (camelName in store) return store[camelName]
23
+ }
24
+ return dataAttr.call($(node), name)
25
+ }
26
+ }
27
+
28
+ // Store value under camelized key on node
29
+ function setData(node, name, value) {
30
+ var id = node[exp] || (node[exp] = ++$.uuid),
31
+ store = data[id] || (data[id] = attributeData(node))
32
+ if (name !== undefined) store[camelize(name)] = value
33
+ return store
34
+ }
35
+
36
+ // Read all "data-*" attributes from a node
37
+ function attributeData(node) {
38
+ var store = {}
39
+ $.each(node.attributes, function(i, attr){
40
+ if (attr.name.indexOf('data-') == 0)
41
+ store[camelize(attr.name.replace('data-', ''))] =
42
+ $.zepto.deserializeValue(attr.value)
43
+ })
44
+ return store
45
+ }
46
+
47
+ $.fn.data = function(name, value) {
48
+ return value === undefined ?
49
+ // set multiple values via object
50
+ $.isPlainObject(name) ?
51
+ this.each(function(i, node){
52
+ $.each(name, function(key, value){ setData(node, key, value) })
53
+ }) :
54
+ // get value from first element
55
+ this.length == 0 ? undefined : getData(this[0], name) :
56
+ // set value on all elements
57
+ this.each(function(){ setData(this, name, value) })
58
+ }
59
+
60
+ $.fn.removeData = function(names) {
61
+ if (typeof names == 'string') names = names.split(/\s+/)
62
+ return this.each(function(){
63
+ var id = this[exp], store = id && data[id]
64
+ if (store) $.each(names, function(){ delete store[camelize(this)] })
65
+ })
66
+ }
67
+ })(Zepto)
@@ -0,0 +1,71 @@
1
+ // Zepto.js
2
+ // (c) 2010-2012 Thomas Fuchs
3
+ // Zepto.js may be freely distributed under the MIT license.
4
+
5
+ ;(function($, undefined){
6
+ var document = window.document, docElem = document.documentElement,
7
+ origShow = $.fn.show, origHide = $.fn.hide, origToggle = $.fn.toggle
8
+
9
+ function anim(el, speed, opacity, scale, callback) {
10
+ if (typeof speed == 'function' && !callback) callback = speed, speed = undefined
11
+ var props = { opacity: opacity }
12
+ if (scale) {
13
+ props.scale = scale
14
+ el.css($.fx.cssPrefix + 'transform-origin', '0 0')
15
+ }
16
+ return el.animate(props, speed, null, callback)
17
+ }
18
+
19
+ function hide(el, speed, scale, callback) {
20
+ return anim(el, speed, 0, scale, function(){
21
+ origHide.call($(this))
22
+ callback && callback.call(this)
23
+ })
24
+ }
25
+
26
+ $.fn.show = function(speed, callback) {
27
+ origShow.call(this)
28
+ if (speed === undefined) speed = 0
29
+ else this.css('opacity', 0)
30
+ return anim(this, speed, 1, '1,1', callback)
31
+ }
32
+
33
+ $.fn.hide = function(speed, callback) {
34
+ if (speed === undefined) return origHide.call(this)
35
+ else return hide(this, speed, '0,0', callback)
36
+ }
37
+
38
+ $.fn.toggle = function(speed, callback) {
39
+ if (speed === undefined || typeof speed == 'boolean')
40
+ return origToggle.call(this, speed)
41
+ else return this.each(function(){
42
+ var el = $(this)
43
+ el[el.css('display') == 'none' ? 'show' : 'hide'](speed, callback)
44
+ })
45
+ }
46
+
47
+ $.fn.fadeTo = function(speed, opacity, callback) {
48
+ return anim(this, speed, opacity, null, callback)
49
+ }
50
+
51
+ $.fn.fadeIn = function(speed, callback) {
52
+ var target = this.css('opacity')
53
+ if (target > 0) this.css('opacity', 0)
54
+ else target = 1
55
+ return origShow.call(this).fadeTo(speed, target, callback)
56
+ }
57
+
58
+ $.fn.fadeOut = function(speed, callback) {
59
+ return hide(this, speed, null, callback)
60
+ }
61
+
62
+ $.fn.fadeToggle = function(speed, callback) {
63
+ return this.each(function(){
64
+ var el = $(this)
65
+ el[
66
+ (el.css('opacity') == 0 || el.css('display') == 'none') ? 'fadeIn' : 'fadeOut'
67
+ ](speed, callback)
68
+ })
69
+ }
70
+
71
+ })(Zepto)
@@ -0,0 +1,35 @@
1
+ // Zepto.js
2
+ // (c) 2010-2012 Thomas Fuchs
3
+ // Zepto.js may be freely distributed under the MIT license.
4
+
5
+ ;(function($){
6
+ if ($.os.ios) {
7
+ var gesture = {}, gestureTimeout
8
+
9
+ function parentIfText(node){
10
+ return 'tagName' in node ? node : node.parentNode
11
+ }
12
+
13
+ $(document).bind('gesturestart', function(e){
14
+ var now = Date.now(), delta = now - (gesture.last || now)
15
+ gesture.target = parentIfText(e.target)
16
+ gestureTimeout && clearTimeout(gestureTimeout)
17
+ gesture.e1 = e.scale
18
+ gesture.last = now
19
+ }).bind('gesturechange', function(e){
20
+ gesture.e2 = e.scale
21
+ }).bind('gestureend', function(e){
22
+ if (gesture.e2 > 0) {
23
+ Math.abs(gesture.e1 - gesture.e2) != 0 && $(gesture.target).trigger('pinch') &&
24
+ $(gesture.target).trigger('pinch' + (gesture.e1 - gesture.e2 > 0 ? 'In' : 'Out'))
25
+ gesture.e1 = gesture.e2 = gesture.last = 0
26
+ } else if ('last' in gesture) {
27
+ gesture = {}
28
+ }
29
+ })
30
+
31
+ ;['pinch', 'pinchIn', 'pinchOut'].forEach(function(m){
32
+ $.fn[m] = function(callback){ return this.bind(m, callback) }
33
+ })
34
+ }
35
+ })(Zepto)
@@ -0,0 +1,81 @@
1
+ ;(function($){
2
+ var zepto = $.zepto, oldQsa = zepto.qsa, oldMatches = zepto.matches
3
+
4
+ function visible(elem){
5
+ elem = $(elem)
6
+ return !!(elem.width() || elem.height()) && elem.css("display") !== "none"
7
+ }
8
+
9
+ // Implements a subset from:
10
+ // http://api.jquery.com/category/selectors/jquery-selector-extensions/
11
+ //
12
+ // Each filter function receives the current index, all nodes in the
13
+ // considered set, and a value if there were parentheses. The value
14
+ // of `this` is the node currently being considered. The function returns the
15
+ // resulting node(s), null, or undefined.
16
+ //
17
+ // Complex selectors are not supported:
18
+ // li:has(label:contains("foo")) + li:has(label:contains("bar"))
19
+ // ul.inner:first > li
20
+ var filters = $.expr[':'] = {
21
+ visible: function(){ if (visible(this)) return this },
22
+ hidden: function(){ if (!visible(this)) return this },
23
+ selected: function(){ if (this.selected) return this },
24
+ checked: function(){ if (this.checked) return this },
25
+ parent: function(){ return this.parentNode },
26
+ first: function(idx){ if (idx === 0) return this },
27
+ last: function(idx, nodes){ if (idx === nodes.length - 1) return this },
28
+ eq: function(idx, _, value){ if (idx === value) return this },
29
+ contains: function(idx, _, text){ if ($(this).text().indexOf(text) > -1) return this },
30
+ has: function(idx, _, sel){ if (zepto.qsa(this, sel).length) return this }
31
+ }
32
+
33
+ var filterRe = new RegExp('(.*):(\\w+)(?:\\(([^)]+)\\))?$\\s*'),
34
+ childRe = /^\s*>/,
35
+ classTag = 'Zepto' + (+new Date())
36
+
37
+ function process(sel, fn) {
38
+ // quote the hash in `a[href^=#]` expression
39
+ sel = sel.replace(/=#\]/g, '="#"]')
40
+ var filter, arg, match = filterRe.exec(sel)
41
+ if (match && match[2] in filters) {
42
+ filter = filters[match[2]], arg = match[3]
43
+ sel = match[1]
44
+ if (arg) {
45
+ var num = Number(arg)
46
+ if (isNaN(num)) arg = arg.replace(/^["']|["']$/g, '')
47
+ else arg = num
48
+ }
49
+ }
50
+ return fn(sel, filter, arg)
51
+ }
52
+
53
+ zepto.qsa = function(node, selector) {
54
+ return process(selector, function(sel, filter, arg){
55
+ try {
56
+ var taggedParent
57
+ if (!sel && filter) sel = '*'
58
+ else if (childRe.test(sel))
59
+ // support "> *" child queries by tagging the parent node with a
60
+ // unique class and prepending that classname onto the selector
61
+ taggedParent = $(node).addClass(classTag), sel = '.'+classTag+' '+sel
62
+
63
+ var nodes = oldQsa(node, sel)
64
+ } catch(e) {
65
+ console.error('error performing selector: %o', selector)
66
+ throw e
67
+ } finally {
68
+ if (taggedParent) taggedParent.removeClass(classTag)
69
+ }
70
+ return !filter ? nodes :
71
+ zepto.uniq($.map(nodes, function(n, i){ return filter.call(n, i, nodes, arg) }))
72
+ })
73
+ }
74
+
75
+ zepto.matches = function(node, selector){
76
+ return process(selector, function(sel, filter, arg){
77
+ return (!sel || oldMatches(node, sel)) &&
78
+ (!filter || filter.call(node, null, arg) === node)
79
+ })
80
+ }
81
+ })(Zepto)