nivo-rails 0.0.1 → 1.0.0

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.
metadata CHANGED
@@ -1,32 +1,43 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: nivo-rails
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
5
- prerelease:
4
+ version: 1.0.0
6
5
  platform: ruby
7
6
  authors:
8
7
  - Robin Dupret
9
8
  autorequire:
10
9
  bindir: bin
11
10
  cert_chain: []
12
- date: 2013-01-19 00:00:00.000000000 Z
11
+ date: 2017-02-08 00:00:00.000000000 Z
13
12
  dependencies:
14
13
  - !ruby/object:Gem::Dependency
15
14
  name: rake
16
15
  requirement: !ruby/object:Gem::Requirement
17
- none: false
18
16
  requirements:
19
- - - ! '>='
17
+ - - ">="
20
18
  - !ruby/object:Gem::Version
21
19
  version: '0'
22
20
  type: :development
23
21
  prerelease: false
24
22
  version_requirements: !ruby/object:Gem::Requirement
25
- none: false
26
23
  requirements:
27
- - - ! '>='
24
+ - - ">="
28
25
  - !ruby/object:Gem::Version
29
26
  version: '0'
27
+ - !ruby/object:Gem::Dependency
28
+ name: actionview
29
+ requirement: !ruby/object:Gem::Requirement
30
+ requirements:
31
+ - - ">="
32
+ - !ruby/object:Gem::Version
33
+ version: 4.2.0
34
+ type: :development
35
+ prerelease: false
36
+ version_requirements: !ruby/object:Gem::Requirement
37
+ requirements:
38
+ - - ">="
39
+ - !ruby/object:Gem::Version
40
+ version: 4.2.0
30
41
  description: Nivo slider with Ruby on Rails
31
42
  email:
32
43
  - robin.dupret@gmail.com
@@ -34,7 +45,7 @@ executables: []
34
45
  extensions: []
35
46
  extra_rdoc_files: []
36
47
  files:
37
- - .gitignore
48
+ - ".gitignore"
38
49
  - Gemfile
39
50
  - LICENSE
40
51
  - README.md
@@ -44,6 +55,8 @@ files:
44
55
  - lib/nivo/rails/engine.rb
45
56
  - lib/nivo/version.rb
46
57
  - nivo-rails.gemspec
58
+ - test/nivo_slider_helper_test.rb
59
+ - test/test_helper.rb
47
60
  - vendor/assets/images/bar/arrows.png
48
61
  - vendor/assets/images/bar/bullets.png
49
62
  - vendor/assets/images/bar/loading.gif
@@ -58,35 +71,30 @@ files:
58
71
  - vendor/assets/images/light/bullets.png
59
72
  - vendor/assets/images/light/loading.gif
60
73
  - vendor/assets/javascripts/nivo.js
61
- - vendor/assets/stylesheets/nivo.css
62
- homepage: ''
74
+ - vendor/assets/stylesheets/nivo.scss
75
+ homepage: https://github.com/robin850/nivo-rails
63
76
  licenses: []
77
+ metadata: {}
64
78
  post_install_message:
65
79
  rdoc_options: []
66
80
  require_paths:
67
81
  - lib
68
82
  required_ruby_version: !ruby/object:Gem::Requirement
69
- none: false
70
83
  requirements:
71
- - - ! '>='
84
+ - - ">="
72
85
  - !ruby/object:Gem::Version
73
86
  version: '0'
74
- segments:
75
- - 0
76
- hash: -2464822413493816712
77
87
  required_rubygems_version: !ruby/object:Gem::Requirement
78
- none: false
79
88
  requirements:
80
- - - ! '>='
89
+ - - ">="
81
90
  - !ruby/object:Gem::Version
82
91
  version: '0'
83
- segments:
84
- - 0
85
- hash: -2464822413493816712
86
92
  requirements: []
87
93
  rubyforge_project:
88
- rubygems_version: 1.8.24
94
+ rubygems_version: 2.6.8
89
95
  signing_key:
90
- specification_version: 3
96
+ specification_version: 4
91
97
  summary: This gem allows you to use Nivo slider with Ruby on Rails
