bootstrapped-rails 2.0.8.2 → 2.0.8.3

Sign up to get free protection for your applications and to get access to all the features.
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrapped-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 2.0.8.2
4
+ version: 2.0.8.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -13,7 +13,7 @@ date: 2012-05-04 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: sass
16
- requirement: &70303480822380 !ruby/object:Gem::Requirement
16
+ requirement: &70237358641860 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: 3.1.0
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70303480822380
24
+ version_requirements: *70237358641860
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: bundler
27
- requirement: &70303480821880 !ruby/object:Gem::Requirement
27
+ requirement: &70237358641360 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ~>
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: 1.0.0
33
33
  type: :development
34
34
  prerelease: false
35
- version_requirements: *70303480821880
35
+ version_requirements: *70237358641360
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rails
38
- requirement: &70303480821420 !ruby/object:Gem::Requirement
38
+ requirement: &70237358640900 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ~>
@@ -43,7 +43,7 @@ dependencies:
43
43
  version: '3.1'
44
44
  type: :development
45
45
  prerelease: false
46
- version_requirements: *70303480821420
46
+ version_requirements: *70237358640900
47
47
  description: ! ' This is a hacked-together version of the gem ''bootstrap-sass'',
48
48
  with the generators from ''twitter-bootstrap-rails'', has also replaced the Glyphicons
