simplyscroll-rails 1.0.0 → 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 +5 -5
- data/README.md +35 -8
- data/lib/simplyscroll-rails/version.rb +1 -1
- data/vendor/assets/stylesheets/simplyscroll.css +1 -1
- metadata +2 -2
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
|
-
SHA1:
|
3
|
-
metadata.gz: 613c890183aff15e4f71319771d98629c6069714
|
4
|
-
data.tar.gz: f346372b87d33b27d3b1086776d8f0c6f9322e4d
|
5
2
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 7632753b10e292b108f90cd1f065988b8f18bc3223f4efb6e9522afcd958edd0987aacc489d0fa9ad35d2caaff40677474aee5aa998c090852cbb94c127b22b5
|
4
|
+
data.tar.gz: 53c733e1adae03edb686c2300a9dd89d8b31b9b8a652d02b72b4e29682e8f18b0a73ff0a907f161e32252d2ab70c1a191553be0ee3b8235d70a5673e0d6b03b4
|
5
|
+
SHA1:
|
6
|
+
metadata.gz: 3abc92c717778dac85aa495087505d0f0378be97
|
7
|
+
data.tar.gz: 1d829bd5ee4e1d514250f3da06c3c6913ae63224
|
data/README.md
CHANGED
@@ -1,41 +1,68 @@
|
|
1
1
|
# SimplyScroll Rails Gem
|
2
2
|
|
3
|
+
For ruby ~> 1.9.3
|
3
4
|
|
4
5
|
## Installation
|
5
6
|
|
6
7
|
Add this line to your application's Gemfile:
|
7
8
|
|
9
|
+
```ruby
|
8
10
|
gem 'simplyscroll-rails'
|
9
|
-
|
10
|
-
Alternatively, you can get it from Github
|
11
|
-
|
12
|
-
gem 'simplyscroll-rails', :git => 'https://github.com/twoweb/simplyscroll-rails.git'
|
11
|
+
```
|
13
12
|
|
14
13
|
And then execute:
|
15
|
-
|
14
|
+
```
|
16
15
|
$ bundle install
|
16
|
+
```
|
17
17
|
|
18
18
|
## Usage
|
19
19
|
|
20
|
-
|
20
|
+
SimplyScroll is dependant on jQuery, so make sure you have it in your Gemfile.
|
21
21
|
|
22
|
+
```
|
22
23
|
//= require jquery
|
24
|
+
```
|
23
25
|
|
24
26
|
Add to your app/assets/javascripts/application.js
|
25
27
|
|
28
|
+
```
|
26
29
|
//= require jquery.simplyscroll
|
30
|
+
```
|
27
31
|
|
28
32
|
Or for the minified version
|
29
33
|
|
34
|
+
```
|
30
35
|
//= require jquery.simplyscroll-min
|
36
|
+
```
|
31
37
|
|
32
38
|
And to your app/assets/stylesheets/application.css
|
33
39
|
|
34
|
-
|
40
|
+
```
|
41
|
+
@import simplyscroll.css
|
42
|
+
```
|
43
|
+
|
44
|
+
## Example
|
45
|
+
You don't need any special markup. All you need is to wrap your uls inside the container element. ID "scroller" is mandatory to apply proper styles that come from owl.carousel.css file.
|
46
|
+
|
47
|
+
```html
|
48
|
+
<ul id="scroller">
|
49
|
+
<li><img src="image1.jpg"></li>
|
50
|
+
<li><img src="image2.jpg"></li>
|
51
|
+
<li><img src="image3.jpg"></li>
|
52
|
+
...
|
53
|
+
</ul>
|
54
|
+
|
55
|
+
<script type="text/javascript">
|
56
|
+
$(document).ready(function() {
|
57
|
+
$("#scroller").simplyScroll();
|
58
|
+
});
|
59
|
+
</script>
|
60
|
+
```
|
35
61
|
|
36
62
|
## Documentation
|
37
63
|
|
38
64
|
Usage documentation as well as demos can be found at:
|
39
65
|
|
40
|
-
https://github.com/logicbox/jquery-simplyscroll
|
41
66
|
http://logicbox.net/jquery/simplyscroll/
|
67
|
+
|
68
|
+
https://github.com/logicbox/jquery-simplyscroll
|
metadata
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: simplyscroll-rails
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 1.0.
|
4
|
+
version: 1.0.1
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- TwoWeb
|
@@ -9,7 +9,7 @@ autorequire:
|
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
11
|
|
12
|
-
date: 2015-
|
12
|
+
date: 2015-02-02 00:00:00 Z
|
13
13
|
dependencies:
|
14
14
|
- !ruby/object:Gem::Dependency
|
15
15
|
name: rails
|