92
- test_files: []
98
+ test_files:
99
+ - test/nivo_slider_helper_test.rb
100
+ - test/test_helper.rb
@@ -1,508 +0,0 @@
1
- /*
2
- * jQuery Nivo Slider v3.2
3
- * http://nivo.dev7studios.com
4
- *
5
- * Copyright 2012, Dev7studios
6
- * Free to use and abuse under the MIT license.
7
- * http://www.opensource.org/licenses/mit-license.php
8
- */
9
-
10
- /* The Nivo Slider styles */
11
- .nivoSlider {
12
- position:relative;
13
- width:100%;
14
- height:auto;
15
- overflow: hidden;
16
- }
17
- .nivoSlider img {
18
- position:absolute;
19
- top:0px;
20
- left:0px;
21
- max-width: none;
22
- }
23
- .nivo-main-image {
24
- display: block !important;
25
- position: relative !important;
26
- width: 100% !important;
27
- }
28
-
29
- /* If an image is wrapped in a link */
30
- .nivoSlider a.nivo-imageLink {
31
- position:absolute;
32
- top:0px;
33
- left:0px;
34
- width:100%;
35
- height:100%;
36
- border:0;
37
- padding:0;
38
- margin:0;
39
- z-index:6;
40
- display:none;
41
- background:white;
42
- filter:alpha(opacity=0);
43
- opacity:0;
44
- }
45
- /* The slices and boxes in the Slider */
46
- .nivo-slice {
47
- display:block;
48
- position:absolute;
49
- z-index:5;
50
- height:100%;
51
- top:0;
52
- }
53
- .nivo-box {
54
- display:block;
55
- position:absolute;
56
- z-index:5;
57
- overflow:hidden;
58
- }
59
- .nivo-box img { display:block; }
60
-
61
- /* Caption styles */
62
- .nivo-caption {
63
- position:absolute;
64
- left:0px;
65
- bottom:0px;
66
- background:#000;
67
- color:#fff;
68
- width:100%;
69
- z-index:8;
70
- padding: 5px 10px;
71
- opacity: 0.8;
72
- overflow: hidden;
73
- display: none;
74
- -moz-opacity: 0.8;
75
- filter:alpha(opacity=8);
76
- -webkit-box-sizing: border-box; /* Safari/Chrome, other WebKit */
77
- -moz-box-sizing: border-box; /* Firefox, other Gecko */
78
- box-sizing: border-box; /* Opera/IE 8+ */
79
- }
80
- .nivo-caption p {
81
- padding:5px;
82
- margin:0;
83
- }
84
- .nivo-caption a {
85
- display:inline !important;
86
- }
87
- .nivo-html-caption {
88
- display:none;
89
- }
90
- /* Direction nav styles (e.g. Next & Prev) */
91
- .nivo-directionNav a {
92
- position:absolute;
93
- top:45%;
94
- z-index:9;
95
- cursor:pointer;
96
- }
97
- .nivo-prevNav {
98
- left:0px;
99
- }
100
- .nivo-nextNav {
101
- right:0px;
102
- }
103
- /* Control nav styles (e.g. 1,2,3...) */
104
- .nivo-controlNav {
105
- text-align:center;
106
- padding: 15px 0;
107
- }
108
- .nivo-controlNav a {
109
- cursor:pointer;
110
- }
111
- .nivo-controlNav a.active {
112
- font-weight:bold;
113
- }
114
-
115
- /* Themes */
116
-
117
- .theme-light.slider-wrapper {
118
- background: #fff;
119
- padding: 10px;
120
- }
121
- .theme-light .nivoSlider {
122
- position:relative;
123
- background:#fff url(light/loading.gif) no-repeat 50% 50%;
124
- margin-bottom:10px;
125
- overflow: visible;
126
- }
127
- .theme-light .nivoSlider img {
128
- position:absolute;
129
- top:0px;
130
- left:0px;
131
- display:none;
132
- }
133
- .theme-light .nivoSlider a {
134
- border:0;
135
- display:block;
136
- }
137
-
138
- .theme-light .nivo-controlNav {
139
- text-align: left;
140
- padding: 0;
141
- position: relative;
142
- z-index: 10;
143
- }
144
- .theme-light .nivo-controlNav a {
145
- display:inline-block;
146
- width:10px;
147
- height:10px;
148
- background:url(light/bullets.png) no-repeat;
149
- text-indent:-9999px;
150
- border:0;
151
- margin: 0 2px;
152
- }
153
- .theme-light .nivo-controlNav a.active {
154
- background-position:0 100%;
155
- }
156
-
157
- .theme-light .nivo-directionNav a {
158
- display:block;
159
- width:30px;
160
- height:30px;
161
- background: url(light/arrows.png) no-repeat;
162
- text-indent:-9999px;
163
- border:0;
164
- top: auto;
165
- bottom: -36px;
166
- z-index: 11;
167
- }
168
- .theme-light .nivo-directionNav a:hover {
169
- background-color: #eee;
170
- -webkit-border-radius: 2px;
171
- -moz-border-radius: 2px;
172
- border-radius: 2px;
173
- }
174
- .theme-light a.nivo-nextNav {
175
- background-position:160% 50%;
176
- right:0px;
177
- }
178
- .theme-light a.nivo-prevNav {
179
- background-position:-60% 50%;
180
- left: auto;
181
- right: 35px;
182
- }
183
-
184
- .theme-light .nivo-caption {
185
- font-family: Helvetica, Arial, sans-serif;
186
- }
187
- .theme-light .nivo-caption a {
188
- color:#fff;
189
- border-bottom:1px dotted #fff;
190
- }
191
- .theme-light .nivo-caption a:hover {
192
- color:#fff;
193
- }
194
-
195
- .theme-light .nivo-controlNav.nivo-thumbs-enabled {
196
- width: 80%;
197
- }
198
- .theme-light .nivo-controlNav.nivo-thumbs-enabled a {
199
- width: auto;
200
- height: auto;
201
- background: none;
202
- margin-bottom: 5px;
203
- }
204
- .theme-light .nivo-controlNav.nivo-thumbs-enabled img {
205
- display: block;
206
- width: 120px;
207
- height: auto;
208
- }
209
-
210
- .theme-default .nivoSlider {
211
- position:relative;
212
- background:#fff url(default/loading.gif) no-repeat 50% 50%;
213
- margin-bottom:10px;
214
- -webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
215
- -moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
216
- box-shadow: 0px 1px 5px 0px #4a4a4a;
217
- }
218
- .theme-default .nivoSlider img {
219
- position:absolute;
220
- top:0px;
221
- left:0px;
222
- display:none;
223
- }
224
- .theme-default .nivoSlider a {
225
- border:0;
226
- display:block;
227
- }
228
-
229
- .theme-default .nivo-controlNav {
230
- text-align: center;
231
- padding: 20px 0;
232
- }
233
- .theme-default .nivo-controlNav a {
234
- display:inline-block;
235
- width:22px;
236
- height:22px;
237
- background:url(default/bullets.png) no-repeat;
238
- text-indent:-9999px;
239
- border:0;
240
- margin: 0 2px;
241
- }
242
- .theme-default .nivo-controlNav a.active {
243
- background-position:0 -22px;
244
- }
245
-
246
- .theme-default .nivo-directionNav a {
247
- display:block;
248
- width:30px;
249
- height:30px;
250
- background:url(default/arrows.png) no-repeat;
251
- text-indent:-9999px;
252
- border:0;
253
- opacity: 0;
254
- -webkit-transition: all 200ms ease-in-out;
255
- -moz-transition: all 200ms ease-in-out;
256
- -o-transition: all 200ms ease-in-out;
257
- transition: all 200ms ease-in-out;
258
- }
259
- .theme-default:hover .nivo-directionNav a { opacity: 1; }
260
- .theme-default a.nivo-nextNav {
261
- background-position:-30px 0;
262
- right:15px;
263
- }
264
- .theme-default a.nivo-prevNav {
265
- left:15px;
266
- }
267
-
268
- .theme-default .nivo-caption {
269
- font-family: Helvetica, Arial, sans-serif;
270
- }
271
- .theme-default .nivo-caption a {
272
- color:#fff;
273
- border-bottom:1px dotted #fff;
274
- }
275
- .theme-default .nivo-caption a:hover {
276
- color:#fff;
277
- }
278
-
279
- .theme-default .nivo-controlNav.nivo-thumbs-enabled {
280
- width: 100%;
281
- }
282
- .theme-default .nivo-controlNav.nivo-thumbs-enabled a {
283
- width: auto;
284
- height: auto;
285
- background: none;
286
- margin-bottom: 5px;
287
- }
288
- .theme-default .nivo-controlNav.nivo-thumbs-enabled img {
289
- display: block;
290
- width: 120px;
291
- height: auto;
292
- }
293
-
294
- .theme-dark.slider-wrapper {
295
- background: #222;
296
- padding: 10px;
297
- }
298
- .theme-dark .nivoSlider {
299
- position:relative;
300
- background:#fff url(dark/loading.gif) no-repeat 50% 50%;
301
- margin-bottom:10px;
302
- overflow: visible;
303
- }
304
- .theme-dark .nivoSlider img {
305
- position:absolute;
306
- top:0px;
307
- left:0px;
308
- display:none;
309
- }
310
- .theme-dark .nivoSlider a {
311
- border:0;
312
- display:block;
313
- }
314
-
315
- .theme-dark .nivo-controlNav {
316
- text-align: left;
317
- padding: 0;
318
- position: relative;
319
- z-index: 10;
320
- }
321
- .theme-dark .nivo-controlNav a {
322
- display:inline-block;
323
- width:10px;
324
- height:10px;
325
- background:url(dark/bullets.png) no-repeat 0 2px;
326
- text-indent:-9999px;
327
- border:0;
328
- margin: 0 2px;
329
- }
330
- .theme-dark .nivo-controlNav a.active {
331
- background-position:0 100%;
332
- }
333
-
334
- .theme-dark .nivo-directionNav a {
335
- display:block;
336
- width:30px;
337
- height:30px;
338
- background: url(dark/arrows.png) no-repeat;
339
- text-indent:-9999px;
340
- border:0;
341
- top: auto;
342
- bottom: -36px;
343
- z-index: 11;
344
- }
345
- .theme-dark .nivo-directionNav a:hover {
346
- background-color: #333;
347
- -webkit-border-radius: 2px;
348
- -moz-border-radius: 2px;
349
- border-radius: 2px;
350
- }
351
- .theme-dark a.nivo-nextNav {
352
- background-position:-16px 50%;
353
- right:0px;
354
- }
355
- .theme-dark a.nivo-prevNav {
356
- background-position:11px 50%;
357
- left: auto;
358
- right: 35px;
359
- }
360
-
361
- .theme-dark .nivo-caption {
362
- font-family: Helvetica, Arial, sans-serif;
363
- }
364
- .theme-dark .nivo-caption a {
365
- color:#fff;
366
- border-bottom:1px dotted #fff;
367
- }
368
- .theme-dark .nivo-caption a:hover {
369
- color:#fff;
370
- }
371
-
372
- .theme-dark .nivo-controlNav.nivo-thumbs-enabled {
373
- width: 80%;
374
- }
375
- .theme-dark .nivo-controlNav.nivo-thumbs-enabled a {
376
- width: auto;
377
- height: auto;
378
- background: none;
379
- margin-bottom: 5px;
380
- }
381
- .theme-dark .nivo-controlNav.nivo-thumbs-enabled img {
382
- display: block;
383
- width: 120px;
384
- height: auto;
385
- }
386
-
387
- .theme-bar.slider-wrapper {
388
- position: relative;
389
- border: 1px solid #333;
390
- overflow: hidden;
391
- }
392
- .theme-bar .nivoSlider {
393
- position:relative;
394
- background:#fff url(bar/loading.gif) no-repeat 50% 50%;
395
- }
396
- .theme-bar .nivoSlider img {
397
- position:absolute;
398
- top:0px;
399
- left:0px;
400
- display:none;
401
- }
402
- .theme-bar .nivoSlider a {
403
- border:0;
404
- display:block;
405
- }
406
-
407
- .theme-bar .nivo-controlNav {
408
- position: absolute;
409
- left: 0;
410
- bottom: -41px;
411
- z-index: 10;
412
- width: 100%;
413
- height: 30px;
414
- text-align: center;
415
- padding: 5px 0;
416
- border-top: 1px solid #333;
417
- background: #333;
418
- background: -moz-linear-gradient(top, #565656 0%, #333333 100%); /* FF3.6+ */
419
- background: -webkit-gradient(linear, left top, left bottom, color-stop(0%,#565656), color-stop(100%,#333333)); /* Chrome,Safari4+ */
420
- background: -webkit-linear-gradient(top, #565656 0%,#333333 100%); /* Chrome10+,Safari5.1+ */
421
- background: -o-linear-gradient(top, #565656 0%,#333333 100%); /* Opera 11.10+ */
422
- background: -ms-linear-gradient(top, #565656 0%,#333333 100%); /* IE10+ */
423
- background: linear-gradient(to bottom, #565656 0%,#333333 100%); /* W3C */
424
- filter: progid:DXImageTransform.Microsoft.gradient( startColorstr='#565656', endColorstr='#333333',GradientType=0 ); /* IE6-9 */
425
- opacity: 0.5;
426
- -webkit-transition: all 200ms ease-in-out;
427
- -moz-transition: all 200ms ease-in-out;
428
- -o-transition: all 200ms ease-in-out;
429
- transition: all 200ms ease-in-out;
430
- }
431
- .theme-bar:hover .nivo-controlNav {
432
- bottom: 0;
433
- opacity: 1;
434
- }
435
- .theme-bar .nivo-controlNav a {
436
- display:inline-block;
437
- width:22px;
438
- height:22px;
439
- background: url(bar/bullets.png) no-repeat;
440
- text-indent:-9999px;
441
- border:0;
442
- margin: 5px 2px 0 2px;
443
- }
444
- .theme-bar .nivo-controlNav a.active {
445
- background-position:0 -22px;
446
- }
447
-
448
- .theme-bar .nivo-directionNav a {
449
- display:block;
450
- border:0;
451
- color: #fff;
452
- text-transform: uppercase;
453
- top: auto;
454
- bottom: 10px;
455
- z-index: 11;
456
- font-family: "Helvetica Neue", Helvetica, Arial, sans-serif;
457
- font-size: 13px;
458
- line-height: 20px;
459
- opacity: 0.5;
460
- -webkit-transition: all 200ms ease-in-out;
461
- -moz-transition: all 200ms ease-in-out;
462
- -o-transition: all 200ms ease-in-out;
463
- transition: all 200ms ease-in-out;
464
- }
465
- .theme-bar a.nivo-nextNav { right: -50px; }
466
- .theme-bar a.nivo-prevNav { left: -50px; }
467
- .theme-bar:hover a.nivo-nextNav {
468
- right: 15px;
469
- opacity: 1;
470
- }
471
- .theme-bar:hover a.nivo-prevNav {
472
- left: 15px;
473
- opacity: 1;
474
- }
475
- .theme-bar .nivo-directionNav a:hover { color: #ddd; }
476
-
477
- .theme-bar .nivo-caption {
478
- font-family: Helvetica, Arial, sans-serif;
479
- -webkit-transition: all 200ms ease-in-out;
480
- -moz-transition: all 200ms ease-in-out;
481
- -o-transition: all 200ms ease-in-out;
482
- transition: all 200ms ease-in-out;
483
- }
484
- .theme-bar:hover .nivo-caption {
485
- bottom: 41px;
486
- }
487
- .theme-bar .nivo-caption a {
488
- color:#fff;
489
- border-bottom:1px dotted #fff;
490
- }
491
- .theme-bar .nivo-caption a:hover {
492
- color:#fff;
493
- }
494
-
495
- .theme-bar .nivo-controlNav.nivo-thumbs-enabled {
496
- width: 100%;
497
- }
498
- .theme-bar .nivo-controlNav.nivo-thumbs-enabled a {
499
- width: auto;
500
- height: auto;
501
- background: none;
502
- margin-bottom: 5px;
503
- }
504
- .theme-bar .nivo-controlNav.nivo-thumbs-enabled img {
505
- display: block;
506
- width: 120px;
507
- height: auto;
508
- }