agnostic-frontend 0.0.1 → 1.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 +15 -0
- data/README.md +1 -0
- data/lib/agnostic/.DS_Store +0 -0
- data/lib/agnostic/frontend/version.rb +1 -1
- data/vendor/assets/javascripts/modernizr.js +22 -13
- data/vendor/assets/javascripts/yepnope.js +2 -0
- metadata +25 -17
checksums.yaml
ADDED
@@ -0,0 +1,15 @@
|
|
1
|
+
---
|
2
|
+
!binary "U0hBMQ==":
|
3
|
+
metadata.gz: !binary |-
|
4
|
+
ZWE5M2UwMzRmZGU2OTExYmY0NDIzM2UxMDMzODRhNzI4NmI4N2Q3Yg==
|
5
|
+
data.tar.gz: !binary |-
|
6
|
+
MDliZWFhODUxZDY0MmNkYTU5YzlkNjFlZjNhYjNjNGFiMTI0YWZkZQ==
|
7
|
+
!binary "U0hBNTEy":
|
8
|
+
metadata.gz: !binary |-
|
9
|
+
YjcwODAyNDk3MTQxODgwMzFlN2ZmMTMxOTFjNmZlNDJiYjYyNTBkZDUxMmYw
|
10
|
+
YzZiZjlkNTIzZjhkMjMzZGQ3MmE4YzJjMjNkMGU3MGM2YzliYzJlMzYyMjU0
|
11
|
+
YzgwOTA1M2UyNmYwN2Y3Yzk2ZGU5MGNmYmU4Y2YwOWI2OWRmNjg=
|
12
|
+
data.tar.gz: !binary |-
|
13
|
+
MDZmMzRiYTliZDFiNjBhYzA1ZGNkZDhmMTdkODQzYjNmODg1ZDhjNGZmMzdk
|
14
|
+
OWI2NDA4NDA2ZWQyZmY5ZDNhNzliYzI4NWU4ZDdjNjZiYTAyYzJmMjg2YTdi
|
15
|
+
MzU1ZDdhMzFiYjJmYzZmMjM5NDdkNDhiOTAwYjFlMGExOWQ1Y2U=
|
data/README.md
CHANGED
@@ -71,6 +71,7 @@ These files are nested under the path 'grid', so if you want to include the a re
|
|
71
71
|
//= bootstrap.min # version 2.1.0
|
72
72
|
//= jquery.cookie # how is this not included in jquery core??
|
73
73
|
//= modernizr # how is this not included in jquery core??
|
74
|
+
//= yepnope #conditional loading of files
|
74
75
|
|
75
76
|
## Installation
|
76
77
|
|
Binary file
|
@@ -1,5 +1,5 @@
|
|
1
1
|
/*!
|
2
|
-
* Modernizr v2.6.
|
2
|
+
* Modernizr v2.6.2
|
3
3
|
* www.modernizr.com
|
4
4
|
*
|
5
5
|
* Copyright (c) Faruk Ates, Paul Irish, Alex Sexton
|
@@ -24,7 +24,7 @@
|
|
24
24
|
|
25
25
|
window.Modernizr = (function( window, document, undefined ) {
|
26
26
|
|
27
|
-
var version = '2.6.
|
27
|
+
var version = '2.6.2',
|
28
28
|
|
29
29
|
Modernizr = {},
|
30
30
|
|
@@ -96,12 +96,12 @@ window.Modernizr = (function( window, document, undefined ) {
|
|
96
96
|
// Inject element with style element and some CSS rules
|
97
97
|
injectElementWithStyles = function( rule, callback, nodes, testnames ) {
|
98
98
|
|
99
|
-
var style, ret, node,
|
99
|
+
var style, ret, node, docOverflow,
|
100
100
|
div = document.createElement('div'),
|
101
101
|
// After page load injecting a fake body doesn't work so check if body exists
|
102
102
|
body = document.body,
|
103
103
|
// IE6 and 7 won't return offsetWidth or offsetHeight unless it's in the body element, so we fake it.
|
104
|
-
fakeBody = body
|
104
|
+
fakeBody = body || document.createElement('body');
|
105
105
|
|
106
106
|
if ( parseInt(nodes, 10) ) {
|
107
107
|
// In order not to give false positives we create a node for each test
|
@@ -126,13 +126,22 @@ window.Modernizr = (function( window, document, undefined ) {
|
|
126
126
|
fakeBody.appendChild(div);
|
127
127
|
if ( !body ) {
|
128
128
|
//avoid crashing IE8, if background image is used
|
129
|
-
fakeBody.style.background =
|
129
|
+
fakeBody.style.background = '';
|
130
|
+
//Safari 5.13/5.1.4 OSX stops loading if ::-webkit-scrollbar is used and scrollbars are visible
|
131
|
+
fakeBody.style.overflow = 'hidden';
|
132
|
+
docOverflow = docElement.style.overflow;
|
133
|
+
docElement.style.overflow = 'hidden';
|
130
134
|
docElement.appendChild(fakeBody);
|
131
135
|
}
|
132
136
|
|
133
137
|
ret = callback(div, rule);
|
134
138
|
// If this is done after page load we don't want to remove the body so check if body exists
|
135
|
-
!body
|
139
|
+
if ( !body ) {
|
140
|
+
fakeBody.parentNode.removeChild(fakeBody);
|
141
|
+
docElement.style.overflow = docOverflow;
|
142
|
+
} else {
|
143
|
+
div.parentNode.removeChild(div);
|
144
|
+
}
|
136
145
|
|
137
146
|
return !!ret;
|
138
147
|
|
@@ -692,8 +701,8 @@ window.Modernizr = (function( window, document, undefined ) {
|
|
692
701
|
tests['generatedcontent'] = function() {
|
693
702
|
var bool;
|
694
703
|
|
695
|
-
injectElementWithStyles(['#
|
696
|
-
bool = node.offsetHeight >=
|
704
|
+
injectElementWithStyles(['#',mod,'{font:0/0 a}#',mod,':after{content:"',smile,'";visibility:hidden;font:3px/1 a}'].join(''), function( node ) {
|
705
|
+
bool = node.offsetHeight >= 3;
|
697
706
|
});
|
698
707
|
|
699
708
|
return bool;
|
@@ -979,7 +988,7 @@ window.Modernizr = (function( window, document, undefined ) {
|
|
979
988
|
|
980
989
|
test = typeof test == 'function' ? test() : test;
|
981
990
|
|
982
|
-
if (enableClasses) {
|
991
|
+
if (typeof enableClasses !== "undefined" && enableClasses) {
|
983
992
|
docElement.className += ' ' + (test ? '' : 'no-') + feature;
|
984
993
|
}
|
985
994
|
Modernizr[feature] = test;
|
@@ -995,7 +1004,7 @@ window.Modernizr = (function( window, document, undefined ) {
|
|
995
1004
|
modElem = inputElem = null;
|
996
1005
|
|
997
1006
|
/*>>shiv*/
|
998
|
-
/*! HTML5 Shiv v3.6 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */
|
1007
|
+
/*! HTML5 Shiv v3.6.1 | @afarkas @jdalton @jon_neal @rem | MIT/GPL2 Licensed */
|
999
1008
|
;(function(window, document) {
|
1000
1009
|
/*jshint evil:true */
|
1001
1010
|
/** Preset options */
|
@@ -1004,8 +1013,8 @@ window.Modernizr = (function( window, document, undefined ) {
|
|
1004
1013
|
/** Used to skip problem elements */
|
1005
1014
|
var reSkip = /^<|^(?:button|map|select|textarea|object|iframe|option|optgroup)$/i;
|
1006
1015
|
|
1007
|
-
/** Not all elements can be cloned in IE
|
1008
|
-
var saveClones =
|
1016
|
+
/** Not all elements can be cloned in IE **/
|
1017
|
+
var saveClones = /^(?:a|b|code|div|fieldset|h1|h2|h3|h4|h5|h6|i|label|li|ol|p|q|span|strong|style|table|tbody|td|th|tr|ul)$/i;
|
1009
1018
|
|
1010
1019
|
/** Detect whether the browser supports default html5 styles */
|
1011
1020
|
var supportsHtml5Styles;
|
@@ -1381,4 +1390,4 @@ window.Modernizr = (function( window, document, undefined ) {
|
|
1381
1390
|
|
1382
1391
|
return Modernizr;
|
1383
1392
|
|
1384
|
-
})(this, this.document);
|
1393
|
+
})(this, this.document);
|
@@ -0,0 +1,2 @@
|
|
1
|
+
/*yepnope1.5.x|WTFPL*/
|
2
|
+
(function(a,b,c){function d(a){return"[object Function]"==o.call(a)}function e(a){return"string"==typeof a}function f(){}function g(a){return!a||"loaded"==a||"complete"==a||"uninitialized"==a}function h(){var a=p.shift();q=1,a?a.t?m(function(){("c"==a.t?B.injectCss:B.injectJs)(a.s,0,a.a,a.x,a.e,1)},0):(a(),h()):q=0}function i(a,c,d,e,f,i,j){function k(b){if(!o&&g(l.readyState)&&(u.r=o=1,!q&&h(),l.onload=l.onreadystatechange=null,b)){"img"!=a&&m(function(){t.removeChild(l)},50);for(var d in y[c])y[c].hasOwnProperty(d)&&y[c][d].onload()}}var j=j||B.errorTimeout,l=b.createElement(a),o=0,r=0,u={t:d,s:c,e:f,a:i,x:j};1===y[c]&&(r=1,y[c]=[]),"object"==a?l.data=c:(l.src=c,l.type=a),l.width=l.height="0",l.onerror=l.onload=l.onreadystatechange=function(){k.call(this,r)},p.splice(e,0,u),"img"!=a&&(r||2===y[c]?(t.insertBefore(l,s?null:n),m(k,j)):y[c].push(l))}function j(a,b,c,d,f){return q=0,b=b||"j",e(a)?i("c"==b?v:u,a,b,this.i++,c,d,f):(p.splice(this.i++,0,a),1==p.length&&h()),this}function k(){var a=B;return a.loader={load:j,i:0},a}var l=b.documentElement,m=a.setTimeout,n=b.getElementsByTagName("script")[0],o={}.toString,p=[],q=0,r="MozAppearance"in l.style,s=r&&!!b.createRange().compareNode,t=s?l:n.parentNode,l=a.opera&&"[object Opera]"==o.call(a.opera),l=!!b.attachEvent&&!l,u=r?"object":l?"script":"img",v=l?"script":u,w=Array.isArray||function(a){return"[object Array]"==o.call(a)},x=[],y={},z={timeout:function(a,b){return b.length&&(a.timeout=b[0]),a}},A,B;B=function(a){function b(a){var a=a.split("!"),b=x.length,c=a.pop(),d=a.length,c={url:c,origUrl:c,prefixes:a},e,f,g;for(f=0;f<d;f++)g=a[f].split("="),(e=z[g.shift()])&&(c=e(c,g));for(f=0;f<b;f++)c=x[f](c);return c}function g(a,e,f,g,h){var i=b(a),j=i.autoCallback;i.url.split(".").pop().split("?").shift(),i.bypass||(e&&(e=d(e)?e:e[a]||e[g]||e[a.split("/").pop().split("?")[0]]),i.instead?i.instead(a,e,f,g,h):(y[i.url]?i.noexec=!0:y[i.url]=1,f.load(i.url,i.forceCSS||!i.forceJS&&"css"==i.url.split(".").pop().split("?").shift()?"c":c,i.noexec,i.attrs,i.timeout),(d(e)||d(j))&&f.load(function(){k(),e&&e(i.origUrl,h,g),j&&j(i.origUrl,h,g),y[i.url]=2})))}function h(a,b){function c(a,c){if(a){if(e(a))c||(j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}),g(a,j,b,0,h);else if(Object(a)===a)for(n in m=function(){var b=0,c;for(c in a)a.hasOwnProperty(c)&&b++;return b}(),a)a.hasOwnProperty(n)&&(!c&&!--m&&(d(j)?j=function(){var a=[].slice.call(arguments);k.apply(this,a),l()}:j[n]=function(a){return function(){var b=[].slice.call(arguments);a&&a.apply(this,b),l()}}(k[n])),g(a[n],j,b,n,h))}else!c&&l()}var h=!!a.test,i=a.load||a.both,j=a.callback||f,k=j,l=a.complete||f,m,n;c(h?a.yep:a.nope,!!i),i&&c(i)}var i,j,l=this.yepnope.loader;if(e(a))g(a,0,l,0);else if(w(a))for(i=0;i<a.length;i++)j=a[i],e(j)?g(j,0,l,0):w(j)?B(j):Object(j)===j&&h(j,l);else Object(a)===a&&h(a,l)},B.addPrefix=function(a,b){z[a]=b},B.addFilter=function(a){x.push(a)},B.errorTimeout=1e4,null==b.readyState&&b.addEventListener&&(b.readyState="loading",b.addEventListener("DOMContentLoaded",A=function(){b.removeEventListener("DOMContentLoaded",A,0),b.readyState="complete"},0)),a.yepnope=k(),a.yepnope.executeStack=h,a.yepnope.injectJs=function(a,c,d,e,i,j){var k=b.createElement("script"),l,o,e=e||B.errorTimeout;k.src=a;for(o in d)k.setAttribute(o,d[o]);c=j?h:c||f,k.onreadystatechange=k.onload=function(){!l&&g(k.readyState)&&(l=1,c(),k.onload=k.onreadystatechange=null)},m(function(){l||(l=1,c(1))},e),i?k.onload():n.parentNode.insertBefore(k,n)},a.yepnope.injectCss=function(a,c,d,e,g,i){var e=b.createElement("link"),j,c=i?h:c||f;e.href=a,e.rel="stylesheet",e.type="text/css";for(j in d)e.setAttribute(j,d[j]);g||(n.parentNode.insertBefore(e,n),m(c,0))}})(this,document);
|
metadata
CHANGED
@@ -1,49 +1,57 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: agnostic-frontend
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version:
|
5
|
-
prerelease:
|
4
|
+
version: 1.0.1
|
6
5
|
platform: ruby
|
7
6
|
authors:
|
8
7
|
- Han
|
9
8
|
autorequire:
|
10
9
|
bindir: bin
|
11
10
|
cert_chain: []
|
12
|
-
date:
|
11
|
+
date: 2013-04-05 00:00:00.000000000 Z
|
13
12
|
dependencies:
|
14
13
|
- !ruby/object:Gem::Dependency
|
15
14
|
name: railties
|
16
|
-
requirement:
|
17
|
-
none: false
|
15
|
+
requirement: !ruby/object:Gem::Requirement
|
18
16
|
requirements:
|
19
17
|
- - ! '>='
|
20
18
|
- !ruby/object:Gem::Version
|
21
19
|
version: 3.1.0
|
22
20
|
type: :runtime
|
23
21
|
prerelease: false
|
24
|
-
version_requirements:
|
22
|
+
version_requirements: !ruby/object:Gem::Requirement
|
23
|
+
requirements:
|
24
|
+
- - ! '>='
|
25
|
+
- !ruby/object:Gem::Version
|
26
|
+
version: 3.1.0
|
25
27
|
- !ruby/object:Gem::Dependency
|
26
28
|
name: bundler
|
27
|
-
requirement:
|
28
|
-
none: false
|
29
|
+
requirement: !ruby/object:Gem::Requirement
|
29
30
|
requirements:
|
30
31
|
- - ! '>='
|
31
32
|
- !ruby/object:Gem::Version
|
32
33
|
version: 1.0.0
|
33
34
|
type: :development
|
34
35
|
prerelease: false
|
35
|
-
version_requirements:
|
36
|
+
version_requirements: !ruby/object:Gem::Requirement
|
37
|
+
requirements:
|
38
|
+
- - ! '>='
|
39
|
+
- !ruby/object:Gem::Version
|
40
|
+
version: 1.0.0
|
36
41
|
- !ruby/object:Gem::Dependency
|
37
42
|
name: rails
|
38
|
-
requirement:
|
39
|
-
none: false
|
43
|
+
requirement: !ruby/object:Gem::Requirement
|
40
44
|
requirements:
|
41
45
|
- - ~>
|
42
46
|
- !ruby/object:Gem::Version
|
43
47
|
version: '3.1'
|
44
48
|
type: :development
|
45
49
|
prerelease: false
|
46
|
-
version_requirements:
|
50
|
+
version_requirements: !ruby/object:Gem::Requirement
|
51
|
+
requirements:
|
52
|
+
- - ~>
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '3.1'
|
47
55
|
description: ! ' Leveraging the asset pipeline to ease the pain of bootstrapping frontend
|
48
56
|
development. Basically includes a varienty of css resets/ grid systems / basic javascripts
|
49
57
|
which you can then include in your manifest files '
|
@@ -62,6 +70,7 @@ files:
|
|
62
70
|
- agnostic-frontend.gemspec
|
63
71
|
- lib/.DS_Store
|
64
72
|
- lib/agnostic-frontend.rb
|
73
|
+
- lib/agnostic/.DS_Store
|
65
74
|
- lib/agnostic/frontend/engine.rb
|
66
75
|
- lib/agnostic/frontend/version.rb
|
67
76
|
- vendor/.DS_Store
|
@@ -71,6 +80,7 @@ files:
|
|
71
80
|
- vendor/assets/javascripts/bootstrap.min.js
|
72
81
|
- vendor/assets/javascripts/jquery.cookie.js
|
73
82
|
- vendor/assets/javascripts/modernizr.js
|
83
|
+
- vendor/assets/javascripts/yepnope.js
|
74
84
|
- vendor/assets/stylesheets/.DS_Store
|
75
85
|
- vendor/assets/stylesheets/grid/.DS_Store
|
76
86
|
- vendor/assets/stylesheets/grid/960.css
|
@@ -107,29 +117,27 @@ files:
|
|
107
117
|
- vendor/assets/stylesheets/reset/yui3.min.css
|
108
118
|
homepage: ''
|
109
119
|
licenses: []
|
120
|
+
metadata: {}
|
110
121
|
post_install_message:
|
111
122
|
rdoc_options: []
|
112
123
|
require_paths:
|
113
124
|
- lib
|
114
125
|
- vendor
|
115
126
|
required_ruby_version: !ruby/object:Gem::Requirement
|
116
|
-
none: false
|
117
127
|
requirements:
|
118
128
|
- - ! '>='
|
119
129
|
- !ruby/object:Gem::Version
|
120
130
|
version: '0'
|
121
131
|
required_rubygems_version: !ruby/object:Gem::Requirement
|
122
|
-
none: false
|
123
132
|
requirements:
|
124
133
|
- - ! '>='
|
125
134
|
- !ruby/object:Gem::Version
|
126
135
|
version: '0'
|
127
136
|
requirements: []
|
128
137
|
rubyforge_project:
|
129
|
-
rubygems_version:
|
138
|
+
rubygems_version: 2.0.2
|
130
139
|
signing_key:
|
131
|
-
specification_version:
|
140
|
+
specification_version: 4
|
132
141
|
summary: Basically includes a varienty of css resets/ grid systems / basic javascripts
|
133
142
|
which you can then include in your manifest files.
|
134
143
|
test_files: []
|
135
|
-
has_rdoc:
|