bootstrap-slider-rails 5.3.3 → 5.3.5

Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: 403ccc07bb5bef697bcec6ae65c3f3bbaf57664f
4
- data.tar.gz: ba8d8b675b6e3940f195ef058da45a42df81227d
3
+ metadata.gz: 539c242e6bc534ef4d29b3fbd04b2b30f7d65adc
4
+ data.tar.gz: b9b3ec74d653078e641ce9c8a448f151a94cec80
5
5
  SHA512:
6
- metadata.gz: e52b50c962f1e7cdd3cd32b1aebec303dd14180ac8bbbdfe0eb29fb9f5db94c7cfec41dc1a3796a06e67f46fd13b2607082bc4114decf170cf77f20940efcdb8
7
- data.tar.gz: 10b62efbd327390a3a0ee4f1ac4a587b1b8a5a3b85b84643c60eb6c98e5065fd77202d41c3da03fcea475210982e0726387cbd4572dc0de0f07c18bd49177363
6
+ metadata.gz: 1f411855bd7355c5b74dce280641ea63d6ec4c304f816fd9334e4f49d7e55f00fb8f7d9225b6089f6796cab960b6bc1633c426e36d772f1b42e7a48ac951b44f
7
+ data.tar.gz: bdc11c53207e04ac966e50296b82115483bc161e2ebc7e22cffb7753f04f1d6188a9270810461227175efb89e4b158d7baddf848ebea9e7d405ca574db83b0e7
data/README.md CHANGED
@@ -34,6 +34,26 @@ Require the CSS files from your `application.scss` or wherever needed using:
34
34
  *= require bootstrap-slider
