nivo 0.0.2
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.
- data/.DS_Store +0 -0
- data/.gitignore +4 -0
- data/Gemfile +15 -0
- data/README.md +76 -0
- data/Rakefile +38 -0
- data/app/.DS_Store +0 -0
- data/app/controllers/.DS_Store +0 -0
- data/app/controllers/nivo/manage_slides_controller.rb +19 -0
- data/app/controllers/nivo/slides_controller.rb +55 -0
- data/app/models/.DS_Store +0 -0
- data/app/models/nivo/slide.rb +60 -0
- data/app/views/.DS_Store +0 -0
- data/app/views/nivo/_slideshow.html.haml +14 -0
- data/app/views/nivo/slides/_form.html.haml +27 -0
- data/app/views/nivo/slides/_search.html.haml +5 -0
- data/app/views/nivo/slides/edit.html.haml +5 -0
- data/app/views/nivo/slides/index.html.haml +26 -0
- data/app/views/nivo/slides/index.js.haml +2 -0
- data/app/views/nivo/slides/new.html.haml +6 -0
- data/app/views/nivo/slides/show.html.haml +19 -0
- data/config/.DS_Store +0 -0
- data/config/nivo_config.yml +34 -0
- data/config/routes.rb +15 -0
- data/lib/.DS_Store +0 -0
- data/lib/engine.rb +34 -0
- data/lib/nivo/config.rb +8 -0
- data/lib/nivo/helper.rb +14 -0
- data/lib/nivo/manage_slides.rb +17 -0
- data/lib/nivo/version.rb +3 -0
- data/lib/nivo.rb +13 -0
- data/lib/rails/.DS_Store +0 -0
- data/lib/rails/generators/.DS_Store +0 -0
- data/lib/rails/generators/nivo/.DS_Store +0 -0
- data/lib/rails/generators/nivo/controller_generator.rb +18 -0
- data/lib/rails/generators/nivo/install_generator.rb +49 -0
- data/lib/rails/generators/nivo/stylesheet_generator.rb +18 -0
- data/lib/rails/generators/nivo/templates/migration.rb +12 -0
- data/lib/rails/generators/nivo/templates/nivo_config.yml +29 -0
- data/lib/rails/generators/nivo/templates/schema.rb +15 -0
- data/lib/rails/generators/nivo/views_generator.rb +18 -0
- data/lib/rails/railties/tasks.rake +0 -0
- data/nivo.gemspec +28 -0
- data/public/.DS_Store +0 -0
- data/public/images/.DS_Store +0 -0
- data/public/images/arrows.png +0 -0
- data/public/images/bullets.png +0 -0
- data/public/images/loading.gif +0 -0
- data/public/javascripts/.DS_Store +0 -0
- data/public/javascripts/nivo-admin.js +10 -0
- data/public/javascripts/nivo-dragsort.js +288 -0
- data/public/javascripts/nivo-serialize.js +98 -0
- data/public/javascripts/nivo-settings.js +6 -0
- data/public/javascripts/nivo-slider.js +685 -0
- data/public/stylesheets/.DS_Store +0 -0
- data/public/stylesheets/.gitkeep +0 -0
- data/public/stylesheets/default.css +75 -0
- data/public/stylesheets/nivo-slider.css +89 -0
- data/test/.DS_Store +0 -0
- data/test/helper.rb +18 -0
- data/test/test_nivo.rb +10 -0
- metadata +157 -0
@@ -0,0 +1,75 @@
|
|
1
|
+
/*
|
2
|
+
Skin Name: Nivo Slider Default Theme
|
3
|
+
Skin URI: http://nivo.dev7studios.com
|
4
|
+
Skin Type: flexible
|
5
|
+
Description: The default skin for the Nivo Slider.
|
6
|
+
Version: 1.0
|
7
|
+
Author: Gilbert Pellegrom
|
8
|
+
Author URI: http://dev7studios.com
|
9
|
+
*/
|
10
|
+
|
11
|
+
.theme-default .nivoSlider {
|
12
|
+
position:relative;
|
13
|
+
margin:0 auto;
|
14
|
+
background:#fff url(../images/loading.gif) no-repeat 50% 50%;
|
15
|
+
-webkit-box-shadow: 0px 1px 5px 0px #4a4a4a;
|
16
|
+
-moz-box-shadow: 0px 1px 5px 0px #4a4a4a;
|
17
|
+
box-shadow: 0px 1px 5px 0px #4a4a4a;
|
18
|
+
}
|
19
|
+
.theme-default .nivoSlider img {
|
20
|
+
position:absolute;
|
21
|
+
top:0px;
|
22
|
+
left:0px;
|
23
|
+
display:none;
|
24
|
+
}
|
25
|
+
.theme-default .nivoSlider a {
|
26
|
+
border:0;
|
27
|
+
display:block;
|
28
|
+
}
|
29
|
+
|
30
|
+
.theme-default .nivo-controlNav {
|
31
|
+
position:absolute;
|
32
|
+
left:50%;
|
33
|
+
bottom:-42px;
|
34
|
+
margin-left:-40px; /* Tweak this to center bullets */
|
35
|
+
}
|
36
|
+
.theme-default .nivo-controlNav a {
|
37
|
+
display:block;
|
38
|
+
width:22px;
|
39
|
+
height:22px;
|
40
|
+
background:url(../images/bullets.png) no-repeat;
|
41
|
+
text-indent:-9999px;
|
42
|
+
border:0;
|
43
|
+
margin-right:3px;
|
44
|
+
float:left;
|
45
|
+
}
|
46
|
+
.theme-default .nivo-controlNav a.active {
|
47
|
+
background-position:0 -22px;
|
48
|
+
}
|
49
|
+
|
50
|
+
.theme-default .nivo-directionNav a {
|
51
|
+
display:block;
|
52
|
+
width:30px;
|
53
|
+
height:30px;
|
54
|
+
background:url(../images/arrows.png) no-repeat;
|
55
|
+
text-indent:-9999px;
|
56
|
+
border:0;
|
57
|
+
}
|
58
|
+
.theme-default a.nivo-nextNav {
|
59
|
+
background-position:-30px 0;
|
60
|
+
right:15px;
|
61
|
+
}
|
62
|
+
.theme-default a.nivo-prevNav {
|
63
|
+
left:15px;
|
64
|
+
}
|
65
|
+
|
66
|
+
.theme-default .nivo-caption {
|
67
|
+
font-family: Helvetica, Arial, sans-serif;
|
68
|
+
}
|
69
|
+
.theme-default .nivo-caption a {
|
70
|
+
color:#fff;
|
71
|
+
border-bottom:1px dotted #fff;
|
72
|
+
}
|
73
|
+
.theme-default .nivo-caption a:hover {
|
74
|
+
color:#fff;
|
75
|
+
}
|
@@ -0,0 +1,89 @@
|
|
1
|
+
/*
|
2
|
+
* jQuery Nivo Slider v2.6
|
3
|
+
* http://nivo.dev7studios.com
|
4
|
+
*
|
5
|
+
* Copyright 2011, Gilbert Pellegrom
|
6
|
+
* Free to use and abuse under the MIT license.
|
7
|
+
* http://www.opensource.org/licenses/mit-license.php
|
8
|
+
*
|
9
|
+
* March 2010
|
10
|
+
*/
|
11
|
+
|
12
|
+
|
13
|
+
/* The Nivo Slider styles */
|
14
|
+
.nivoSlider {
|
15
|
+
position:relative;
|
16
|
+
}
|
17
|
+
.nivoSlider img {
|
18
|
+
position:absolute;
|
19
|
+
top:0px;
|
20
|
+
left:0px;
|
21
|
+
}
|
22
|
+
/* If an image is wrapped in a link */
|
23
|
+
.nivoSlider a.nivo-imageLink {
|
24
|
+
position:absolute;
|
25
|
+
top:0px;
|
26
|
+
left:0px;
|
27
|
+
width:100%;
|
28
|
+
height:100%;
|
29
|
+
border:0;
|
30
|
+
padding:0;
|
31
|
+
margin:0;
|
32
|
+
z-index:6;
|
33
|
+
display:none;
|
34
|
+
}
|
35
|
+
/* The slices and boxes in the Slider */
|
36
|
+
.nivo-slice {
|
37
|
+
display:block;
|
38
|
+
position:absolute;
|
39
|
+
z-index:5;
|
40
|
+
height:100%;
|
41
|
+
}
|
42
|
+
.nivo-box {
|
43
|
+
display:block;
|
44
|
+
position:absolute;
|
45
|
+
z-index:5;
|
46
|
+
}
|
47
|
+
/* Caption styles */
|
48
|
+
.nivo-caption {
|
49
|
+
position:absolute;
|
50
|
+
left:0px;
|
51
|
+
bottom:0px;
|
52
|
+
background:#000;
|
53
|
+
color:#fff;
|
54
|
+
opacity:0.8; /* Overridden by captionOpacity setting */
|
55
|
+
width:100%;
|
56
|
+
z-index:8;
|
57
|
+
}
|
58
|
+
.nivo-caption p {
|
59
|
+
padding:5px;
|
60
|
+
margin:0;
|
61
|
+
}
|
62
|
+
.nivo-caption a {
|
63
|
+
display:inline !important;
|
64
|
+
}
|
65
|
+
.nivo-html-caption {
|
66
|
+
display:none;
|
67
|
+
}
|
68
|
+
/* Direction nav styles (e.g. Next & Prev) */
|
69
|
+
.nivo-directionNav a {
|
70
|
+
position:absolute;
|
71
|
+
top:45%;
|
72
|
+
z-index:9;
|
73
|
+
cursor:pointer;
|
74
|
+
}
|
75
|
+
.nivo-prevNav {
|
76
|
+
left:0px;
|
77
|
+
}
|
78
|
+
.nivo-nextNav {
|
79
|
+
right:0px;
|
80
|
+
}
|
81
|
+
/* Control nav styles (e.g. 1,2,3...) */
|
82
|
+
.nivo-controlNav a {
|
83
|
+
position:relative;
|
84
|
+
z-index:9;
|
85
|
+
cursor:pointer;
|
86
|
+
}
|
87
|
+
.nivo-controlNav a.active {
|
88
|
+
font-weight:bold;
|
89
|
+
}
|
data/test/.DS_Store
ADDED
Binary file
|
data/test/helper.rb
ADDED
@@ -0,0 +1,18 @@
|
|
1
|
+
require 'rubygems'
|
2
|
+
require 'bundler'
|
3
|
+
begin
|
4
|
+
Bundler.setup(:default, :development)
|
5
|
+
rescue Bundler::BundlerError => e
|
6
|
+
$stderr.puts e.message
|
7
|
+
$stderr.puts "Run `bundle install` to install missing gems"
|
8
|
+
exit e.status_code
|
9
|
+
end
|
10
|
+
require 'test/unit'
|
11
|
+
require 'shoulda'
|
12
|
+
|
13
|
+
$LOAD_PATH.unshift(File.join(File.dirname(__FILE__), '..', 'lib'))
|
14
|
+
$LOAD_PATH.unshift(File.dirname(__FILE__))
|
15
|
+
require 'nivo'
|
16
|
+
|
17
|
+
class Helper < Test::Unit::TestCase
|
18
|
+
end
|
data/test/test_nivo.rb
ADDED
metadata
ADDED
@@ -0,0 +1,157 @@
|
|
1
|
+
--- !ruby/object:Gem::Specification
|
2
|
+
name: nivo
|
3
|
+
version: !ruby/object:Gem::Version
|
4
|
+
version: 0.0.2
|
5
|
+
prerelease:
|
6
|
+
platform: ruby
|
7
|
+
authors:
|
8
|
+
- Ross Nelson
|
9
|
+
autorequire:
|
10
|
+
bindir: bin
|
11
|
+
cert_chain: []
|
12
|
+
date: 2011-09-18 00:00:00.000000000Z
|
13
|
+
dependencies:
|
14
|
+
- !ruby/object:Gem::Dependency
|
15
|
+
name: shoulda
|
16
|
+
requirement: &2153071000 !ruby/object:Gem::Requirement
|
17
|
+
none: false
|
18
|
+
requirements:
|
19
|
+
- - ! '>='
|
20
|
+
- !ruby/object:Gem::Version
|
21
|
+
version: '0'
|
22
|
+
type: :development
|
23
|
+
prerelease: false
|
24
|
+
version_requirements: *2153071000
|
25
|
+
- !ruby/object:Gem::Dependency
|
26
|
+
name: jquery-rails
|
27
|
+
requirement: &2153069800 !ruby/object:Gem::Requirement
|
28
|
+
none: false
|
29
|
+
requirements:
|
30
|
+
- - ! '>='
|
31
|
+
- !ruby/object:Gem::Version
|
32
|
+
version: '0'
|
33
|
+
type: :runtime
|
34
|
+
prerelease: false
|
35
|
+
version_requirements: *2153069800
|
36
|
+
- !ruby/object:Gem::Dependency
|
37
|
+
name: paperclip
|
38
|
+
requirement: &2153068760 !ruby/object:Gem::Requirement
|
39
|
+
none: false
|
40
|
+
requirements:
|
41
|
+
- - ! '>='
|
42
|
+
- !ruby/object:Gem::Version
|
43
|
+
version: '0'
|
44
|
+
type: :runtime
|
45
|
+
prerelease: false
|
46
|
+
version_requirements: *2153068760
|
47
|
+
- !ruby/object:Gem::Dependency
|
48
|
+
name: haml
|
49
|
+
requirement: &2153028840 !ruby/object:Gem::Requirement
|
50
|
+
none: false
|
51
|
+
requirements:
|
52
|
+
- - ! '>='
|
53
|
+
- !ruby/object:Gem::Version
|
54
|
+
version: '0'
|
55
|
+
type: :runtime
|
56
|
+
prerelease: false
|
57
|
+
version_requirements: *2153028840
|
58
|
+
description: Easily add nivo slider and slide management to dust
|
59
|
+
email:
|
60
|
+
- axcess1@me.com
|
61
|
+
executables: []
|
62
|
+
extensions: []
|
63
|
+
extra_rdoc_files: []
|
64
|
+
files:
|
65
|
+
- .DS_Store
|
66
|
+
- .gitignore
|
67
|
+
- Gemfile
|
68
|
+
- README.md
|
69
|
+
- Rakefile
|
70
|
+
- app/.DS_Store
|
71
|
+
- app/controllers/.DS_Store
|
72
|
+
- app/controllers/nivo/manage_slides_controller.rb
|
73
|
+
- app/controllers/nivo/slides_controller.rb
|
74
|
+
- app/models/.DS_Store
|
75
|
+
- app/models/nivo/slide.rb
|
76
|
+
- app/views/.DS_Store
|
77
|
+
- app/views/nivo/_slideshow.html.haml
|
78
|
+
- app/views/nivo/slides/_form.html.haml
|
79
|
+
- app/views/nivo/slides/_search.html.haml
|
80
|
+
- app/views/nivo/slides/edit.html.haml
|
81
|
+
- app/views/nivo/slides/index.html.haml
|
82
|
+
- app/views/nivo/slides/index.js.haml
|
83
|
+
- app/views/nivo/slides/new.html.haml
|
84
|
+
- app/views/nivo/slides/show.html.haml
|
85
|
+
- config/.DS_Store
|
86
|
+
- config/nivo_config.yml
|
87
|
+
- config/routes.rb
|
88
|
+
- lib/.DS_Store
|
89
|
+
- lib/engine.rb
|
90
|
+
- lib/nivo.rb
|
91
|
+
- lib/nivo/config.rb
|
92
|
+
- lib/nivo/helper.rb
|
93
|
+
- lib/nivo/manage_slides.rb
|
94
|
+
- lib/nivo/version.rb
|
95
|
+
- lib/rails/.DS_Store
|
96
|
+
- lib/rails/generators/.DS_Store
|
97
|
+
- lib/rails/generators/nivo/.DS_Store
|
98
|
+
- lib/rails/generators/nivo/controller_generator.rb
|
99
|
+
- lib/rails/generators/nivo/install_generator.rb
|
100
|
+
- lib/rails/generators/nivo/stylesheet_generator.rb
|
101
|
+
- lib/rails/generators/nivo/templates/migration.rb
|
102
|
+
- lib/rails/generators/nivo/templates/nivo_config.yml
|
103
|
+
- lib/rails/generators/nivo/templates/schema.rb
|
104
|
+
- lib/rails/generators/nivo/views_generator.rb
|
105
|
+
- lib/rails/railties/tasks.rake
|
106
|
+
- nivo.gemspec
|
107
|
+
- public/.DS_Store
|
108
|
+
- public/images/.DS_Store
|
109
|
+
- public/images/arrows.png
|
110
|
+
- public/images/bullets.png
|
111
|
+
- public/images/loading.gif
|
112
|
+
- public/javascripts/.DS_Store
|
113
|
+
- public/javascripts/nivo-admin.js
|
114
|
+
- public/javascripts/nivo-dragsort.js
|
115
|
+
- public/javascripts/nivo-serialize.js
|
116
|
+
- public/javascripts/nivo-settings.js
|
117
|
+
- public/javascripts/nivo-slider.js
|
118
|
+
- public/stylesheets/.DS_Store
|
119
|
+
- public/stylesheets/.gitkeep
|
120
|
+
- public/stylesheets/default.css
|
121
|
+
- public/stylesheets/nivo-slider.css
|
122
|
+
- test/.DS_Store
|
123
|
+
- test/helper.rb
|
124
|
+
- test/test_nivo.rb
|
125
|
+
homepage: ''
|
126
|
+
licenses: []
|
127
|
+
post_install_message:
|
128
|
+
rdoc_options: []
|
129
|
+
require_paths:
|
130
|
+
- lib
|
131
|
+
required_ruby_version: !ruby/object:Gem::Requirement
|
132
|
+
none: false
|
133
|
+
requirements:
|
134
|
+
- - ! '>='
|
135
|
+
- !ruby/object:Gem::Version
|
136
|
+
version: '0'
|
137
|
+
segments:
|
138
|
+
- 0
|
139
|
+
hash: -1856366192010729382
|
140
|
+
required_rubygems_version: !ruby/object:Gem::Requirement
|
141
|
+
none: false
|
142
|
+
requirements:
|
143
|
+
- - ! '>='
|
144
|
+
- !ruby/object:Gem::Version
|
145
|
+
version: '0'
|
146
|
+
segments:
|
147
|
+
- 0
|
148
|
+
hash: -1856366192010729382
|
149
|
+
requirements: []
|
150
|
+
rubyforge_project: nivo
|
151
|
+
rubygems_version: 1.8.6
|
152
|
+
signing_key:
|
153
|
+
specification_version: 3
|
154
|
+
summary: Easily add nivo slider and slide management to dust
|
155
|
+
test_files:
|
156
|
+
- test/helper.rb
|
157
|
+
- test/test_nivo.rb
|