49
49
  icons with [Font Awesome](http://fortawesome.github.com/Font-Awesome/), since svg
@@ -118,21 +118,6 @@ files:
118
118
  - vendor/assets/images/glyphicons-halflings.png
119
119
  - vendor/assets/javascripts/.DS_Store
120
120
  - vendor/assets/javascripts/bootstrapped.js
121
- - vendor/assets/javascripts/bootstrapped/.DS_Store
122
- - vendor/assets/javascripts/bootstrapped/README.md
123
- - vendor/assets/javascripts/bootstrapped/bootstrap-alert.js
124
- - vendor/assets/javascripts/bootstrapped/bootstrap-button.js
125
- - vendor/assets/javascripts/bootstrapped/bootstrap-carousel.js
126
- - vendor/assets/javascripts/bootstrapped/bootstrap-collapse.js
127
- - vendor/assets/javascripts/bootstrapped/bootstrap-dropdown.js
128
- - vendor/assets/javascripts/bootstrapped/bootstrap-modal.js
129
- - vendor/assets/javascripts/bootstrapped/bootstrap-popover.js
130
- - vendor/assets/javascripts/bootstrapped/bootstrap-scrollspy.js
131
- - vendor/assets/javascripts/bootstrapped/bootstrap-tab.js
132
- - vendor/assets/javascripts/bootstrapped/bootstrap-tooltip.js
133
- - vendor/assets/javascripts/bootstrapped/bootstrap-transition.js
134
- - vendor/assets/javascripts/bootstrapped/bootstrap-typeahead.js
135
- - vendor/assets/javascripts/bootstrapped/jquery-cookie.js
136
121
  - vendor/assets/javascripts/bootstrapped_subnavigation.js
137
122
  - vendor/assets/stylesheets/_bootstrap-responsive.scss
138
123
  - vendor/assets/stylesheets/_bootstrap.scss
@@ -1,106 +0,0 @@
1
- ## 2.0 BOOTSTRAP JS PHILOSOPHY
2
- These are the high-level design rules which guide the development of Bootstrap's plugin apis.
3
-
4
- ---
5
-
6
- ### DATA-ATTRIBUTE API
7
-
8
- We believe you should be able to use all plugins provided by Bootstrap purely through the markup API without writing a single line of javascript.
9
-
10
- We acknowledge that this isn't always the most performant and sometimes it may be desirable to turn this functionality off altogether. Therefore, as of 2.0 we provide the ability to disable the data attribute API by unbinding all events on the body namespaced with `'data-api'`. This looks like this:
11
-
12
- $('body').off('.data-api')
13
-
14
- To target a specific plugin, just include the plugins name as a namespace along with the data-api namespace like this:
15
-
16
- $('body').off('.alert.data-api')
17
-
18
- ---
19
-
20
- ### PROGRAMATIC API
21
-
22
- We also believe you should be able to use all plugins provided by Bootstrap purely through the JS API.
23
-
24
- All public APIs should be single, chainable methods, and return the collection acted upon.
25
-
26
- $(".btn.danger").button("toggle").addClass("fat")
27
-
28
- All methods should accept an optional options object, a string which targets a particular method, or null which initiates the default behavior:
29
-
30
- $("#myModal").modal() // initialized with defaults
31
- $("#myModal").modal({ keyboard: false }) // initialized with now keyboard
32
- $("#myModal").modal('show') // initializes and invokes show immediately afterqwe2
33
-
34
- ---
35
-
36
- ### OPTIONS
37
-
38
- Options should be sparse and add universal value. We should pick the right defaults.
39
-
40
- All plugins should have a default object which can be modified to affect all instances' default options. The defaults object should be available via `$.fn.plugin.defaults`.
41
-
42
- $.fn.modal.defaults = { … }
43
-
44
- An options definition should take the following form:
45
-
46
- *noun*: *adjective* - describes or modifies a quality of an instance
47
-
48
- examples:
49
-
50
- backdrop: true
51
- keyboard: false
52
- placement: 'top'
53
-
54
- ---
55
-
56
- ### EVENTS
57
-
58
- All events should have an infinitive and past participle form. The infinitive is fired just before an action takes place, the past participle on completion of the action.
59
-
60
- show | shown
61
- hide | hidden
62
-
63
- ---
64
-
65
- ### CONSTRUCTORS
66
-
67
- Each plugin should expose its raw constructor on a `Constructor` property -- accessed in the following way:
68
-
69
-
70
- $.fn.popover.Constructor
71
-
72
- ---
73
-
74
- ### DATA ACCESSOR
75
-
76
- Each plugin stores a copy of the invoked class on an object. This class instance can be accessed directly through jQuery's data API like this:
77
-
78
- $('[rel=popover]').data('popover') instanceof $.fn.popover.Constructor
79
-
80
- ---
81
-
82
- ### DATA ATTRIBUTES
83
-
84
- Data attributes should take the following form:
85
-
86
- - data-{{verb}}={{plugin}} - defines main interaction
87
- - data-target || href^=# - defined on "control" element (if element controls an element other than self)
88
- - data-{{noun}} - defines class instance options
89
-
90
- examples:
91
-
92
- // control other targets
93
- data-toggle="modal" data-target="#foo"
94
- data-toggle="collapse" data-target="#foo" data-parent="#bar"
95
-
96
- // defined on element they control
97
- data-spy="scroll"
98
-
99
- data-dismiss="modal"
100
- data-dismiss="alert"
101
-
102
- data-toggle="dropdown"
103
-
104
- data-toggle="button"
105
- data-toggle="buttons-checkbox"
106
- data-toggle="buttons-radio"
@@ -1,94 +0,0 @@
1
- /* ==========================================================
2
- * bootstrap-alert.js v2.0.2
3
- * http://twitter.github.com/bootstrap/javascript.html#alerts
4
- * ==========================================================
5
- * Copyright 2012 Twitter, Inc.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- * ========================================================== */
19
-
20
-
21
- !function( $ ){
22
-
23
- "use strict"
24
-
25
- /* ALERT CLASS DEFINITION
26
- * ====================== */
27
-
28
- var dismiss = '[data-dismiss="alert"]'
29
- , Alert = function ( el ) {
30
- $(el).on('click', dismiss, this.close)
31
- }
32
-
33
- Alert.prototype = {
34
-
35
- constructor: Alert
36
-
37
- , close: function ( e ) {
38
- var $this = $(this)
39
- , selector = $this.attr('data-target')
40
- , $parent
41
-
42
- if (!selector) {
43
- selector = $this.attr('href')
44
- selector = selector && selector.replace(/.*(?=#[^\s]*$)/, '') //strip for ie7
45
- }
46
-
47
- $parent = $(selector)
48
- $parent.trigger('close')
49
-
50
- e && e.preventDefault()
51
-
52
- $parent.length || ($parent = $this.hasClass('alert') ? $this : $this.parent())
53
-
54
- $parent
55
- .trigger('close')
56
- .removeClass('in')
57
-
58
- function removeElement() {
59
- $parent
60
- .trigger('closed')
61
- .remove()
62
- }
63
-
64
- $.support.transition && $parent.hasClass('fade') ?
65
- $parent.on($.support.transition.end, removeElement) :
66
- removeElement()
67
- }
68
-
69
- }
70
-
71
-
72
- /* ALERT PLUGIN DEFINITION
73
- * ======================= */
74
-
75
- $.fn.alert = function ( option ) {
76
- return this.each(function () {
77
- var $this = $(this)
78
- , data = $this.data('alert')
79
- if (!data) $this.data('alert', (data = new Alert(this)))
80
- if (typeof option == 'string') data[option].call($this)
81
- })
82
- }
83
-
84
- $.fn.alert.Constructor = Alert
85
-
86
-
87
- /* ALERT DATA-API
88
- * ============== */
89
-
90
- $(function () {
91
- $('body').on('click.alert.data-api', dismiss, Alert.prototype.close)
92
- })
93
-
94
- }( window.jQuery );
@@ -1,100 +0,0 @@
1
- /* ============================================================
2
- * bootstrap-button.js v2.0.2
3
- * http://twitter.github.com/bootstrap/javascript.html#buttons
4
- * ============================================================
5
- * Copyright 2012 Twitter, Inc.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- * ============================================================ */
19
-
20
- !function( $ ){
21
-
22
- "use strict"
23
-
24
- /* BUTTON PUBLIC CLASS DEFINITION
25
- * ============================== */
26
-
27
- var Button = function ( element, options ) {
28
- this.$element = $(element)
29
- this.options = $.extend({}, $.fn.button.defaults, options)
30
- }
31
-
32
- Button.prototype = {
33
-
34
- constructor: Button
35
-
36
- , setState: function ( state ) {
37
- var d = 'disabled'
38
- , $el = this.$element
39
- , data = $el.data()
40
- , val = $el.is('input') ? 'val' : 'html'
41
-
42
- state = state + 'Text'
43
- data.resetText || $el.data('resetText', $el[val]())
44
-
45
- $el[val](data[state] || this.options[state])
46
-
47
- // push to event loop to allow forms to submit
48
- setTimeout(function () {
49
- state == 'loadingText' ?
50
- $el.addClass(d).attr(d, d) :
51
- $el.removeClass(d).removeAttr(d)
52
- }, 0)
53
- }
54
-
55
- , toggle: function () {
56
- var $parent = this.$element.parent('[data-toggle="buttons-radio"]')
57
-
58
- $parent && $parent
59
- .find('.active')
60
- .removeClass('active')
61
-
62
- this.$element.toggleClass('active')
63
- }
64
-
65
- }
66
-
67
-
68
- /* BUTTON PLUGIN DEFINITION
69
- * ======================== */
70
-
71
- $.fn.button = function ( option ) {
72
- return this.each(function () {
73
- var $this = $(this)
74
- , data = $this.data('button')
75
- , options = typeof option == 'object' && option
76
- if (!data) $this.data('button', (data = new Button(this, options)))
77
- if (option == 'toggle') data.toggle()
78
- else if (option) data.setState(option)
79
- })
80
- }
81
-
82
- $.fn.button.defaults = {
83
- loadingText: 'loading...'
84
- }
85
-
86
- $.fn.button.Constructor = Button
87
-
88
-
89
- /* BUTTON DATA-API
90
- * =============== */
91
-
92
- $(function () {
93
- $('body').on('click.button.data-api', '[data-toggle^=button]', function ( e ) {
94
- var $btn = $(e.target)
95
- if (!$btn.hasClass('btn')) $btn = $btn.closest('.btn')
96
- $btn.button('toggle')
97
- })
98
- })
99
-
100
- }( window.jQuery );
@@ -1,161 +0,0 @@
1
- /* ==========================================================
2
- * bootstrap-carousel.js v2.0.2
3
- * http://twitter.github.com/bootstrap/javascript.html#carousel
4
- * ==========================================================
5
- * Copyright 2012 Twitter, Inc.
6
- *
7
- * Licensed under the Apache License, Version 2.0 (the "License");
8
- * you may not use this file except in compliance with the License.
9
- * You may obtain a copy of the License at
10
- *
11
- * http://www.apache.org/licenses/LICENSE-2.0
12
- *
13
- * Unless required by applicable law or agreed to in writing, software
14
- * distributed under the License is distributed on an "AS IS" BASIS,
15
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
16
- * See the License for the specific language governing permissions and
17
- * limitations under the License.
18
- * ========================================================== */
19
-
20
-
21
- !function( $ ){
22
-
23
- "use strict"
24
-
25
- /* CAROUSEL CLASS DEFINITION
26
- * ========================= */
27
-
28
- var Carousel = function (element, options) {
29
- this.$element = $(element)
30
- this.options = $.extend({}, $.fn.carousel.defaults, options)
31
- this.options.slide && this.slide(this.options.slide)
32
- this.options.pause == 'hover' && this.$element
33
- .on('mouseenter', $.proxy(this.pause, this))
34
- .on('mouseleave', $.proxy(this.cycle, this))
35
- }
36
-
37
- Carousel.prototype = {
38
-
39
- cycle: function () {
40
- this.interval = setInterval($.proxy(this.next, this), this.options.interval)
41
- return this
42
- }
43
-
44
- , to: function (pos) {
45
- var $active = this.$element.find('.active')
46
- , children = $active.parent().children()
47
- , activePos = children.index($active)
48
- , that = this
49
-
50
- if (pos > (children.length - 1) || pos < 0) return
51
-
52
- if (this.sliding) {
53
- return this.$element.one('slid', function () {
54
- that.to(pos)
55
- })
56
- }
57
-
58
- if (activePos == pos) {
59
- return this.pause().cycle()
60
- }
61
-
62
- return this.slide(pos > activePos ? 'next' : 'prev', $(children[pos]))
63
- }
64
-
65
- , pause: function () {
66
- clearInterval(this.interval)
67
- this.interval = null
68
- return this
69
- }
70
-
71
- , next: function () {
72
- if (this.sliding) return
73
- return this.slide('next')
74
- }
75
-
76
- , prev: function () {
77
- if (this.sliding) return
78
- return this.slide('prev')
79
- }
80
-
81
- , slide: function (type, next) {
82
- var $active = this.$element.find('.active')
83
- , $next = next || $active[type]()
84
- , isCycling = this.interval
85
- , direction = type == 'next' ? 'left' : 'right'
86
- , fallback = type == 'next' ? 'first' : 'last'
87
- , that = this
88
-
89
- this.sliding = true
90
-
91
- isCycling && this.pause()
92
-
93
- $next = $next.length ? $next : this.$element.find('.item')[fallback]()
94
-
95
- if ($next.hasClass('active')) return
96
-
97
- if (!$.support.transition && this.$element.hasClass('slide')) {
98
- this.$element.trigger('slide')
99
- $active.removeClass('active')
100
- $next.addClass('active')
101
- this.sliding = false
102
- this.$element.trigger('slid')
103
- } else {
104
- $next.addClass(type)
105
- $next[0].offsetWidth // force reflow
106
- $active.addClass(direction)
107
- $next.addClass(direction)
108
- this.$element.trigger('slide')
109
- this.$element.one($.support.transition.end, function () {
110
- $next.removeClass([type, direction].join(' ')).addClass('active')
111
- $active.removeClass(['active', direction].join(' '))
112
- that.sliding = false
113
- setTimeout(function () { that.$element.trigger('slid') }, 0)
114
- })
115
- }
116
-
117
- isCycling && this.cycle()
118
-
119
- return this
120
- }
121
-
122
- }
123
-
124
-
125
- /* CAROUSEL PLUGIN DEFINITION
126
- * ========================== */
127
-
128
- $.fn.carousel = function ( option ) {
129
- return this.each(function () {
130
- var $this = $(this)
131
- , data = $this.data('carousel')
132
- , options = typeof option == 'object' && option
133
- if (!data) $this.data('carousel', (data = new Carousel(this, options)))
134
- if (typeof option == 'number') data.to(option)
135
- else if (typeof option == 'string' || (option = options.slide)) data[option]()
136
- else data.cycle()
137
- })
138
- }
139
-
140
- $.fn.carousel.defaults = {
141
- interval: 5000
142
- , pause: 'hover'
143
- }
144
-
145
- $.fn.carousel.Constructor = Carousel
146
-
147
-
148
- /* CAROUSEL DATA-API
149
- * ================= */
150
-
151
- $(function () {
152
- $('body').on('click.carousel.data-api', '[data-slide]', function ( e ) {
153
- var $this = $(this), href
154
- , $target = $($this.attr('data-target') || (href = $this.attr('href')) && href.replace(/.*(?=#[^\s]+$)/, '')) //strip for ie7
155
- , options = !$target.data('modal') && $.extend({}, $target.data(), $this.data())
156
- $target.carousel(options)
157
- e.preventDefault()
158
- })
159
- })
160
-
161
- }( window.jQuery );