35
35
  ```
36
36
 
37
+ ## Gem release
38
+
39
+ In the case you'd like to create a new release when [seiyria](https://github.com/seiyria) release a new version of his bootstrap-slider library, you just need to run the following:
40
+
41
+ ```
42
+ $ ./make_new_release.sh
43
+ Ensuring Docker image zedtux/bootstrap-slider-rails exists ...
44
+ Updating library code to version 5.3.3 ...
45
+ Downlading Bootstrap-slider 5.3.3 ...
46
+ % Total % Received % Xferd Average Speed Time Time Time Current
47
+ Dload Upload Total Spent Left Speed
48
+ 100 51140 100 51140 0 0 124k 0 --:--:-- --:--:-- --:--:-- 124k
49
+ % Total % Received % Xferd Average Speed Time Time Time Current
50
+ Dload Upload Total Spent Left Speed
51
+ 100 8238 100 8238 0 0 28698 0 --:--:-- --:--:-- --:--:-- 28703
52
+ Done!
53
+ Committing new version ...
54
+ Releasing gem ...
55
+ ```
56
+
37
57
  ## Contributing
38
58
 
39
59
  1. Fork it
@@ -12,7 +12,7 @@ Gem::Specification.new do |spec|
12
12
  spec.summary = "This Gem integrates Seiyara's fork of Bootstrap " \
13
13
  'Slider with Rails, exposing its JavaScript and CSS ' \
14
14
  'assets via a Rails Engine.'
15
- spec.homepage = 'http://github.com/stationkeeping/bootstrap-slider-rails'
15
+ spec.homepage = 'https://github.com/YourCursus/bootstrap-slider-rails'
16
16
  spec.license = 'MIT'
17
17
 
18
18
  spec.files = `git ls-files`.split($RS)
@@ -1,5 +1,5 @@
1
1
  module BootstrapSlider
2
2
  module Rails
3
- VERSION = '5.3.3'
3
+ VERSION = '5.3.5'
4
4
  end
5
5
  end
@@ -0,0 +1,36 @@
1
+ #!/usr/bin/env bash
2
+
3
+ DOCKER_IMAGE_NAME="$USER/bootstrap-slider-rails"
4
+ LIBRARY_NEW_VERSION=`cat lib/**/*.rb | grep VERSION | awk '{ print $3 }' | tr -d "'"`
5
+
6
+ LIBRARY_UPDATED=`git status --porcelain | grep -v "lib/bootstrap-slider-rails/version.rb"`
7
+ echo "LIBRARY_UPDATED: $LIBRARY_UPDATED"
8
+ if [[ -n "$LIBRARY_UPDATED" ]]; then
9
+ echo "Your repository is not clean !"
10
+ exit 1
11
+ fi
12
+
13
+ echo "Ensuring Docker image $DOCKER_IMAGE_NAME exists ..."
14
+ EXISTING_DOCKER_IMAGE=`docker images | grep "$DOCKER_IMAGE_NAME"`
15
+ if [[ -z "$EXISTING_DOCKER_IMAGE" ]]; then
16
+ echo "Building the Docker image ..."
17
+ docker build -t "$DOCKER_IMAGE_NAME" .
18
+ fi
19
+
20
+ echo "Updating library code to version $LIBRARY_NEW_VERSION ..."
21
+ docker run --rm -v `pwd`:/gem/ "$DOCKER_IMAGE_NAME" rake update
22
+
23
+ LIBRARY_UPDATED=`git status --porcelain`
24
+ if [[ -z "$LIBRARY_UPDATED" ]]; then
25
+ echo "No update found, stopping release creation."
26
+ exit 1
27
+ fi
28
+
29
+ echo "Committing new version ..."
30
+ git commit -am "Import version $LIBRARY_NEW_VERSION"
31
+
32
+ echo "Releasing gem ..."
33
+ docker run --rm -v ~/.gitconfig:/root/.gitconfig \
34
+ -v ~/.ssh/:/root/.ssh/ \
35
+ -v ~/.gem/:/root/.gem/ \
36
+ -v `pwd`:/gem/ "$DOCKER_IMAGE_NAME" rake release
@@ -677,6 +677,10 @@
677
677
  }
678
678
  this.sliderElem.addEventListener("mousedown", this.mousedown, false);
679
679
 
680
+ // Bind window handlers
681
+ this.resize = this._resize.bind(this);
682
+ window.addEventListener("resize", this.resize, false);
683
+
680
684
 
681
685
  // Bind tooltip-related handlers
682
686
  if(this.options.tooltip === 'hide') {
@@ -953,6 +957,9 @@
953
957
  }
954
958
  this.sliderElem.removeEventListener("touchstart", this.mousedown, false);
955
959
  this.sliderElem.removeEventListener("mousedown", this.mousedown, false);
960
+
961
+ // Remove window event listener
962
+ window.removeEventListener("resize", this.resize, false);
956
963
  },
957
964
  _bindNonQueryEventHandler: function(evt, callback) {
958
965
  if(this.eventToCallbackMap[evt] === undefined) {
@@ -1164,6 +1171,12 @@
1164
1171
  }
1165
1172
  }
1166
1173
  },
1174
+ _resize: function (ev) {
1175
+ /*jshint unused:false*/
1176
+ this._state.offset = this._offset(this.sliderElem);
1177
+ this._state.size = this.sliderElem[this.sizePos];
1178
+ this._layout();
1179
+ },
1167
1180
  _removeProperty: function(element, prop) {
1168
1181
  if (element.style.removeProperty) {
1169
1182
  element.style.removeProperty(prop);
@@ -1,255 +1 @@
1
- /*! =======================================================
2
- VERSION 5.3.3
3
- ========================================================= */
4
- /*! =========================================================
5
- * bootstrap-slider.js
6
- *
7
- * Maintainers:
8
- * Kyle Kemp
9
- * - Twitter: @seiyria
10
- * - Github: seiyria
11
- * Rohit Kalkur
12
- * - Twitter: @Rovolutionary
13
- * - Github: rovolution
14
- *
15
- * =========================================================
16
- *
17
- * Licensed under the Apache License, Version 2.0 (the "License");
18
- * you may not use this file except in compliance with the License.
19
- * You may obtain a copy of the License at
20
- *
21
- * http://www.apache.org/licenses/LICENSE-2.0
22
- *
23
- * Unless required by applicable law or agreed to in writing, software
24
- * distributed under the License is distributed on an "AS IS" BASIS,
25
- * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
26
- * See the License for the specific language governing permissions and
27
- * limitations under the License.
28
- * ========================================================= */
29
- .slider {
30
- display: inline-block;
31
- vertical-align: middle;
32
- position: relative;
33
- }
34
- .slider.slider-horizontal {
35
- width: 210px;
36
- height: 20px;
37
- }
38
- .slider.slider-horizontal .slider-track {
39
- height: 10px;
40
- width: 100%;
41
- margin-top: -5px;
42
- top: 50%;
43
- left: 0;
44
- }
45
- .slider.slider-horizontal .slider-selection,
46
- .slider.slider-horizontal .slider-track-low,
47
- .slider.slider-horizontal .slider-track-high {
48
- height: 100%;
49
- top: 0;
50
- bottom: 0;
51
- }
52
- .slider.slider-horizontal .slider-tick,
53
- .slider.slider-horizontal .slider-handle {
54
- margin-left: -10px;
55
- margin-top: -5px;
56
- }
57
- .slider.slider-horizontal .slider-tick.triangle,
58
- .slider.slider-horizontal .slider-handle.triangle {
59
- border-width: 0 10px 10px 10px;
60
- width: 0;
61
- height: 0;
62
- border-bottom-color: #0480be;
63
- margin-top: 0;
64
- }
65
- .slider.slider-horizontal .slider-tick-label-container {
66
- white-space: nowrap;
67
- margin-top: 20px;
68
- }
69
- .slider.slider-horizontal .slider-tick-label-container .slider-tick-label {
70
- padding-top: 4px;
71
- display: inline-block;
72
- text-align: center;
73
- }
74
- .slider.slider-vertical {
75
- height: 210px;
76
- width: 20px;
77
- }
78
- .slider.slider-vertical .slider-track {
79
- width: 10px;
80
- height: 100%;
81
- margin-left: -5px;
82
- left: 50%;
83
- top: 0;
84
- }
85
- .slider.slider-vertical .slider-selection {
86
- width: 100%;
87
- left: 0;
88
- top: 0;
89
- bottom: 0;
90
- }
91
- .slider.slider-vertical .slider-track-low,
92
- .slider.slider-vertical .slider-track-high {
93
- width: 100%;
94
- left: 0;
95
- right: 0;
96
- }
97
- .slider.slider-vertical .slider-tick,
98
- .slider.slider-vertical .slider-handle {
99
- margin-left: -5px;
100
- margin-top: -10px;
101
- }
102
- .slider.slider-vertical .slider-tick.triangle,
103
- .slider.slider-vertical .slider-handle.triangle {
104
- border-width: 10px 0 10px 10px;
105
- width: 1px;
106
- height: 1px;
107
- border-left-color: #0480be;
108
- margin-left: 0;
109
- }
110
- .slider.slider-vertical .slider-tick-label-container {
111
- white-space: nowrap;
112
- }
113
- .slider.slider-vertical .slider-tick-label-container .slider-tick-label {
114
- padding-left: 4px;
115
- }
116
- .slider.slider-disabled .slider-handle {
117
- background-image: -webkit-linear-gradient(top, #dfdfdf 0%, #bebebe 100%);
118
- background-image: -o-linear-gradient(top, #dfdfdf 0%, #bebebe 100%);
119
- background-image: linear-gradient(to bottom, #dfdfdf 0%, #bebebe 100%);
120
- background-repeat: repeat-x;
121
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffdfdfdf', endColorstr='#ffbebebe', GradientType=0);
122
- }
123
- .slider.slider-disabled .slider-track {
124
- background-image: -webkit-linear-gradient(top, #e5e5e5 0%, #e9e9e9 100%);
125
- background-image: -o-linear-gradient(top, #e5e5e5 0%, #e9e9e9 100%);
126
- background-image: linear-gradient(to bottom, #e5e5e5 0%, #e9e9e9 100%);
127
- background-repeat: repeat-x;
128
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ffe5e5e5', endColorstr='#ffe9e9e9', GradientType=0);
129
- cursor: not-allowed;
130
- }
131
- .slider input {
132
- display: none;
133
- }
134
- .slider .tooltip.top {
135
- margin-top: -36px;
136
- }
137
- .slider .tooltip-inner {
138
- white-space: nowrap;
139
- }
140
- .slider .hide {
141
- display: none;
142
- }
143
- .slider-track {
144
- position: absolute;
145
- cursor: pointer;
146
- background-image: -webkit-linear-gradient(top, #f5f5f5 0%, #f9f9f9 100%);
147
- background-image: -o-linear-gradient(top, #f5f5f5 0%, #f9f9f9 100%);
148
- background-image: linear-gradient(to bottom, #f5f5f5 0%, #f9f9f9 100%);
149
- background-repeat: repeat-x;
150
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff5f5f5', endColorstr='#fff9f9f9', GradientType=0);
151
- -webkit-box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
152
- box-shadow: inset 0 1px 2px rgba(0, 0, 0, 0.1);
153
- border-radius: 4px;
154
- }
155
- .slider-selection {
156
- position: absolute;
157
- background-image: -webkit-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
158
- background-image: -o-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
159
- background-image: linear-gradient(to bottom, #f9f9f9 0%, #f5f5f5 100%);
160
- background-repeat: repeat-x;
161
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9', endColorstr='#fff5f5f5', GradientType=0);
162
- -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
163
- box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
164
- -webkit-box-sizing: border-box;
165
- -moz-box-sizing: border-box;
166
- box-sizing: border-box;
167
- border-radius: 4px;
168
- }
169
- .slider-selection.tick-slider-selection {
170
- background-image: -webkit-linear-gradient(top, #89cdef 0%, #81bfde 100%);
171
- background-image: -o-linear-gradient(top, #89cdef 0%, #81bfde 100%);
172
- background-image: linear-gradient(to bottom, #89cdef 0%, #81bfde 100%);
173
- background-repeat: repeat-x;
174
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff89cdef', endColorstr='#ff81bfde', GradientType=0);
175
- }
176
- .slider-track-low,
177
- .slider-track-high {
178
- position: absolute;
179
- background: transparent;
180
- -webkit-box-sizing: border-box;
181
- -moz-box-sizing: border-box;
182
- box-sizing: border-box;
183
- border-radius: 4px;
184
- }
185
- .slider-handle {
186
- position: absolute;
187
- width: 20px;
188
- height: 20px;
189
- background-color: #337ab7;
190
- background-image: -webkit-linear-gradient(top, #149bdf 0%, #0480be 100%);
191
- background-image: -o-linear-gradient(top, #149bdf 0%, #0480be 100%);
192
- background-image: linear-gradient(to bottom, #149bdf 0%, #0480be 100%);
193
- background-repeat: repeat-x;
194
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff149bdf', endColorstr='#ff0480be', GradientType=0);
195
- filter: none;
196
- -webkit-box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
197
- box-shadow: inset 0 1px 0 rgba(255,255,255,.2), 0 1px 2px rgba(0,0,0,.05);
198
- border: 0px solid transparent;
199
- }
200
- .slider-handle.round {
201
- border-radius: 50%;
202
- }
203
- .slider-handle.triangle {
204
- background: transparent none;
205
- }
206
- .slider-handle.custom {
207
- background: transparent none;
208
- }
209
- .slider-handle.custom::before {
210
- line-height: 20px;
211
- font-size: 20px;
212
- content: '\2605';
213
- color: #726204;
214
- }
215
- .slider-tick {
216
- position: absolute;
217
- width: 20px;
218
- height: 20px;
219
- background-image: -webkit-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
220
- background-image: -o-linear-gradient(top, #f9f9f9 0%, #f5f5f5 100%);
221
- background-image: linear-gradient(to bottom, #f9f9f9 0%, #f5f5f5 100%);
222
- background-repeat: repeat-x;
223
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#fff9f9f9', endColorstr='#fff5f5f5', GradientType=0);
224
- -webkit-box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
225
- box-shadow: inset 0 -1px 0 rgba(0, 0, 0, 0.15);
226
- -webkit-box-sizing: border-box;
227
- -moz-box-sizing: border-box;
228
- box-sizing: border-box;
229
- filter: none;
230
- opacity: 0.8;
231
- border: 0px solid transparent;
232
- }
233
- .slider-tick.round {
234
- border-radius: 50%;
235
- }
236
- .slider-tick.triangle {
237
- background: transparent none;
238
- }
239
- .slider-tick.custom {
240
- background: transparent none;
241
- }
242
- .slider-tick.custom::before {
243
- line-height: 20px;
244
- font-size: 20px;
245
- content: '\2605';
246
- color: #726204;
247
- }
248
- .slider-tick.in-selection {
249
- background-image: -webkit-linear-gradient(top, #89cdef 0%, #81bfde 100%);
250
- background-image: -o-linear-gradient(top, #89cdef 0%, #81bfde 100%);
251
- background-image: linear-gradient(to bottom, #89cdef 0%, #81bfde 100%);
252
- background-repeat: repeat-x;
253
- filter: progid:DXImageTransform.Microsoft.gradient(startColorstr='#ff89cdef', endColorstr='#ff81bfde', GradientType=0);
254
- opacity: 1;
255
- }
1
+ Not Found
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: bootstrap-slider-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 5.3.3
4
+ version: 5.3.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - Pedr Browne
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2015-12-13 00:00:00.000000000 Z
11
+ date: 2015-12-31 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -74,9 +74,10 @@ files:
74
74
  - bootstrap-slider-rails.gemspec
75
75
  - lib/bootstrap-slider-rails.rb
76
76
  - lib/bootstrap-slider-rails/version.rb
77
+ - make_new_release.sh
77
78
  - vendor/assets/javascripts/bootstrap-slider.js
78
79
  - vendor/assets/stylesheets/bootstrap-slider.css
79
- homepage: http://github.com/stationkeeping/bootstrap-slider-rails
80
+ homepage: https://github.com/YourCursus/bootstrap-slider-rails
80
81
  licenses:
81
82
  - MIT
82
83
  metadata: {}